Python Forum
loading_model - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: loading_model (/thread-24410.html)



loading_model - raghav7203 - Feb-12-2020

Error:
loaded_model = model_from_json(loaded_model_json) File "/usr/local/lib/python3.6/dist-packages/keras/engine/saving.py", line 664, in model_from_json return deserialize(config, custom_objects=custom_objects) File "/usr/local/lib/python3.6/dist-packages/keras/layers/__init__.py", line 168, in deserialize printable_module_name='layer') ValueError: Unknown initializer: GlorotUniform
I am getting this error while loading my already trained models,help me how to fix this.


RE: loading_model - satyashetty - Feb-19-2020

Try doing the below:


from tensorflow import keras

to:

import keras