Giter VIP home page Giter VIP logo

mnistgans's Introduction

GANs implementation using MNIST data

This repo is a collection of the implementations of many GANs. In order to make the codes easy to read and follow, I minimize the code and run on the same MNIST dataset.

What does the MNIST data look like?

Toy implementations are organized as following:

1. Base Method

2. Loss or Structure Modifications

3. Can be Conditional

4. Image to Image Transformation

Installation

$ git clone https://github.com/MorvanZhou/mnistGANs
$ cd mnistGANs/
$ pip3 install -r requirements.txt

GAN

Generative Adversarial Nets

code - gif result

DCGAN

Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks

code - gif result

LSGAN

Least Squares Generative Adversarial Networks

code - gif result

WGAN

Wasserstein GAN

code - gif result

WGANpg

Improved Training of Wasserstein GANs

code - gif result

WGANdiv

Wasserstein Divergence for GANs

code - gif result

SAGAN

Self-Attention Generative Adversarial Networks

code - gif result

PGGAN

PROGRESSIVE GROWING OF GANS FOR IMPROVED QUALITY, STABILITY, AND VARIATION

code - gif result

CGAN

Conditional Generative Adversarial Nets

code - gif result

ACGAN

Conditional Image Synthesis with Auxiliary Classifier GANs

code - gif result

InfoGAN

InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets

code - gif result

StyleGAN

A Style-Based Generator Architecture for Generative Adversarial Networks

code - gif result

CCGAN

Semi-Supervised Learning with Context-Conditional Generative Adversarial Networks

code - gif result

Pix2Pix

Image-to-Image Translation with Conditional Adversarial Networks

code - gif result

CycleGAN

Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks

code - gif result

SRGAN

Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network

code - gif result

mnistgans's People

Contributors

morvanzhou 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

mnistgans's Issues

GAN实现的一些疑问

最近初学GAN,有两个问题想请教下您,关于GAN的实现的

  1. 生成的假数据的长度为什么是真数据的两倍,是为了让generator更新更多的梯度吗?
    d_label = tf.ones((len(data) * 2, 1), tf.float32) # let d think generated are real
  2. Keras官方例子的GAN实现中,先更新了判别器的梯度再更新生成器的,您的实现把这个顺序调换了,这个有什么讲究吗?(https://keras.io/examples/generative/dcgan_overriding_train_step/)

Maybe some minor issue in visual.py?

When I run gan.py, I had an excpetion at line 116 of visual.py, in the function _save_gan. The variable imgs is of shape (100,28,28,1), and imgs[i] of shape (28,28,1) cannot be accepted by plt.imshow. I just changed it to imgs[i,:,:,0].

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.