How to save the weights of VGG-16 model after training it? How to load the saved weights in to the model?
I tried this:
fname = "weights-Test-CNN.hdf5"
custom_vgg_model.save_weights(fname,overwrite=True)
custom_vgg_model.load_weights(weights-Test-CNN.hdf5, by_name=False)
I got following error:
NameError Traceback (most recent call last) in () ----> 1 custom_vgg_model.load_weights(weights-Test-CNN.hdf5, by_name=False)
NameError: name 'weights' is not defined