Training GAN for image inpainting
Understand the training process of GAN for image inpainting.
We'll cover the following...
Now, it’s finally time to train a new GAN model for image inpainting. We can get the code from the original
⚠️ The dataset is intended only for non-commercial research and educational use.
Model design for image inpainting
The GAN model for image inpainting consists of two generator networks (a coarse generator and a refinement generator) and two discriminator networks (a local discriminator and a global discriminator), as shown here:
Image
The generator model uses a two-stage coarse-to-fine architecture. The coarse generator is a 17-layer encoder-decoder CNN, and dilated convolutions are used in the middle to expand the receptive fields. Assume that the size of the input image (