You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks good.
But in Keras, it's preferred to use full model save/load instead of saving/loading weights.
Full model save/load for regular jobs
Weight save/load is specifically designed for transfer learning.
The reason for this preference is that
we don't have to define a model architecture when we use a full model load.
model epoch is taken care of automatically. For advanced optimizers like Adam, RMSProp, it's important to keep the number of steps.
So, I think it's a good idea to write a few comments about each method.
fromkeras.modelsimportload_model#savemodel.save(filepath) # instead of model.save_weights()#loadmodel=load_model(filepath) # instead of model.load_weights()
https://gist.github.com/skyer9/d4cc48e7e0182f198a8b8d1a388f248f
this file describes how to save/load model.
The text was updated successfully, but these errors were encountered: