loading page

Fast Transformation of Discriminators into Encoders using Pre-Trained GANs
  • Cheng Yu ,
  • Wenmin Wang
Cheng Yu
Macau University of Science and Technology, Macau University of Science and Technology

Corresponding Author:[email protected]

Author Profile
Wenmin Wang
Author Profile


Finely tuned deep generative adversarial networks (GANs) can generate high-quality (HQ) images. However, the discriminator in GAN is only able to distinguish true or fake images. Moreover, numerous synthesized images from GANs are imperfect, and we can not reconstruct those images via GANs. In this paper, we revisit pre-trained GANs and offer a self-supervised method to quickly transform GAN’s discriminators into encoders. We reuse parameters of the GAN’s discriminator and replace its output layer, so that it can be transformed into an encoder and output reformed latent vectors. The transformation makes the pre-trained GAN a symmetrical architecture and allows for better performance. Based on the method, GANs can be made to reconstruct synthesized images via encoders. Compared to synthesized images, these reconstructions can maintain or even attain higher quality.
Jan 2022Published in Pattern Recognition Letters volume 153 on pages 92-99. 10.1016/j.patrec.2021.11.026