January 2019
Intermediate to advanced
316 pages
8h 16m
English
Saving a model in Keras requires just one line of code. To save the generator model, add the following line:
# Specify the path for the generator modelunet_generator.save_weights("generator.h5")
Similarly, save the discriminator model by adding the following line:
# Specify the path for the discriminator modelpatchgan_discriminator.save_weights("discriminator.h5")
Read now
Unlock full access