TX2跑通yolov4
TX2环境配置:
Ubuntu 18.04
cuda 10.2
cudnn 8.0.0
opencv 4.1.1
最终实现demo、调用板载摄像头跑yolov4。
参考此文执行命令和修改Makefile文件:
yolo4直接部署到TX2上
参考此文执行命令进行demo测试和调用板载摄像头实时测试:
TX2利用yolov4实时目标检测
调用板载摄像头
./darknet detector demo cfg/coco.data cfg/yolov4-tiny.cfg yolov4-tiny.weights "nvarguscamerasrc ! video/x-raw(memory:NVMM), width=1280, height=720, format=NV12, framerate=30/1 ! nvvidconv flip-method=0 ! video/x-raw, width=1280, height=720, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink"
./darknet detector demo cfg/coco.data cfg/yolov4.cfg yolov4.weights "nvarguscamerasrc ! video/x-raw(memory:NVMM), width=1280, height=720, format=NV12, framerate=30/1 ! nvvidconv flip-method=0 ! video/x-raw, width=1280, height=720, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink"
usb摄像头
./darknet detector demo cfg/coco.data cfg/yolov4-tiny.cfg yolov4-tiny.weights -c 1
./darknet detector demo cfg/coco.data cfg/yolov4.cfg yolov4.weights -c 1
参考此文解决报错 Failed to load module “canberra-gtk-module”:
Linux学习笔记(十八) – 运行程序,出现Failed to load module "canberra-gtk-module"错误的解决方案