Code Monkey home page Code Monkey logo

gan's Introduction

GAN

Generative Adversarial Nets

This repo has the purpose of implementing GANs in Python.

  1. GAN_1D.py / GAN_1D-example.ipynb: The file contains a toy example where a GAN is used to model a 1-dimensinal Gaussian distribution. Both the generator and the discriminator is a MLP and mini-batches are used. The example alternates between updating the discriminator and generator, one update each, but this can easily be changed in the code such that the discriminator is updated several times before the generator gets an update.

  2. GAN-2D.ipybn: Contains a 2D GAN on the MNIST data set using Keras. When running the code it often happens that the generator fails to learn anything, hence producing pure noise pictures. This issue is fixed in the Wasserstein GAN.

  3. WGAN.py: This is the implementation from the original paper on Wasserstein GANs. I have chosen to use CIFAR-10 benchmark data set because I like cats and dogs.. however not frogs, well the former outweights the latter. The implementation is done in PyTorch.

  4. WGAN_training.gif: A GIF illustrating the generator's ability to generate life-like pictures from the same noise during training. The pictures look more and more realistic. This was done using the code in WGAN.py on an Amazon cloud computing GPU for 100 iterations of training CIFAR-10.

gan's People

Contributors

mlpanda avatar pascaltimshel avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

sodiqsrb

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.