1.下载配置keras-yolo
https://blog.csdn.net/qq_28013751/article/details/84587628
到4)步:转换YOLO的weights文件格式为Keras的格式:
python convert.py yolov3.cfg yolov3.weights model_data/yolo.h5
出现问题:1)AttributeError: 'module' object has no attribute 'leaky_relu'
tensorflow与keras版本问题,将tensorflow版本改为1.2.1; keras版本改为2.1.5。如果之前有先前的版本要先卸载
命令为:
pip install --user keras==2.1.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install --user tensorflow-gpu==1.2.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
2)
TypeError:unicode argument expected,got 'str'
按照https://blog.csdn.net/weixin_39739789/article/details/81538300改就可以啦
成功