mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
[Fix] Fixed the support of custom rknn models by filling the model type.
This commit is contained in:
parent
19fc63e3af
commit
5a6213e2c8
@ -85,6 +85,9 @@ class Rknn(DetectionApi):
|
||||
if "/" in model_path:
|
||||
model_props["preset"] = False
|
||||
model_props["path"] = model_path
|
||||
for model_type in ModelTypeEnum:
|
||||
if model_type in model_path:
|
||||
model_props["model_type"] = model_type
|
||||
else:
|
||||
model_props["preset"] = True
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user