model_config = json.loads(model_config.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode'

tensorflow_core/python/keras/saving/hdf5_format.py", line 166, in load_model_from_hdf5     model_config = json.loads(model_config.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode'

 

 

h5py版本不匹配https://github.com/tensorflow/tensorflow/issues/44467

 

pip install --upgrade h5py==2.10.0 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

posted @ 2022-12-21 15:26  singyoutosleep  阅读(703)  评论(0)    收藏  举报