首页 > 其他分享 >model_config = json.loads(model_config.decode('utf-8')) AttributeError: 'str' ob

model_config = json.loads(model_config.decode('utf-8')) AttributeError: 'str' ob

时间:2022-12-21 15:34:41浏览次数:44  
标签:no attribute decode model config loads

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

标签:no,attribute,decode,model,config,loads
From: https://www.cnblogs.com/owlowl/p/16996365.html

相关文章