Skip to content

Generating images with neural netoworks using adversarial learning

Notifications You must be signed in to change notification settings

irenenikk/genierator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Generating images with neural netoworks using adversarial learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages