Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.

Generating Images with Recurrent Adversarial Networks

Python (Theano) implementation of Generating Images with Recurrent Adversarial Networks code provided by Daniel Jiwoong Im, Chris Dongjoo Kim, Hui Jiang, and Roland, Memisevic

Generative Recurrent Adversarial Network (GRAN) is a recurrent generative model inspired by the view that unrolling the gradient-based optimization yields a recurrent computation that creates images by incrementally adding onto a visual “canvas”. GRAN is trained using adversarial training to generate very good image samples.

Generative Adversarial Metric (GAM) quantitatively compare adversarial networks by having the generators and discriminators of these networks compete against each other.

For more information, see

    title={Generating Images with Recurrent Adversarial Networks },
    author={Im, Daniel Jiwoong and Kim, Chris Dongjoo and Jiang, Hui and Memisevic, Roland},

If you use this in your research, we kindly ask that you cite the above arxiv paper.



How to set-up LSUN dataset

  1. Obtain the LSUN dataset from fyu's repository
  2. Resize the image to 64x64 or 128x128.
  3. Split the dataset to train/val/test set.
  4. Update the paths in provided paths.yaml, and run the script
python <toy/full>

Link it to the inquire/main file, e.g.


How to run

Entry code for CIFAR10 and LSUN Church are

    - ./

How to obtain samples with pretrained models

First download the pretrained model from this Dropbox Link, save it to a local folder, and supply the path when prompted.

    python # to attain Nearest Neighbour and Sequential Samples

    python # to attain 100 samples from the pretrained model.

Here are some CIFAR10 samples generated from GRAN:

Image of cifar10

Image of cifar10

Here are some LSUN Church samples generated from GRAN:

Image of lsun

Image of lsun

Here are some Mix of LSUN Living Room and Kitchen dataset generated from GRAN:

Image of lsun


No description, website, or topics provided.



No releases published


No packages published