Home

Awesome

tensorflow-MNIST-cGAN-cDCGAN

Tensorflow implementation of conditional Generative Adversarial Networks (cGAN) [1] and conditional Deep Convolutional Generative Adversarial Networks (cDCGAN) for MANIST [2] dataset.

Implementation details

GAN

Resutls

<table align='center'> <tr align='center'> <td> cGAN </td> <td> cDCGAN </td> </tr> <tr> <td><img src = 'MNIST_cGAN_results/MNIST_cGAN_generation_animation.gif'> <td><img src = 'MNIST_cDCGAN_results/MNIST_cDCGAN_generation_animation.gif'> </tr> </table> <table align='center'> <tr align='center'> <td> MNIST </td> <td> cGAN after 100 epochs </td> <td> cDCGAN after 30 epochs </td> </tr> <tr> <td><img src = 'MNIST_cGAN_results/raw_MNIST_10.png'> <td><img src = 'MNIST_cGAN_results/MNIST_cGAN_100.png'> <td><img src = 'MNIST_cDCGAN_results/MNIST_cDCGAN_30.png'> </tr> </table> <table align='center'> <tr align='center'> <td> cGAN </td> <td> cDCGAN </td> </tr> <tr> <td><img src = 'MNIST_cGAN_results/MNIST_cGAN_train_hist.png'> <td><img src = 'MNIST_cDCGAN_results/MNIST_cDCGAN_train_hist.png'> </tr> </table>

Development Environment

Reference

[1] Mirza, Mehdi, and Simon Osindero. "Conditional generative adversarial nets." arXiv preprint arXiv:1411.1784 (2014).

(Full paper: https://arxiv.org/pdf/1411.1784.pdf)

[2] Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. "Gradient-based learning applied to document recognition." Proceedings of the IEEE, 86(11):2278-2324, November 1998.