[Feature] Machine Learning using Rockchip NPU on supported boards. #13243
Replies: 12 comments 95 replies
-
Update: I am able to run "ViT-B-32__openai" using rknn-toolkit2 on emulator, I haven't verify the accuracy but I will say it got some progress. |
Beta Was this translation helpful? Give feedback.
-
Can someone help me with dynamic_shapes&static_shapes? I have no idea what are them. |
Beta Was this translation helpful? Give feedback.
-
Small update: I tested the model in Immich, and the ViT-B-32 shows a latency difference of 200 ms after using RKNN(from cpu bcs I am on dietpi). |
Beta Was this translation helpful? Give feedback.
-
I don't know anything about machine learning development but I do have a FriendlyElec CM3588 NAS which is mostly idling at the moment. I was anyways planning to move my Immich to that from my 15 years old Xeon home server. |
Beta Was this translation helpful? Give feedback.
-
Oh, wait! It looks like it got itself race-conditioned or something. |
Beta Was this translation helpful? Give feedback.
-
Ok, now all models (clip ViT-B-32 and buffalo_l) work with concurrency 1. |
Beta Was this translation helpful? Give feedback.
-
We only load the onnx model when the get_input and get_output are required now, no more 1 gig memory usage for a textual model! |
Beta Was this translation helpful? Give feedback.
-
Great job, I have an Orangepi CM4 and just made a PCB circuit board that converts PCIe (m2 adapter) to 5 SATA. I happen to need this! |
Beta Was this translation helpful? Give feedback.
-
#15241 btw But seems like everything still works(? |
Beta Was this translation helpful? Give feedback.
-
After this commit yoni13@4b0f93c#diff-11bd5eb879036c49a92372828a94f25a483e31f60e829255bcee33b87ca0260b , we have
idk what happened
|
Beta Was this translation helpful? Give feedback.
-
可以打包一个rk3566的镜像测试一下吗 |
Beta Was this translation helpful? Give feedback.
-
I would like to ask which version of rknn-toolkit2 are you using? I encountered an issue while using version 1.6, where the onnx model cannot be opened. The reason is that onnx runtime==1.16.0 and onnx==1.14.1 cannot support higher versions of opset in onnx (from immich-app/ViT-B-32_openi), but I upgraded onnx runtime==1.19.0 and onnx==1.17.0 and cannot meet the dependency of rknn-toolkit2==1.6.0. This makes me very distressed. |
Beta Was this translation helpful? Give feedback.
-
I have searched the existing feature requests to make sure this is not a duplicate request.
The feature
Since immich already supports Hardware Transcoding with hardware acceleration via rkmpp, maybe we can make machine learning working on rockchip NPUs.
Links:
rknn-toolkit2
frigate's implantation
How to test
Platform
Beta Was this translation helpful? Give feedback.
All reactions