Page 1 of 1
[Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-03-12 8:16
by quocan123
Hi. I'm confusing about 2 OS buildroot and Ubuntu. I want to do project Object Detection using yolo model and openCV. Numpy cant run on buildroot, but I read that rknn cannot run on ubuntu. So that mean if i want to use NPU, i have to use buildroot OS right ?
Re: [Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-03-13 2:20
by Crocodile
Hello, the latest SDK has been updated with Ubuntu support for RKNPU, currently RKNPU calls only support C/C++, if you use python, you need to encapsulate it as a python library
Re: [Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-03-13 3:44
by quocan123
I found 2 github links related to luckfox sdk, in which the link from luckfox wiki page shows that the latest sdk version is v1.4. Can you tell me which link is the official link?
1:
https://github.com/LuckfoxTECH/luckfox-pico (this link i found from luckfox wiki)
2:
https://github.com/airockchip/rknn-toolkit2 (i found this when i search rknn-toolkit2)
Re: [Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-03-13 13:07
by Crocodile
https://github.com/LuckfoxTECH/luckfox-pico is the SDK address of the development board, and you can get it to compile an Ubuntu image that supports RKNPU and run it on the Luckfox Pico Ultra
https://github.com/airockchip/rknn-toolkit2 the address of the RKNPU toolchain repository on which you can train your own RKNN model
Re: [Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-04-17 7:47
by mimin
现在RV1106运行在Ubuntu环境下,请问在Ubuntu环境下使用rknn用那个链接库?我把https://github.com/airockchip/rknn-toolkit2/tree/master/rknpu2/examples/RV1106_RV1103/rknn_yolov5_demo这个CMakeLists.txt的set(RKNN_RT_LIB ${RKNN_API_PATH}/armhf-uclibc/librknnmrt.so)改成set(RKNN_RT_LIB ${RKNN_API_PATH}/armhf/librknnrt.so),rv1106编译正常,运行的时候报错
$ sudo ./rknn_yolov5_demo model/RV1106/yolov5s-640-640.rknn model/bus.jpg
E RKNN: [15:33:36.216] Verify ModelBuffer failed!
E RKNN: [15:33:36.217] Invalid RKNN format
E RKNN: [15:33:36.217] Import rknn model failed!
E RKNN: [15:33:36.218] rknn_init, load model failed!
rknn_init fail! ret=-6
请问这是什么问题呢?能否发一份在Ubuntu环境下使用rknn的例子,感谢
Re: [Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-04-18 1:59
by Crocodile
您好,Rockchip官方不提供ubuntu环境的rknn支持,在ubuntu glibc环境下使用 rknn 库需要使用我们提供的库,位置放置于 ${SDK}/project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-ubuntu-rockchip/usr/lib 下,使用可以参考
https://github.com/luckfox-eng29/luckfo ... kmpi_glibc, 仓库源码目前仅作过简单测试可能存在问题需要自行解决,需要稳定版本后续会整理到
https://github.com/LuckfoxTECH/luckfox_ ... pi_example
Re: [Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-04-18 19:57
by nguyenphangpmb2022
hi guy.
i am is the new sdk and new lib work with luckfoc pico max?. one additional question: in this guide
https://wiki.luckfox.com/Luckfox-Pico/RKMPI-example. what is the code before compile. i want to add the modification so for the counting object and some mqtt to the mqtt broker. thank you
Re: [Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-04-21 1:43
by Crocodile
Hello, the relevant source code repository for the RKMPI wiki is
https://github.com/LuckfoxTECH/luckfox_ ... pi_example
Re: [Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-04-21 2:48
by nguyenphangpmb2022
i am getting stuck in which to getting start to modification the code. in specific example "
https://github.com/LuckfoxTECH/luckfox_ ... tsp_yolov5" and follow rkmpi example"
https://wiki.luckfox.com/Luckfox-Pico/RKMPI-example/".
here is thing in which i expect "i want to add the modification so for the counting object and some mqtt to the mqtt broker." so to begining it which source file should i modification. is it in this file "
https://github.com/LuckfoxTECH/luckfox_ ... rc/main.cc". in the "4.3 Video Input VI section" in "SAMPLE_COMM_ISP_Init(CamId, hdr_mode, multi_sensor, iq_dir); " i see it in the main.cc file too, is that the start because i am not quite familiar with logic block of code base.
thank you
Re: [Use NPU for Object Detection Pico Ultra] Is NPU used when using Ubuntu OS?
Posted: 2025-04-21 3:46
by Crocodile
There is no problem with your modification starting from
https://github.com/LuckfoxTECH/luckfox_ ... rc/main.cc, More development details require a further understanding of RKMPI and the routine source code