Frigate 0.17 custom model for rk3588 (rknn) #23489
Replies: 2 comments 16 replies
-
|
For Rockchip RKNN models on Frigate 0.17, there's a documented pathway for converting your own ONNX models to RKNN format. (1) Conversion ProcessPlace your ONNX model(s) in soc: ["rk3588"]
quantization: false
output_name: "{input_basename}"
config:
mean_values: [[0, 0, 0]]
std_values: [[255, 255, 255]]
quant_img_RGB2BGR: trueRun the conversion with: (1) The converted models will be placed in Supported Model Types for RKNNThe documentation shows these model types work with RKNN: (1)
Custom Labels IssueRegarding your 4-class requirement with 75 dummy classes - this is a constraint you're hitting. The documentation references labelmap files like Frigate+ AlternativeIf you have a Frigate+ subscription, YOLOv9 models are automatically converted for Rockchip as of 0.17. (2) You can also request custom-trained models, though you'd need to verify if custom class subsets are supported through that workflow. For the "unknown ops" warnings during ONNX-to-RKNN conversion, this typically indicates operations in your ONNX export that aren't supported by the RKNN toolkit. The documented conversion process using Frigate's built-in script should handle compatible models properly. (1) 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
there might be difference... it seems I've trained original model, but snippet is about "converted" version (supposedly newer ultralytics variant). have to try that. (train converted and then export-export). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
After being hitting a wall for couple days (I'm not very proficient with models) still struggling to provide custom rknn model for frigate on rk3588 (orange pi 5).
I've tried various tips and tricks and best I could get is converted yolov8s (ultralytics) to onnx to rknn which kinda works, but not sure if it works properly, since there are weird detections, etc. On onnx-rknn conversions I get unknown ops. I suppose model is not functioning properly due to those warnings/errors during onnx-rknn conv.
So, I'm trying to figure out a way for a clean yolo (8, 9, may be x) of small model to properly export to onnx and then to rknn with no warning on unknown ops but has found no way yet. There're so many quirks like including recommended rknn zoo lab for fixing yolo models for seamless rknn converstion... But their models do not fit frigate either (yolov8s for sure).
Is there a proper pathway for this chain? I see yolov8s even broken gives quite good performance, so, why stick with nano/tiny.
Why am I not satisfied with ready models? I need particulars classes (and, in fact, only 4 of them - so I had to add 75 dummy ones, since frigate parser need 80...).
Beta Was this translation helpful? Give feedback.
All reactions