参考文章:
https://www.jianshu.com/p/3943be47fe84
环境:
Python 3.6
Tensorflow 1.8
Keras 2.1.3
OpenCV 3.4
安装tensorflow 1.5
pip install tensorflow==1.8 -i [https://pypi.tuna.tsinghua.edu.cn/simple](https://pypi.tuna.tsinghua.edu.cn/simple)
pip install tensorflow-gpu==1.8 -i [https://pypi.tuna.tsinghua.edu.cn/simple](https://pypi.tuna.tsinghua.edu.cn/simple)
查看tensorflow版本号
tf.__version__
安装keras(俺的版本是2.3.1,不知道会不会产生问题)
conda install keras
环境配好了(大概吧,不知到版本会不会产生影响)
git clone https://github.com/xiaochus/YOLOv3
首先下载权值文件,并置于项目顶层yolov3.weights
执行下列命令转换,将YOLOv3.weights 转换成yolo.h5
python yad2k.py cfg\yolo.cfg yolov3.weights data\yolo.h5