编译darknet,报错darknet: ./src/cuda.c:36: check_error: Assertion `0' failed.

报错:

a@a-6108GC:~/catkin_ws/src/darknet_ros/darknet$ ./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg 
CUDA Error: CUDA driver version is insufficient for CUDA runtime version
darknet: ./src/cuda.c:36: check_error: Assertion `0' failed.
已放弃 (核心已转储)

主要是cuda版本与nvidia驱动版本不匹配导致,需要重新下载对应

cuda与cudnn并重新编译opencv

参考:https://blog.csdn.net/qq_34570910/article/details/81090105

你可能感兴趣的:(Ubuntu)