DivCo: Diverse Conditional Image Synthesis via Contrastive Generative Adversarial Network
Authors:
- 1 June 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 16372-16381
Abstract
Conditional generative adversarial networks (cGANs) target at synthesizing diverse images given the input conditions and latent codes, but unfortunately, they usually suffer from the issue of mode collapse. To solve this issue, previous works [47], [22] mainly focused on encouraging the correlation between the latent codes and their generated images, while ignoring the relations between images generated from various latent codes. The recent MSGAN [27] tried to encourage the diversity of the generated image but only considers "negative" relations between the image pairs.In this paper, we propose a novel DivCo framework to properly constrain both "positive" and "negative" relations between the generated images specified in the latent space. To the best of our knowledge, this is the first attempt to use contrastive learning for diverse conditional image synthesis. A novel latent-augmented contrastive loss is introduced, which encourages images generated from adjacent latent codes to be similar and those generated from distinct latent codes to be dissimilar. The proposed latent-augmented contrastive loss is well compatible with various cGAN architectures. Extensive experiments demonstrate that the proposed DivCo can produce more diverse images than state-of-the-art methods without sacrificing visual quality in multiple unpaired and paired image generation tasks. Training code and pretrained models are available at https://github.com/ruiliu-ai/DivCo.Keywords
This publication has 19 references indexed in Scilit:
- The Unreasonable Effectiveness of Deep Features as a Perceptual Metric2018
- Image Blind Denoising with Generative Adversarial Network Based Noise Modeling2018
- Generative Image Inpainting with Contextual Attention2018
- StackGAN: Text to Photo-Realistic Image Synthesis with Stacked Generative Adversarial Networks2017
- Unpaired Image-to-Image Translation Using Cycle-Consistent Adversarial Networks2017
- Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network2017
- Image-to-Image Translation with Conditional Adversarial Networks2017
- The Cityscapes Dataset for Semantic Urban Scene Understanding2016
- Going deeper with convolutions2015
- Dimensionality Reduction by Learning an Invariant Mapping2006