January 2019
Intermediate to advanced
316 pages
8h 16m
English
The steps given in this section show how to train the discriminator network. This is a continuation of the last series of steps:
generated_high_resolution_images = generator.predict(low_resolution_images)
real_labels = np.ones((batch_size, 16, 16, 1)) fake_labels = np.zeros((batch_size, 16, 16, 1))
d_loss_real = discriminator.train_on_batch(high_resolution_images, real_labels)
d_loss_fake = discriminator.train_on_batch(generated_high_resolution_images, fake_labels) ...Read now
Unlock full access