Giter VIP home page Giter VIP logo

vgan's Introduction

Variational Discriminator Bottleneck

Code for the image generation experiments in Variational Discriminator Bottleneck: Improving Imitation Learning, Inverse RL, and GANs by Constraining Information Flow.

Code for the iRL experiemnts: https://github.com/qxcv/vdb-irl/

Bibtex

@inproceedings{
  VDBPeng18,
  title={Variational Discriminator Bottleneck: Improving Imitation Learning,
  Inverse RL, and GANs by Constraining Information Flow},
  author = {Peng, Xue Bin and Kanazawa, Angjoo and Toyer, Sam and Abbeel, Pieter
  and Levine, Sergey},
  booktitle={ICLR},
  year={2019}
}

Acknowledgement

Our code is built on the GAN implmentation of Which Training Methods for GANs do actually Converge? [Mescheder et al. ICML 2018]. This repo adds the VGAN and instance noise implementations, along with FID computation.

Usage

First download your data and put it into the ./data folder.

To train a new model, first create a config script similar to the ones provided in the ./configs folder. You can then train you model using

python train.py PATH_TO_CONFIG

You can monitor the training with tensorboard:

tensorboard --logdir output/<MODEL_NAME>/monitoring/

Experiments

To generate samples, use

python test.py PATH_TO_CONIFG

You can also create latent space interpolations using

python interpolate.py PATH_TO_CONFIG

Pre-trained model

A pre-trained model for CelebA-HQ can be found here

vgan's People

Contributors

akanazawa avatar xbpeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vgan's Issues

Question about loss function of G

Hi,

Thank you for releasing nice paper and code.
Refer to Eq (11), I think the generator G should be trained using mean outputs of the encoder E. However, as can be seen here and here, G is trained using the reparameterization outputs of E rathen mean.

Is this intended? Any explanation for the inconsistency between the code and equation?

Thanks,
Yunjey

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.