January 2019
Intermediate to advanced
316 pages
8h 16m
English
In this section, we will create an adversarial network containing the U-Net generator network and the PatchGAN discriminator network. Perform the following steps to create an adversarial network:
input_image_dim = (256, 256, 1)patch_dim = (256, 256)
input_layer = Input(shape=input_image_dim)
generated_images = generator(input_layer)
# Chop the generated images into patchesimg_height, img_width = input_img_dim[:2]patch_height, patch_width = patch_dimrow_idx_list = [(i * patch_height, (i + ...
Read now
Unlock full access