Giter Club home page Giter Club logo

generative-adversarial-network-tutorial's Introduction

Generative-Adversarial-Network-Tutorial

Generative adversarial networks (GANs) are one of the hottest topics in deep learning. From a high level, GANs are composed of two components, a generator and a discriminator. The discriminator has the task of determining whether a given image looks natural (ie, is an image from the dataset) or looks like it has been artificially created. The task of the generator is to create natural looking images that are similar to the original data distribution, images that look natural enough to fool the discriminator network.

The analogy used in the paper is that the generative model is like “a team of counterfeiters, trying to produce and use fake currency” while the discriminative model is like “the police, trying to detect the counterfeit currency”. The generator is trying to fool the discriminator while the discriminator is trying to not get fooled by the generator.

As the models train through alternating optimization, both methods are improved until a point where the “counterfeits are indistinguishable from the genuine articles”.

The tutorial is written in Python, with the Tensorflow library, so it would be good to have familiarity with Tensorflow before taking a look at this tutorial.

How to Use Jupyter Notebooks

  1. First step is always to clone the repository.
git clone https://github.com/uclaacmai/Generative-Adversarial-Network-Tutorial.git
  1. Next, we want to make sure we have Jupyter Notebook installed. You can either follow one of two paths. You can either install Anaconda (which installs Python, Jupyter Notebook, and a bunch of other useful computing libraries) or use pip.
  • To install Anaconda, take a look at their website, which has some pretty great documentation.

  • If you want to install using pip, you'll need to update pip with the following code (Replace pip with pip3 if using Python 3).

On Linux/Mac OS:

pip install -U pip setuptools

On Windows:

python -m pip install -U pip setuptools

Next, you should be able to run the following.

pip install jupyter
  1. Finally, run the following command and a new tab in your browser with the Jupyter Notebook should come up
jupyter notebook

For more resources on Jupyter Notebooks, check out the following:

More GAN Resources

  • The original paper written by Ian Goodfellow in 2014.
  • Siraj Raval's video tutorial on GANs (Really fun video)
  • Ian Godfellow's keynote on GANs (More of a technical video)
  • Brandon Amos's image completion blog post
  • Blog post on using GANs in video games.
  • Andrej Karpathy's blog post with GAN visualizations.
  • Adit Deshpande's blog post on GANs and overview of some associated papers.

generative-adversarial-network-tutorial's People

Contributors

adeshpande3 avatar rohan-varma avatar

Watchers

wyz avatar paper2code - bot 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.