mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-15 11:32:09 +03:00
Always handle RKNN as NHWC in Frigate+ model loading
This commit is contained in:
parent
f46f8a2160
commit
2e6d3dab84
@ -161,6 +161,10 @@ class ModelConfig(BaseModel):
|
|||||||
if model_info.get("inputDataType"):
|
if model_info.get("inputDataType"):
|
||||||
self.input_dtype = model_info["inputDataType"]
|
self.input_dtype = model_info["inputDataType"]
|
||||||
|
|
||||||
|
# RKNN always uses NHWC
|
||||||
|
if detector == "rknn":
|
||||||
|
self.input_tensor = InputTensorEnum.nhwc
|
||||||
|
|
||||||
# generate list of attribute labels
|
# generate list of attribute labels
|
||||||
self.attributes_map = {
|
self.attributes_map = {
|
||||||
**model_info.get("attributes", DEFAULT_ATTRIBUTE_LABEL_MAP),
|
**model_info.get("attributes", DEFAULT_ATTRIBUTE_LABEL_MAP),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user