December 2018
Intermediate to advanced
268 pages
8h 23m
English
class Trainer: def __init__(self, width = 28, height= 28, channels = 1, latent_size=100, epochs =50000, batch=32, checkpoint=50,model_type='DCGAN',data_path = ''):
As you will recall, we used this parameter in Chapter 3, My First GAN in Under 100 Lines, when selecting the MNIST number we wanted to train on. In this instance, we'll use it to select the model type for the generator and discriminator. For this implementation, we will assume that both the generator and discriminator will want to use the same model type. An optional change to consider in the future would be to allow ...
Read now
Unlock full access