January 2019
Intermediate to advanced
316 pages
8h 16m
English
In this section, we will go through the different steps required to build and compile the networks:
vgg = build_vgg()vgg.trainable = Falsevgg.compile(loss='mse', optimizer=common_optimizer, metrics= ['accuracy'])
To compile VGG19, use mse as the loss, accuracy as the metrics, and common_optimizer as the optimizer. Before compiling the network, disable the training, as we don't want to train the VGG19 network.
discriminator = build_discriminator()discriminator.compile(loss='mse', optimizer=common_optimizer, metrics=['accuracy'])
To compile the discriminator network, use mse as the loss, accuracy as the ...
Read now
Unlock full access