I am trying to load the save weights using keras load_model().
from keras.models import load_model
model=load_model("weights.hdf5")
This is error i am getting.
ValueError Traceback (most recent call last)
<ipython-input-34-52d6983dfc34> in <module>()
1 from keras.models import load_model
----> 2 model=load_model("weights.hdf5")
14 frames
/usr/local/lib/python3.6/dist-packages/keras/utils/generic_utils.py in deserialize_keras_object(identifier, module_objects, custom_objects, printable_module_name)
165 if fn is None:
166 raise ValueError('Unknown ' + printable_module_name +
--> 167 ':' + function_name)
168 return fn
169 else:
ValueError: Unknown activation function:swish_activation