keras版本yolov3提示str object has no attribute decode

如果大家看了博客还没有解决

可以加入企鹅交流群号:722058911

问题背景:提示错误如下

 File "D:\InstallFolder\Anaconda3\envs\yolov3\lib\site-packages\keras\engine\saving.py", line 1004, in load_weights_from_hdf5_group
    original_keras_version = f.attrs['keras_version'].decode('utf8')
AttributeError: 'str' object has no attribute 'decode

解决办法:

卸载原来的h5py模块,安装2.10版本

pip install h5py==2.10 -i https://pypi.tuna.tsinghua.edu.cn/simple/

你可能感兴趣的:(keras,yolov3,decode,str,object,深度学习)