January 2019
Intermediate to advanced
316 pages
8h 16m
English
Again, training a DCGAN is similar to training a Vanilla GAN network. It is a four-step process:
We will work on these steps one by one in this section.
Let's start by defining the variables and the hyperparameters:
dataset_dir = "/Path/to/dataset/directory/*.*"batch_size = 128z_shape = 100epochs = 10000dis_learning_rate = 0.0005gen_learning_rate = 0.0005dis_momentum = 0.9gen_momentum = 0.9dis_nesterov = Truegen_nesterov = True
Here, we have specified different hyperparameters for the training. We will now see how to load the dataset for the training.
Read now
Unlock full access