1.下载转换代码
https://github.com/ChenYingpeng/darknet2caffe
按照要求安装及配置
安装pytorch0.4
pip install http://download.pytorch.org/whl/cu80/torch-0.4.0-cp27-cp27mu-linux_x86_64.whl
2.编译caffe
make clean make all
3.编译为python可用
make pycaffe
4.模型转换
python cfg/yolov3.cfg weights/yolov3.weights prototxt/yolov3.prototxt caffemodel/yolov3.caffemodel