Coder Social home page Coder Social logo

loopingweb / mmd-gan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mbinkowski/mmd-gan

0.0 0.0 0.0 11.07 MB

Training MMD GANs.

Home Page: https://arxiv.org/abs/1801.01401

License: BSD 3-Clause "New" or "Revised" License

Shell 3.98% Python 96.02%

mmd-gan's Introduction

Official Tensorflow implementation for reproducing the results of Demystifying MMD GANs.

The repository contains code for reproducing experiments of uncoditional image generation with MMD GANs and other benchmark GAN models.

If you're only interested in the new KID metric, check out compute_scores.py.

References

Mikołaj Bińkowski, Dougal J. Sutherland, Michael N. Arbel and Athur Gretton. Demystifying MMD GANs. ICLR 2018 (openreview; poster).

Model features

Requirements

  • python >= 3.6
  • tensorflow-gpu >= 1.3
  • PIL, lmdb, numpy, matplotlib
  • machine with GPU(s). At least 2 GPUs are needed for experiments with Celeb-A dataset.

Datasets

The code works with several common datasets with different resolutions. The experiments include

  • 28x28 MNIST,
  • 32x32 Cifar10,
  • 64x64 LSUN Bedrooms,
  • 160x160 Celeb-A.

LSUN, MNIST and Celeb-A datasets can be downloaded using the script.

Benchmarks

We compare MMD GANs with WGAN-GP and Cramer GAN.

Running the code

Each of the following scripts launches the training of MMD GAN on respective dataset: mnist.sh, cifar10.sh, lsun.sh, celeba.sh. To train the benchmark models, change the variable $MODEL to WGAN or CRAMER. To train all three models set $MODEL=ALL.

Feel free to contact Mikołaj Bińkowski (mikbinkowski at gmail.com) with any questions and issues.

mmd-gan's People

Contributors

mbinkowski avatar djsutherland avatar

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.