January 2019
Intermediate to advanced
316 pages
8h 16m
English
Training the SRGAN network is a two-step process. In the first step, we train the discriminator network. In the second step, we train the adversarial network, which eventually trains the generator network. Let's start training the network.
Perform the following steps to train the SRGAN network:
# Define hyperparametersdata_dir = "Paht/to/the/dataset/img_align_celeba/*.*"epochs = 20000batch_size = 1# Shape of low-resolution and high-resolution imageslow_resolution_shape = (64, 64, 3)high_resolution_shape = (256, 256, 3)
Read now
Unlock full access