Open trohit920 opened 10 months ago
First confirm whether the examples/pytorch/resnet18 example can run normally.
I can successfully convert the YOLOV8 Onnx model to RKNN Format using the toolkit on host PC. However while running inference board it gives me below error with both Resnet model and my own model.
ubuntu@jammy:~/packages/rknn-toolkit/rknn-toolkit-lite/examples/inference_with_lite$ python test.py
--> Load RKNN model
done
--> Init runtime environment
E Catch exception when init runtime!
E Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.7/site-packages/rknnlite/api/rknn_lite.py", line 144, in init_runtime
async_mode=async_mode, rknn2precompile=rknn2precompile)
File "rknnlite/api/rknn_runtime.py", line 282, in rknnlite.api.rknn_runtime.RKNNRuntime.__init__
File "rknnlite/api/rknn_runtime.py", line 361, in rknnlite.api.rknn_runtime.RKNNRuntime._get_target_soc
Exception: Please specify the target in init_runtime!
Init runtime environment failed
Here is the output of model converted on host PC using the toolkit:
D Packing Conv_Conv_31_155 ...
D Packing Conv_Conv_35_165 ...
D Packing Conv_Conv_38_145 ...
D Packing Conv_Conv_3_233 ...
D Packing Conv_Conv_43_120 ...
D Packing Conv_Conv_46_227 ...
D Packing Conv_Conv_49_223 ...
D Packing Conv_Conv_53_215 ...
D Packing Conv_Conv_56_200 ...
D Packing Conv_Conv_60_217 ...
D Packing Conv_Conv_63_202 ...
D Packing Conv_Conv_68_180 ...
D Packing Conv_Conv_6_231 ...
D Packing Conv_Conv_71_219 ...
D Packing Conv_Conv_74_204 ...
D Packing Conv_Conv_78_189 ...
D Packing Conv_Conv_81_182 ...
D Packing Conv_Conv_86_154 ...
D Packing Conv_Conv_89_150 ...
D Packing Conv_Conv_96_126 ...
D Packing Initializer_438_9 ...
D Disable rknn op statistic.
D output tensor id = 0, name = Concat_Concat_235/out0_0
D input tensor id = 1, name = images_238
I Build config finished.
(rk3399pro) fazliddin@fazliddin-AORUS-17G-WB:~/rock_chip/rknn-toolkit-v1.7.5-packages/packages$ python -m rknn.bin.list_devices
W rknn-toolkit version: 1.7.5
*************************
all device(s) with adb mode:
cdec2dfbaf6a4679
*************************
@eRaul here is the output of proxy command:
ubuntu@jammy:~/packages/RK3399Pro_npu/drivers/npu_transfer_proxy/linux-aarch64$ ./npu_transfer_proxy
I NPUTransfer: Starting NPU Transfer Proxy, Transfer version 2.1.0 (b5861e7@2020-11-23T11:50:51), devid = 0123456789ABCDEF, pid = 1358:790
If you are running the inference script on the PC, you need to specify target='rk3399pro'
where you call the init_runtime. interface.
I and ollowing this repo to install RKNN-Toolkit on host PC to convert YOLO-V8 Model to RKNN format and deploy on RK3399PRO board. However, I encountered below error while doing so,