一.Yolov3配置运行
环境:Ubuntu14.04 +cuda8.0+cudnn5.1
- >>Darknet installed
git clone https://github.com/pjreddie/darknet
cd darknet
make
2.>>download the pre-trained weight file
wget https://pjreddie.com/media/files/yolov3.weights
3. >> run the detector
./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg
二.实现yolo算法在检测结果中只框选车和人
在darknet/src/image.c 里的draw_detections函数draw_box_width函数之前
添加判断语句 :
if(strcmp(labelstr,"person")!=0&&strcmp(labelstr,"car")!=0&&strcmp(labelstr,"truck")!=0)
{continue;}
三.yolo 算法 GPU版本配置运行
(一).修改makefile 文件
(二).解决cudnn.h问题,重新下载加入文件夹中并链接
(三).解决找不到lcuda等库问题,查找并连接
(四).解决显卡驱动不匹配问题:卸载,查看合适版本推荐,安装,重启,运行
具体实现过程:
(一).修改makefile 文件
1.打开darknet/