Skip to content

huyz1117/DCGAN-TensorFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCGAN with TensorFlow

  • TensorFLow implementation of Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks which is a stabilize GAN by certain architectural constraints

  • Architecture guidelines for stable Deep Convolutional GANs:

    • Replace any pooling layers with strided convolutions(discriminator) and fractional-strided convolutions(generator)
    • Use BatchNorm in both the generator and the discriminator
    • Remove fully connected hidden layers for deeper architectures
    • Use Relu activation in generator for all layers except for the output, which uses Tanh
    • Use LeakyReLU activation in the discriminator for all layers
  • Generator architecture

    Architecture

  • Usage

    • Download dataset CelebA from here
    • Train the model: python main.py
  • Training details

    graph

    d_loss

    g_loss

  • To ensure that d_loss do not go to zero during the training, I run generator 5 times every discriminator updating. Although the d_loss will not be close to 0, the quality of the generated images is very bad.

  • Because I do not have GPUs to train all the training set now, so I just test the code with several samples on my MacBook Air. More training results will be updated later.

  • Result

    • After 5th epoch

      5

    • After 10th epoch

      10

    • After 20th epoch

      20

  • The code borrowed from here

About

TensorFlow implementation of DCGAN

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages