Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.49 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.49 KB

genierator

Me practicing generative adversarial networks.

Running the code

  1. Make sure you are using Python 3
  2. pip -r install requirements.txt
  3. python main.py

The code will train the model and print out the generator's loss as well as the discriminator's accuracy for each epoch. You want both of them to be small: that means that the images generated by the generator are realistic (discriminator classifies generator's images as real). After the training 8 sample pictures by the trained generator will be shown.

TODO

  • Use a more interesting dataset
  • Do some cool parameter tweaking like this
  • Learn a new network model, maybe CGANS
  • Use labels when training the discriminator

Gallery of generated examples:

MNIST, 10 epochs, relu

Fake MNIST baseline

MNIST, 10 epochs, leaky relu

Fake MNIST using leaky rely

MNIST, 10 epochs, leaky relu, smoothed labels

Fake MNIST using leaky relu and smoothed labels

MNIST, 50 epochs, leaky relu, smoothed labels

Fake MNIST using leaky relu and smoothed labels and 50 epochs

Sources:

Understanding Generative Adversarial Networks by Naoki Shibuya (I use his network architecture and training loop)