Hi everyone!
I just received my Jetson nano and wanted to get YOlov3 running! But I can’t get it to work yet and I’d appreciate some help. I detail what I did, ad more detail on my setup at the end.
{Instalation instructions}
After following the {Setup Details} (see it at the ned of the post), I followed setup instructions on
https://pjreddie.com/darknet/
I compiled the original make file and run YoloV3 on the test
./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg
It runs slowly (~90 seconds)
After that, I changed the make file (GPU, CUDNN, OPENCV =1) and recompiled to use the GPU. I ran the same test
./darknet detect cfg/yolov3.cfg yolov3.weights
,but this time it is extremely slow, and it freezed and restarts (or it kills it) on layer 9.
I read a lot on possible causes:
- I changed this, to fix possible incompatibility between CUDA and the GPU
ARCH= -gencode arch=compute_53,code=[sm_53,compute_53] \
-gencode arch=compute_62,code=[sm_62,compute_62]
-I changed a minor possible issue with darknet
https://github.com/pjreddie/darknet/issues/1141
{Setup Details}
-nv-jetson-nano-sd-card-image-r32.2.1
-I’m using a 5V/4A charger
-
- I run install_basics.sh to add CUDA stuffs into the PATH and LD_LIBRARY_PATH variables
https://jkjung-avt.github.io/setting-up-nano/
-I added 8 Gb of swap memory
$ sudo fallocate -l 8G /mnt/8GB.swap
$ sudo mkswap /mnt/8GB.swap
$ sudo swapon /mnt/8GB.swap
$ /mnt/8GB.swap none swap sw 0 0
-I switched to high power mode
$ sudo nvpmodel -m 0
$ sudo jetson_clocks