报错详情

File "/home/ffggh/miniconda3/envs/py36/lib/python3.6/site-packages/keras/engine/saving.py", line 242, in _deserialize_model
    model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'

原因

h5py文件版本太高

解决办法:

pip install h5py==2.10
posted on 2021-04-24 14:37  jaysonteng  阅读(306)  评论(0编辑  收藏  举报