January 2019
Intermediate to advanced
316 pages
8h 16m
English
We will use the pre-trained VGG19 network. The purpose of the VGG19 network is to extract feature maps of the generated and the real images. In this section, we will build and compile the VGG19 network with pre-trained weights in Keras:
input_shape = (256, 256, 3)
vgg = VGG19(weights="imagenet")vgg.outputs = [vgg.layers[9].output]
input_layer = Input(shape=input_shape)
features = vgg(input_layer)
Read now
Unlock full access