A VQ-VAE generator is the VQGAN component that converts images into discrete latent codes and reconstructs them. It combines an encoder, a learned codebook, and a decoder. section 11.4.2
Trace the reconstruction pipeline:
- The encoder maps an input image x to a continuous latent representation z. section 11.4.2
- The codebook replaces each encoder output with its nearest learned embedding, producing discrete codes zq. section 11.4.2
- The decoder transforms zq into a reconstructed image x̂. section 11.4.2
Within VQGAN, adversarial training refines these reconstructions through a discriminator. The combined objective uses reconstruction, adversarial, and quantization losses; LPIPS measures perceptual reconstruction similarity. section 11.4.2
Figure 11.6 VQGAN architecture and training process in which VQGAN combines a VQ-VAE generator with a discriminator in a GAN framework
Use the architecture figure to follow the encoder–codebook–decoder path and its interaction with the discriminator. section 11.4.2
