January 2019
Intermediate to advanced
316 pages
8h 16m
English
This is the first step of the training process. In this step, we train the generator and the discriminator networks. Perform the following steps:
# Define hyperparametersdata_dir = "/path/to/dataset/directory/"wiki_dir = os.path.join(data_dir, "wiki_crop")epochs = 500batch_size = 128image_shape = (64, 64, 3)z_shape = 100TRAIN_GAN = TrueTRAIN_ENCODER = FalseTRAIN_GAN_WITH_FR = Falsefr_image_shape = (192, 192, 3)
# Define optimizers# Optimizer for the discriminator networkdis_optimizer = Adam(Read now
Unlock full access