Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adeshpande3/generative-adversarial-networks
Tutorial on GANs
https://github.com/adeshpande3/generative-adversarial-networks
deep-learning generative-adversarial-network tensorflow tutorial
Last synced: 7 days ago
JSON representation
Tutorial on GANs
- Host: GitHub
- URL: https://github.com/adeshpande3/generative-adversarial-networks
- Owner: adeshpande3
- Created: 2017-01-27T20:05:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-06T15:58:27.000Z (over 7 years ago)
- Last Synced: 2025-01-30T21:14:22.106Z (15 days ago)
- Topics: deep-learning, generative-adversarial-network, tensorflow, tutorial
- Language: Jupyter Notebook
- Size: 438 KB
- Stars: 290
- Watchers: 17
- Forks: 128
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generative-Adversarial-Networks
My [blog post](https://adeshpande3.github.io/adeshpande3.github.io/Deep-Learning-Research-Review-Week-1-Generative-Adversarial-Nets) on GANs and overview of some associated papers.
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
~~~~
2. 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](https://www.continuum.io/downloads), 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
~~~~3. 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:
* [Installation Documentation](http://jupyter.readthedocs.io/en/latest/install.html)
* [Trying Jupyter](https://try.jupyter.org/) just in your browser
* [Jupyter Docs](https://jupyter.readthedocs.io/en/latest/index.html)
* [Video tutorial](https://www.youtube.com/watch?v=Rc4JQWowG5I) on Jupyter
* [Detailed tutorials](https://github.com/jrjohansson/scientific-python-lectures) on using different Python libraries in Jupyter Notebooks# More GAN Resources
* The original [paper](https://arxiv.org/pdf/1406.2661.pdf) written by Ian Goodfellow in 2014.
* Siraj Raval's [video tutorial](https://www.youtube.com/watch?v=deyOX6Mt_As) on GANs (Really fun video)
* Ian Godfellow's [keynote](https://channel9.msdn.com/Events/Neural-Information-Processing-Systems-Conference/Neural-Information-Processing-Systems-Conference-NIPS-2016/Generative-Adversarial-Networks) on GANs (More of a technical video)
* Brandon Amos's image completion [blog post](https://bamos.github.io/2016/08/09/deep-completion/)
* [Blog post](https://medium.com/@ageitgey/abusing-generative-adversarial-networks-to-make-8-bit-pixel-art-e45d9b96cee7) on using GANs in video games.
* Andrej Karpathy's [blog post](http://cs.stanford.edu/people/karpathy/gan/) with GAN visualizations.