Jetson TX2下跑darknet

it2024-03-23  56

cd ~/project git clone https://github.com/pjreddie/darknet yolov3 cd yolov3

Modify the first few lines of Makefile as follows. Note that CUDA architecture of TX2 is “62”, while TX1 “53”.

GPU=1 CUDNN=1 OPENCV=1 OPENMP=0 NUMPY=1 DEBUG=0 ...... ARCH= -gencode arch=compute_53,code=[sm_53,compute_53] \ -gencode arch=compute_62,code=[sm_62,compute_62]

其他修改如github

在make时找不到opencv的处理方法:

在/usr/lib/aarch64-linux-gnu/pkgconfig中找到opencv4.pc,把它复制到/usr/lib/pkgconfig下,并改名为opencv.pc并修改编译所需的src/image_opencv.cpp https://blog.csdn.net/avideointerfaces/article/details/90475694

最后make

最新回复(0)