All Projects → togheppi → cDCGAN

togheppi / cDCGAN

Licence: other
PyTorch implementation of Conditional Deep Convolutional Generative Adversarial Networks (cDCGAN)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to cDCGAN

gan-vae-pretrained-pytorch
Pretrained GANs + VAEs + classifiers for MNIST/CIFAR in pytorch.
Stars: ✭ 134 (+173.47%)
Mutual labels:  mnist, dcgan, generative-adversarial-networks
Pytorch Mnist Celeba Gan Dcgan
Pytorch implementation of Generative Adversarial Networks (GAN) and Deep Convolutional Generative Adversarial Networks (DCGAN) for MNIST and CelebA datasets
Stars: ✭ 363 (+640.82%)
Mutual labels:  mnist, dcgan, celeba
Generative adversarial networks 101
Keras implementations of Generative Adversarial Networks. GANs, DCGAN, CGAN, CCGAN, WGAN and LSGAN models with MNIST and CIFAR-10 datasets.
Stars: ✭ 138 (+181.63%)
Mutual labels:  mnist, dcgan, generative-adversarial-networks
Gan Tutorial
Simple Implementation of many GAN models with PyTorch.
Stars: ✭ 227 (+363.27%)
Mutual labels:  mnist, dcgan, celeba
Tf Exercise Gan
Tensorflow implementation of different GANs and their comparisions
Stars: ✭ 110 (+124.49%)
Mutual labels:  mnist, dcgan, celeba
DCGAN-Pytorch
A Pytorch implementation of "Deep Convolutional Generative Adversarial Networks"
Stars: ✭ 23 (-53.06%)
Mutual labels:  mnist, dcgan, celeba
Psgan
Periodic Spatial Generative Adversarial Networks
Stars: ✭ 108 (+120.41%)
Mutual labels:  dcgan, generative-adversarial-networks
MNIST-invert-color
Invert the color of MNIST images with PyTorch
Stars: ✭ 13 (-73.47%)
Mutual labels:  mnist, generative-adversarial-networks
Pytorch Mnist Celeba Cgan Cdcgan
Pytorch implementation of conditional Generative Adversarial Networks (cGAN) and conditional Deep Convolutional Generative Adversarial Networks (cDCGAN) for MNIST dataset
Stars: ✭ 290 (+491.84%)
Mutual labels:  mnist, celeba
Tensorflow Generative Model Collections
Collection of generative models in Tensorflow
Stars: ✭ 3,785 (+7624.49%)
Mutual labels:  mnist, generative-adversarial-networks
gans-2.0
Generative Adversarial Networks in TensorFlow 2.0
Stars: ✭ 76 (+55.1%)
Mutual labels:  mnist, conditional-gan
coursera-gan-specialization
Programming assignments and quizzes from all courses within the GANs specialization offered by deeplearning.ai
Stars: ✭ 277 (+465.31%)
Mutual labels:  dcgan, conditional-gan
Tf.gans Comparison
Implementations of (theoretical) generative adversarial networks and comparison without cherry-picking
Stars: ✭ 477 (+873.47%)
Mutual labels:  dcgan, celeba
Mimicry
[CVPR 2020 Workshop] A PyTorch GAN library that reproduces research results for popular GANs.
Stars: ✭ 458 (+834.69%)
Mutual labels:  dcgan, generative-adversarial-networks
Pycadl
Python package with source code from the course "Creative Applications of Deep Learning w/ TensorFlow"
Stars: ✭ 356 (+626.53%)
Mutual labels:  dcgan, celeba
Tensorflow Mnist Gan Dcgan
Tensorflow implementation of Generative Adversarial Networks (GAN) and Deep Convolutional Generative Adversarial Netwokrs for MNIST dataset.
Stars: ✭ 163 (+232.65%)
Mutual labels:  mnist, dcgan
DCGAN-CelebA-PyTorch-CPP
DCGAN Implementation using PyTorch in both C++ and Python
Stars: ✭ 14 (-71.43%)
Mutual labels:  dcgan, celeba
GAN-Project-2018
GAN in Tensorflow to be run via Linux command line
Stars: ✭ 21 (-57.14%)
Mutual labels:  dcgan, generative-adversarial-networks
Tensorflow DCGAN
Study Friendly Implementation of DCGAN in Tensorflow
Stars: ✭ 22 (-55.1%)
Mutual labels:  dcgan, celeba
Disentangling Vae
Experiments for understanding disentanglement in VAE latent representations
Stars: ✭ 398 (+712.24%)
Mutual labels:  mnist, celeba

Conditional DCGAN

PyTorch implementation of Conditional Deep Convolutional Generative Adversarial Networks (cDCGAN)

Generating MNIST dataset

  • MNIST image is resized to 32x32 size image

Network architecture

  • Generator

    • hidden layers: Three 4x4 strided convolutional layers (512, 256, and 128 kernels, respectively) with ReLU
    • output layer: 4x4 strided convolutional layer (1024 nodes = 32x32 size image) with Tanh
    • Batch normalization is used except for output layer
  • Discriminator

    • hidden layers: Three 4x4 convolutional layers (128, 256, and 512 kernels, respectively) with Leaky ReLU
    • output layer: 4x4 convolutional layer (1 node) with Sigmoid
    • Batch normalization is used except for 1st hidden layer & output layer

Results

  • Adam optimizer is used. Learning rate for generator = 0.0002 and 0.0001 for discriminator, batch size = 128, # of epochs = 20:
  • Loss values are plotted using Tensorboard in PyTorch.
GAN losses Generated images

Generating CelebA dataset

  • Center region of CelebA image is cropped (108x108 for male/female, 150x150 for black/brown hair) and resized to 64x64 size image

Network architecture

  • Generator

    • hidden layers: Four 4x4 strided convolutional layers (1024, 512, 256, and 128 kernels, respectively) with ReLU
    • output layer: 4x4 strided convolutional layer (4096 nodes = 64x64 size image) with Tanh
    • Batch normalization is used except for output layer
  • Discriminator

    • hidden layers: Four 4x4 convolutional layers (128, 256, 512 and 1024 kernels, respectively) with Leaky ReLU
    • output layer: 4x4 convolutional layer (1 node) with Sigmoid
    • Batch normalization is used except for 1st hidden layer & output layer

Results

  • Adam optimizer is used. Learning rate = 0.0002 both for generator and discriminator, batch size = 128, # of epochs = 20:
  • Images are generated with fixed noise and varying gender label (1st, 3rd rows: female / 2nd, 4th rows: male)
GAN losses Generated images
  • Images are generated with fixed noise and varying hair color label (1st, 3rd rows: brown hair / 2nd, 4th rows: black hair)
  • Only 87,772 images (black hair: 47,336 / brown hair: 40,436) are sampled from original CelebA data for training.
GAN losses Generated images
  • Generated images varying latent variable
    • Odd rows: female / Even rows: male N
    • Odd rows: brown hair / Even rows: black hair N

References

  1. https://wiseodd.github.io/techblog/2016/12/24/conditional-gan-tensorflow/
  2. https://github.com/znxlwm/pytorch-MNIST-CelebA-cGAN-cDCGAN
  3. https://github.com/moono/moo-dl-practice/tree/master/Work-place/CDCGAN-MNIST
  4. https://github.com/moono/moo-dl-practice/tree/master/Work-place/CDCGAN-celebA
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].