Page 1 of 1

Luckfox Pico Ultra W rknn install

Posted: 2025-01-06 8:23
by ismlcmtzn
Hi,

I am using Luckfox Pico Ultra W board to develop yolov5 custom model. I installed RKNN-Toolkit2 on my PC. I did eveything according to the RKNN on PC side but. I loaded the image on my board using this link https://wiki.luckfox.com/Luckfox-Pico/L ... burn-image. I copied the project file to my board. Then I use this command:
cd /root/rknn_yolov5_demo/ ./rknn_yolov5_demo model/yolov5.rknn model/bus.jpg
I get this response
-bash: ./rknn_yolov5_demo: No such file or directory

Can you help me? Should I try installing RKNN on my board from this link: https://github.com/rockchip-linux/rknn- ... e/packages? I am working with an Ubuntu image. Should I use a Buildroot image instead? Also, I want to use a CSI camera. Can I use a CSI camera, or do I have to use a USB camera?

Re: Luckfox Pico Ultra W rknn install

Posted: 2025-01-07 6:43
by Ryand
Ubuntu images currently do not support RKNN. You need to use a Buildroot image, which is caused by the incompatibility between glibc and uclibc. Refer to the description of this post: viewtopic.php?p=2281

Re: Luckfox Pico Ultra W rknn install

Posted: 2025-01-09 8:46
by ismlcmtzn
Hi,

I am currently using the Buildroot image, and the RKNN YOLOv5 demo is working. However, if I want to run a custom model and custom code, what should I do? I have converted the .pt file to an .rknn model, but what should I do next? I couldn't find this in the documentation. Can you assist me?

Re: Luckfox Pico Ultra W rknn install

Posted: 2025-01-10 13:18
by Ryand
Next, you can deploy the RKNN model using C++ as described in the documentation.https://wiki.luckfox.com/Luckfox-Pico/L ... ion-design Include the necessary header files such as <rknn_api.h>, then call the rknn_init() function to initialize the model, and proceed to load and run the RKNN model in a similar manner.