在跑demo.ipynb程序时出现AttributeError: ‘str’ object has no attribute 'decode’报错,具体报错行
# Load weights trained on MS-COCO model.load_weights(COCO_MODEL_PATH, by_name=True)
原因是h5py>=3.0.0 导致 tensorflow 中的 keras 模型加载出现问题.
解决方法:
卸载h5ppip uninstall h5py
安装指定版本的h5pypip install h5py==2.10.0



