← 开源

Keras implementation of Deep Convolutional Generative Adversarial Networks

Model DevelopmentArchitecturePython
增长势头
+024 小时新增 Star0.0%
977
Star
400
Fork
+0
本周
4
贡献者
创建于 2016-03-04 · 更新于 2026-07-15 · 今日第 15376 名
主要开发者
jacobsagivtechjacobgillaoluzi
README

KERAS-DCGAN

Implementation of http://arxiv.org/abs/1511.06434 with the (awesome) 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 <batch_size>

python dcgan.py --mode train --path ~/images --batch_size 128

Image generation:

python dcgan.py --mode generate --batch_size <batch_size>

python dcgan.py --mode generate --batch_size <batch_size> --nice : top 5% images according to discriminator

python dcgan.py --mode generate --batch_size 128


Result

generated images :

train process :


排名相邻
同类项目

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载