Keras implementations of Generative Adversarial Networks.
Keras implementations of Generative Adversarial Networks.
This repository has gone stale as I unfortunately do not have the time to maintain it anymore. If you would like to continue the development of it as a collaborator send me an email at [email protected].
Collection of Keras implementations of Generative Adversarial Networks (GANs) suggested in research papers. These models are in some cases simplified versions of the ones ultimately described in the papers, but I have chosen to focus on getting the core ideas covered instead of getting every layer configuration right. Contributions and suggestions of GAN varieties to implement are very welcomed.
See also: PyTorch-GAN
$ git clone https://github.com/eriklindernoren/Keras-GAN
$ cd Keras-GAN/
$ sudo pip3 install -r requirements.txtImplementation of Auxiliary Classifier Generative Adversarial Network.
Paper: https://arxiv.org/abs/1610.09585
$ cd acgan/
$ python3 acgan.pyImplementation of Adversarial Autoencoder.
Paper: https://arxiv.org/abs/1511.05644
$ cd aae/
$ python3 aae.pyImplementation of Bidirectional Generative Adversarial Network.
Paper: https://arxiv.org/abs/1605.09782
$ cd bigan/
$ python3 bigan.pyImplementation of Boundary-Seeking Generative Adversarial Networks.
Paper: https://arxiv.org/abs/1702.08431
$ cd bgan/
$ python3 bgan.pyImplementation of Semi-Supervised Learning with Context-Conditional Generative Adversarial Networks.
Paper: https://arxiv.org/abs/1611.06430
$ cd ccgan/
$ python3 ccgan.pyImplementation of Conditional Generative Adversarial Nets.
Paper:https://arxiv.org/abs/1411.1784
$ cd cgan/
$ python3 cgan.pyImplementation of Context Encoders: Feature Learning by Inpainting.
Paper: https://arxiv.org/abs/1604.07379
$ cd context_encoder/
$ python3 context_encoder.pyImplementation of Coupled generative adversarial networks.
Paper: https://arxiv.org/abs/1606.07536
$ cd cogan/
$ python3 cogan.pyImplementation of Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks.
Paper: https://arxiv.org/abs/1703.10593
$ cd cyclegan/
$ bash download_dataset.sh apple2orange
$ python3 cyclegan.pyImplementation of Deep Convolutional Generative Adversarial Network.
Paper: https://arxiv.org/abs/1511.06434
$ cd dcgan/
$ python3 dcgan.pyImplementation of Learning to Discover Cross-Domain Relations with Generative Adversarial Networks.
Paper: https://arxiv.org/abs/1703.05192
$ cd discogan/
$ bash download_dataset.sh edges2shoes
$ python3 discogan.pyImplementation of DualGAN: Unsupervised Dual Learning for Image-to-Image Translation.
Paper: https://arxiv.org/abs/1704.02510
$ cd dualgan/
$ python3 dualgan.pyImplementation of Generative Adversarial Network with a MLP generator and discriminator.
Paper: https://arxiv.org/abs/1406.2661
$ cd gan/
$ python3 gan.pyImplementation of InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets.
Paper: https://arxiv.org/abs/1606.03657
$ cd infogan/
$ python3 infogan.pyImplementation of Least Squares Generative Adversarial Networks.
Paper: https://arxiv.org/abs/1611.04076
$ cd lsgan/
$ python3 lsgan.pyImplementation of Image-to-Image Translation with Conditional Adversarial Networks.
Paper: https://arxiv.org/abs/1611.07004
$ cd pix2pix/
$ bash download_dataset.sh facades
$ python3 pix2pix.pyImplementation of Unsupervised Pixel-Level Domain Adaptation with Generative Adversarial Networks.
Paper: https://arxiv.org/abs/1612.05424
Trains a classifier on MNIST images that are translated to resemble MNIST-M (by performing unsupervised image-to-image domain adaptation). This model is compared to the naive solution of training a classifier on MNIST and evaluating it on MNIST-M. The naive model manages a 55% classification accuracy on MNIST-M while the one trained during domain adaptation gets a 95% classification accuracy.
$ cd pixelda/
$ python3 pixelda.py| Method | Accuracy |
|---|---|
| Naive | 55% |
| PixelDA | 95% |
Implementation of Semi-Supervised Generative Adversarial Network.
Paper: https://arxiv.org/abs/1606.01583
$ cd sgan/
$ python3 sgan.pyImplementation of Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network.
Paper: https://arxiv.org/abs/1609.04802
$ cd srgan/
<follow steps at the top of srgan.py>
$ python3 srgan.pyImplementation of Wasserstein GAN (with DCGAN generator and discriminator).
Paper: https://arxiv.org/abs/1701.07875
$ cd wgan/
$ python3 wgan.pyImplementation of Improved Training of Wasserstein GANs.
Paper: https://arxiv.org/abs/1704.00028
$ cd wgan_gp/
$ python3 wgan_gp.pydcgan not converging
CycleGAN Training Log: Constant Adversarial Loss & Discriminator Accuracy Stabilization at ~49%
~ดูหนังออนไลน์! แดนสาป (2024) "The Cursed Land" เต็มเ รื่องฟรี ซับไทย-พากย์ ไทย สตรีมและดาวน์โหลดคุณภาพสูง!
Can d_loss and g_loss both become small?
Keras GAN
cGAN with multi-labels of multi-classes
when training SGAN for cifar10 and mnist dataset, raised the "AttributeError: 'list' object has no attribute 'keys' "in the following code lones
SRGAN dataset is not available
Project dependencies may have API risk issues
Where can I find and download some pre-trained model?