How to do it...

We proceed with the recipe as follows:

  1. Clone the code from Github:
git clone https://github.com/carpedm20/DCGAN-tensorflow
  1. Download the dataset with the following:
python download.py mnist celebA
  1. To train a model with the downloaded dataset, use the following:
python main.py --dataset celebA --input_height=108 --train --crop
  1. To test it with an existing model, use the following:
python main.py --dataset celebA --input_height=108 --crop
  1. 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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.141.27