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 modelgen_model.save("directory/for/the/generator/model.h5")
Similarly, save the discriminator model by adding the following line:
# Specify the path for the discriminator modeldis_model.save("directory/for/the/discriminator/model.h5")
Read now
Unlock full access