Giter VIP home page Giter VIP logo

tsc2017 / mix-gan Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 1.0 789 KB

Some recent state-of-the-art generative models in ONE notebook: (MIX-)?(GAN|WGAN|BigGAN|MHingeGAN|AMGAN|StyleGAN|StyleGAN2)(\+ADA|\+CR|\+EMA|\+GP|\+R1|\+SA|\+SN)*

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

Python 14.64% Jupyter Notebook 82.79% Cuda 2.58%
gan generative-adversarial-network generative-model mixture-model ensemble-learning mixture-of-experts adaptive-discriminator-augmentation mix-gan

mix-gan's Introduction

MIX-GAN

Some recent state-of-the-art generative models in ONE notebook.

This repo implements any method that can match the following regular expression:

(MIX-)?(GAN|WGAN|BigGAN|MHingeGAN|AMGAN|StyleGAN|StyleGAN2)(\+ADA|\+CR|\+EMA|\+GP|\+R1|\+SA|\+SN)*

Major dependencies

  • For the GPU implementation, tensorflow>=2 or tensorflow-gpu==1.14 (some modifications for the calculation of IS and FID will be necessary, see the other repos of mine).
  • For the TPU implemetation, tensorflow>=2.4 or tf-nightly will be necessary.

Free GPU training on Colab

Example In Colab

This implemetation supports automatic mixed-precision training of TensorFlow, which can reduce GPU memory usage and training time dramatically. Therefore, it is recommended to upgrade to Colab Pro in order to use GPUs with Tensor Cores. Training MIX-MHingeGAN with 10 generators and 10 discriminators takes only 1.5 days on a single Tesla V100.

Free TPU training on Colab

Coming soon...

Training on Cloud TPUs

  • First disable Stackdriver Logging to avoid unnecessary charges.
  • Create cloud TPUs, TPU software version should be at least 2.4.0 or nightly.
  • Fill in TPU_NAMES and ZONE in the the above notebook for TPUs. Set up environment variables LOG and DATA, run the notebook.
  • Delete TPUs.

References

https://github.com/igul222/improved_wgan_training
https://github.com/biuyq/CT-GAN
https://github.com/google/compare_gan
https://github.com/ajbrock/BigGAN-PyTorch
https://github.com/taki0112/BigGAN-Tensorflow
https://github.com/brain-research/self-attention-gan
https://github.com/ilyakava/BigGAN-PyTorch
https://github.com/NVlabs/stylegan2
https://github.com/NVlabs/stylegan2-ada

Citation

@article{tang2020lessons,
  title={Lessons Learned from the Training of GANs on Artificial Datasets},
  author={Tang, Shichang},
  journal={arXiv preprint arXiv:2007.06418},
  year={2020}
}

mix-gan's People

Contributors

tsc2017 avatar

Stargazers

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

Watchers

 avatar

Forkers

techart2022

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.