windows系统下出现的
original_keras_version = f.attrs['keras_version’].decode('utf8’)
1.问题描述
load_weights_from_hdf5_group
original_keras_version = f.attrs['keras_version'].decode('utf8')AttributeError: 'str' object has no attribute 'decode'
2.原因分析
在安装tensorflow时,默认安装h5py为3.1.0,而报错是因为你安装的TF不支持过高版本的h5py。
3.解决方案
卸载h5py3.1.0版本,安装h5py2.10.0版本。
重启编译器
pip install h5py==2.10.0