Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yashk2810/dcgan-keras
Deep Convolutional Generative Adverserial Networks
https://github.com/yashk2810/dcgan-keras
dcgan keras tensorflow
Last synced: 15 days ago
JSON representation
Deep Convolutional Generative Adverserial Networks
- Host: GitHub
- URL: https://github.com/yashk2810/dcgan-keras
- Owner: yashk2810
- License: mit
- Created: 2017-06-28T16:57:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-29T09:20:22.000Z (over 7 years ago)
- Last Synced: 2024-10-03T12:21:14.295Z (about 1 month ago)
- Topics: dcgan, keras, tensorflow
- Language: Jupyter Notebook
- Homepage:
- Size: 4.01 MB
- Stars: 46
- Watchers: 6
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deep Convolutional GAN
This is an implementation of the DCGAN paper.
* The training images have been scaled to a range of [-1, 1].
* The activation function used is LeakyRELU(for both the generator and discriminator) with 0.2 as the alpha(slope) value except for the last layer of the generator which uses **tanh** as the activation function.
* There are no Fully connected layers used.
* Instead of Max-pooling, strided convolutions are used in the discriminator.
* For the generator, Upsampling followed by a convolutional layer is used to increase the resolution of the image.
* The optimizer used is Adam.
* A batch size of 128 is used to the train the generator and the discriminator.The image below has been obtained after training the model for **50 epochs**.
![image1](https://raw.githubusercontent.com/yashk2810/DCGAN-Keras/master/images/dcgan.png "image1")
# Requirements
* Keras
* Tensorflow
* Numpy
* Tqdm
* Matplotlib# Usage
The DCGAN.ipynb notebook contains the entire code. To model weights for the generator and the discriminator are available in the model weights folder. The dataset used is the MNIST dataset. This dataset is provided by Keras, so there is no need to download it separately.