January 2019
Intermediate to advanced
316 pages
8h 16m
English
The steps given in this section show how to train the generator network. This is a continuation of the last series of steps:
high_resolution_images, low_resolution_images = sample_images(data_dir=data_dir, batch_size=batch_size,low_resolution_shape=low_resolution_shape, high_resolution_shape=high_resolution_shape) # Normalize images high_resolution_images = high_resolution_images / 127.5 - 1. low_resolution_images = low_resolution_images / 127.5 - 1.
image_features = vgg.predict(high_resolution_images)
Read now
Unlock full access