Face completion with pyramid semantic attention and latent codes