Skip to content

zhao4hua4/GAN-with-pure-numpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GAN in Numpy

This is a very simple step by step implementation of GAN using only numpy.
Without the use of GPU, it may takes too much time to generate all the numbers.
To get the result quickly using only CPU, I suggest working with one number.

How to use

In bash or command line(windows) or powershell under this directory

$ python gan.py
#this will generator a random number [0, 9]

$ python gan.py 9 0 8
#add the number(s) you want the program to generate, e.g. 0(to generate 0) or 0 8(to generate 0 and 8)

What's included

  • Vanilla GAN
  • Xavier Initialization
  • SGD

Requirements

  • Numpy
  • Matplotlib/PIL (to visualize/save results)

Network

network

Results

7

image per epoch

epoch 0 epoch 1 epoch 2 epoch 3 epoch 4 epoch 5 epoch 6 epoch 7 epoch 8 epoch 9 epoch 10 epoch 11 epoch 12 epoch 13 epoch 14 epoch 15 epoch 16 epoch 17 epoch 18 epoch 19

reference

generative adversarial networks

About

GAN with pure numpy and display use Matplotlib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages