Abnormal_Event_Detection
Abnormal_Event_Detection copied to clipboard
Reg: Loading Pre-trained model fails
Hi All, I tested the model (i renamed the model.h5 to AnomalyDetector.h5 . Loading fails completely with an error TypeError: ('Keyword argument not understood:', 'implementation') Any suggestion will be highly appreciated.
Thank you Vivek
I faced this same problem. I was working on Keras version 2.2.4.
Then I checked which keras version was used when model.h5 file was made by the owner. Keras 2.1.1 was used. You can verify it too
import h5py
f = h5py.File('Model.h5', 'r')
print(f.attrs.get('keras_version'))
Update to this version. It works fine.
You can check the version by running this: python -c 'import keras; print(keras.version)'
i think model.h5 is not AnomalyDetector.h5.You can generate it by run train.y
abhishekpopli
I faced this same problem. I was working on Keras version 2.2.4. Then I checked which keras version was used when model.h5 file was made by the owner. Keras 2.1.1 was used. You can verify it too import h5py
f = h5py.File('Model.h5', 'r') print(f.attrs.get('keras_version'))
Update to this version. It works fine. You can check the version by running this: python -c 'import keras; print(keras.version)'
How to check the version of the h5 file using anaconda? Thank you in advance
Hey bro ,you know professor.py problem? i used keras version that is 2.0.8 and tensorflow version == 1.1.0
Thank you good luck for you