GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Ming213/DCGAN-tensorflow: A tensorflow implementation of Deep Convolutional Generative Adversarial Networks

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

150 Commits
150 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
web
web
 
 
.gitignore
.gitignore
 
 
DCGAN.png
DCGAN.png
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
average.png
average.png
 
 
download.py
download.py
 
 
main.py
main.py
 
 
model.py
model.py
 
 
ops.py
ops.py
 
 
utils.py
utils.py
 
 

Repository files navigation

DCGAN in Tensorflow

Tensorflow implementation of Deep Convolutional Generative Adversarial Networks which is a stabilize Generative Adversarial Networks. The referenced torch code can be found here.

alt tag

  • Brandon Amos wrote an excellent blog post and image completion code based on this repo.
  • To avoid the fast convergence of D (discriminator) network, G (generator) network is updated twice for each D network update, which differs from original paper.

Online Demo

link

Prerequisites

  • Python 2.7 or Python 3.3+
  • Tensorflow
  • SciPy
  • (Optional) Align&Cropped Images.zip : Large-scale CelebFaces Dataset

Usage

First, download dataset with:

$ python download.py mnist
$ python download.py celebA

To train a model with downloaded dataset:

$ python main.py --dataset mnist --is_train True
$ python main.py --dataset celebA --is_train True --is_crop True

To test with an existing model:

$ python main.py --dataset mnist
$ python main.py --dataset celebA --is_crop True

Or, you can use your own dataset (without central crop) by:

$ mkdir data/DATASET_NAME
... add images to data/DATASET_NAME ...
$ python main.py --dataset DATASET_NAME --is_train True
$ python main.py --dataset DATASET_NAME

Results

result

celebA

After 6th epoch:

result3

After 10th epoch:

![result4](assets/test_2016-01-27 15:08:54.png)

Asian face dataset

custom_result1

custom_result1

custom_result2

MNIST

MNIST codes are written by @PhoenixDai.

mnist_result1

mnist_result2

mnist_result3

More results can be found here and here.

Training details

Details of the loss of Discriminator and Generator (with custom dataset not celebA).

d_loss

g_loss

Details of the histogram of true and fake result of discriminator (with custom dataset not celebA).

d_hist

d__hist

Author

Taehoon Kim / @carpedm20

About

A tensorflow implementation of Deep Convolutional Generative Adversarial Networks

carpedm20.github.io/faces/

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.