Need help with RealnessGAN?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

kam1107
284 Stars 37 Forks Other 24 Commits 6 Opened issues

Description

Code for ICLR2020 paper 'Real or Not Real, that is the Question'

Services available

!
?

Need anything else?

Contributors list

# 337,862
Python
Shell
18 commits
# 219,424
Python
Shell
image-m...
image-r...
4 commits
# 296,743
Shell
Jupyter...
Objecti...
python-...
1 commit

RealnessGAN

This repository contains the code of the following paper:

Real or Not Real, that is the Question
Yuanbo Xiangli, Yubin Deng, Bo Dai*, Chen Change Loy, Dahua Lin
paper & talk

Abstract: While generative adversarial networks (GAN) have been widely adopted in various topics, in this paper we generalize the standard GAN to a new perspective by treating realness as a random variable that can be estimated from multiple angles. In this generalized framework, referred to as RealnessGAN, the discriminator outputs a distribution as the measure of realness. While RealnessGAN shares similar theoretical guarantees with the standard GAN, it provides more insights on adversarial learning. More importantly, compared to multiple baselines, RealnessGAN provides stronger guidance for the generator, achieving improvements on both synthetic and real-world datasets. Moreover, it enables the basic DCGAN architecture to generate realistic images at 10241024 resolution when trained from scratch.

Demo

  • Watch the full demo video in YouTube

Dataset

Experiments were conducted on two real-world datasets: CelebA and FFHQ; and a toy dataset: Mixture of Gaussians.

Requirements

  • Python 3.6
  • Pytorch 1.1.0

Pretrain Models

Training

  • Either use the aforementioned dataset or prepare your dataset.
  • Scripts to run experiments are stored in /scripts/*.sh.
  • Edit folder locations in your scripts. Make sure the folders to store LOG and OUTPUT are created.
  • Run
    ./scripts/run_your_scripts.sh

Snapshots

CelebA 256x256 (FID = 23.51)

FFHQ 1024x1024 (FID = 17.18)

Bibtex

@article{xiangli2020real,
  title={Real or Not Real, that is the Question},
  author={Xiangli, Yuanbo and Deng, Yubin and Dai, Bo and Loy, Chen Change and Lin, Dahua},
  booktitle={International Conference on Learning Representations},
  year={2020}
}

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.