Skip to content
RankGAN: A Maximum Margin Ranking GAN for Generating Faces
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



We present a new stage-wise learning paradigm for training generative adversarial networks (GANs). The goal of our work is to progressively strengthen the discriminator and thus, the generators, with each subsequent stage without changing the network architecture. We call this proposed method the RankGAN. We first propose a margin-based loss for the GAN discriminator. We then extend it to a margin-based ranking loss to train the multiple stages of RankGAN. We focus on face images from the CelebA dataset in our work and show visual as well as quantitative improvements in face generation and completion tasks over other GAN approaches, including WGAN and LSGAN.


alt text

Ranking based Progressive Training in RankGAN.

alt text

RankGAN Training Flowchart and Architecture.


  • A progressive training framework where GANs at later stages improve upon their earlier versions.
  • A margin-based Ranking Loss function to train GANs.
  • Evaluation of GANs based on image completion tasks.

How To Run (on CELEB-A dataset)

python --dataroot path/to/dataset --cuda


Visual and quantitative results on face generation with RankGAN, WGAN and LSGAN. alt text

Image Completion Results. alt text


  1. Rahul Dey, Felix Juefei-Xu, Vishnu Naresh Boddeti and Marios Savvides. RankGAN: A Maximum Margin Ranking GAN for Generating Faces. Asian Conference on Computer Vision (ACCV 2018).

  2. Felix Juefei-Xu, Vishnu Naresh Boddeti and Marios Savvides. Gang of gans: Generative adversarial networks with maximum margin ranking. arXiv preprint arXiv:1704.04865 (2017).

You can’t perform that action at this time.