I have a rather weird problem. When I save my model with
model = load_model(name)
I get the following error:
File "/home/drbunsen/Downloads/code/neural/imageClassification.py", line 52, in <module>
model = ms.loadModel("fashion")
File "/home/drbunsen/Downloads/code/neural/modelSaver.py", line 22, in loadModel
model = load_model(name)
File "/home/drbunsen/.local/lib/python3.7/site-packages/keras/engine/saving.py", line 492, in load_wrapper
return load_function(*args, **kwargs)
File "/home/drbunsen/.local/lib/python3.7/site-packages/keras/engine/saving.py", line 584, in load_model
model = _deserialize_model(h5dict, custom_objects, compile)
File "/home/drbunsen/.local/lib/python3.7/site-packages/keras/engine/saving.py", line 273, in _deserialize_model
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'
I am just following examples I found here and on the internet. Can anyone shed some light on this? Thanks in advance.
Debian stable
Keras 2.3.0
Python 3.7.3
Tensor2.0.0-beta1