We proceed with the recipe as follows:
- Clone the code from Github:
git clone https://github.com/carpedm20/DCGAN-tensorflow
- Download the dataset with the following:
python download.py mnist celebA
- To train a model with the downloaded dataset, use the following:
python main.py --dataset celebA --input_height=108 --train --crop
- To test it with an existing model, use the following:
python main.py --dataset celebA --input_height=108 --crop
- Alternatively, you can use your own dataset by doing the following:
$ 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" --train