Python Forum

Full Version: loading_model
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Try doing the below:


from tensorflow import keras

to:

import keras