問題背景:提示錯誤如下
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/
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/206963.html
標籤:其他
