https://github.com/jacobgil/keras-dcgan
Keras implementation of Deep Convolutional Generative Adversarial Networks
https://github.com/jacobgil/keras-dcgan
artificial-images dcgan deep-learning gan keras keras-dcgan
Last synced: 10 days ago
JSON representation
Keras implementation of Deep Convolutional Generative Adversarial Networks
- Host: GitHub
- URL: https://github.com/jacobgil/keras-dcgan
- Owner: jacobgil
- Created: 2016-03-04T14:12:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-21T10:12:54.000Z (almost 8 years ago)
- Last Synced: 2025-04-03T21:13:43.851Z (19 days ago)
- Topics: artificial-images, dcgan, deep-learning, gan, keras, keras-dcgan
- Language: Python
- Size: 832 KB
- Stars: 977
- Watchers: 42
- Forks: 413
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## KERAS-DCGAN ##
Implementation of http://arxiv.org/abs/1511.06434 with the (awesome) [keras](https://github.com/fchollet/keras) library, for generating artificial images with deep learning.
This trains two adversarial deep learning models on real images, in order to produce artificial images that look real.
The generator model tries to produce images that look real and get a high score from the discriminator.
The discriminator model tries to tell apart between real images and artificial images from the generator.
---
This assumes theano ordering.
You can still use this with tensorflow, by setting "image_dim_ordering": "th" in ~/.keras/keras.json (although this will be slower).---
## Usage
**Training:**
`python dcgan.py --mode train --batch_size `
python dcgan.py --mode train --path ~/images --batch_size 128
**Image generation:**
`python dcgan.py --mode generate --batch_size `
`python dcgan.py --mode generate --batch_size --nice` : top 5% images according to discriminator
python dcgan.py --mode generate --batch_size 128
---
## Result
**generated images :**


**train process :**

---