Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

ContraGAN: Contrastive Learning for Conditional Image Generation

About

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. 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.

Minguk Kang, Jaesik Park• 2020

Related benchmarks

TaskDatasetResultRank
Image GenerationCIFAR-10 (test)
FID7.27
471
Image GenerationCIFAR-10--
178
Image GenerationImageNet
FID19.443
68
Class-conditional Image GenerationImageNet (val)
FID25.16
54
Image GenerationTiny-ImageNet--
34
Image GenerationCIFAR10 (train)
FID0.08
32
Image GenerationCUB200 (train)
Inception Score5.39
25
Image GenerationImageNet 31 (train)
Inception Score (IS)31.1
18
Image GenerationTiny ImageNet (val)
FID15.4
13
Image GenerationTiny-ImageNet (train)
Inception Score0.78
12
Showing 10 of 10 rows

Other info

Code

Follow for update