ContraGAN: Contrastive Learning for Conditional Image Generation

Minguk Kang, Jaesik Park
6/23/2020
cs.CVcs.LG
contrastive-ssl

Official code: POSTECH-CVLab/PyTorch-StudioGAN (3,496 stars, Python, PyTorch, last commit 2024-08-09).

Abstract

Conditional image generation is the task of generating diverse images using class label information. Although many conditional Generative Adversarial Networks (GAN) have shown realistic results, such methods consider pairwise relations between the embedding of an image and the embedding of the corresponding label (data-to-class relations) as the conditioning losses.

Show full abstract

In this paper, we propose ContraGAN that considers relations between multiple image embeddings in the same batch (data-to-data relations) as well as the data-to-class relations by using a conditional contrastive loss. The discriminator of ContraGAN discriminates the authenticity of given samples and minimizes a contrastive objective to learn the relations between training images. Simultaneously, the generator tries to generate realistic images that deceive the authenticity and have a low contrastive loss. The experimental results show that ContraGAN outperforms state-of-the-art-models by 7.3% and 7.7% on Tiny ImageNet and ImageNet datasets, respectively. Besides, we experimentally demonstrate that contrastive learning helps to relieve the overfitting of the discriminator. For a fair comparison, we re-implement twelve state-of-the-art GANs using the PyTorch library. The software package is available at https://github.com/POSTECH-CVLab/PyTorch-StudioGAN.

View on arXivView PDF

Code Implementations(1)

PyTorch

StudioGAN is a Pytorch library providing implementations of representative Generative Adversarial Networks (GANs) for conditional/unconditional image generation.

3,496343Python, CudaJun 19, 20202 years agoNOASSERTION
bigganclean-fiddata-efficient-gan-trainingdeep-learninggenerative-adversarial-network+5 more

Similar Papers

Cite this paper

@article{kang2020contragan,
  title  = {ContraGAN: Contrastive Learning for Conditional Image Generation},
  author = {Minguk Kang and Jaesik Park},
  year   = {2020},
  eprint = {2006.12681},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.12681}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.12681.svg)](https://codeofpaper.com/paper/2006.12681)

Discussion