A tensorflow implementation of "Deep Convolutional Generative Adversarial Networks"
A tensorflow implementation of "Deep Convolutional Generative Adversarial Networks"
Tensorflow implementation of Deep Convolutional Generative Adversarial Networks which is a stabilize Generative Adversarial Networks. The referenced torch code can be found here.
First, download dataset with:
$ python download.py mnist celebATo train a model with downloaded dataset:
$ python main.py --dataset mnist --input_height=28 --output_height=28 --train
$ python main.py --dataset celebA --input_height=108 --train --cropTo test with an existing model:
$ python main.py --dataset mnist --input_height=28 --output_height=28
$ python main.py --dataset celebA --input_height=108 --cropOr, 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 --train
$ python main.py --dataset DATASET_NAME
$ # example
$ python main.py --dataset=eyes --input_fname_pattern="*_cropped.png" --trainIf your dataset is located in a different root directory:
$ python main.py --dataset DATASET_NAME --data_dir DATASET_ROOT_DIR --train
$ python main.py --dataset DATASET_NAME --data_dir DATASET_ROOT_DIR
$ # example
$ python main.py --dataset=eyes --data_dir ../datasets/ --input_fname_pattern="*_cropped.png" --trainAfter 6th epoch:
After 10th epoch:
MNIST codes are written by @PhoenixDai.
More results can be found here and here.
Details of the loss of Discriminator and Generator (with custom dataset not celebA).
Details of the histogram of true and fake result of discriminator (with custom dataset not celebA).
Taehoon Kim / @carpedm20
TypeError: '_FlagValues' object is not iterable
InvalidArgumentError (see above for traceback): Nan in summary histogram for: HistogramSummary_2 [[Node: HistogramSummary_2 = HistogramSummary[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](HistogramSummary_2/tag, discriminator_1/Sigmoid)]]
The data img_align_celeba.zip is not zip file.
How to generate larger images?
ValueError: could not broadcast input array from shape (96,96,4) into shape (96,96)
IndexError: list index out of range with custom dataset
TypeError: 'NoneType' object is not subscriptable
NameError:name 'PIL' is not defined
TypeError: 'NoneType' object is not subscriptable
Got error using my own data