【阿迪的深度学习之路】yolo v3安装

YOLO官网教程:https://pjreddie.com/darknet/yolo/

 

参照教程:

https://blog.csdn.net/qq_35451572/article/details/80384674

https://blog.csdn.net/john_bh/article/details/80625220

 

需要注意几点:

1、yolov3.weights太大,从官网下载太慢,可以从百度网盘下载。

2、运行Demo报错./darknet: error while loading shared libraries: libcudart.so.10.0: cannot open shared object file: 

 

这是CUDA库链接问题,解决方法:(参照:https://www.jianshu.com/p/de8a6f23ed49

sudo cp /usr/local/cuda-10.0/lib64/libcudart.so.10.0 /usr/local/lib/libcudart.so.10.0 && sudo ldconfig

sudo cp /usr/local/cuda-10.0/lib64/libcublas.so.10.0 /usr/local/lib/libcublas.so.10.0 && sudo ldconfig

sudo cp /usr/local/cuda-10.0/lib64/libcurand.so.10.0 /usr/local/lib/libcurand.so.10.0 && sudo ldconfig

 

Demo运行成功:

./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg

 

显示结果:

 

 

 

posted @ 2019-08-18 01:01  赤热之冰  阅读(97)  评论(0编辑  收藏  举报