Skip to content

NVR with realtime local object detection for IP cameras

Add support for Frigate+ input data type (#19799)

Nicolas Mowen281c461647e5
diff --git a/frigate/detectors/detector_config.py b/frigate/detectors/detector_config.py
index 3893908d23..d7883523d3 100644
--- a/frigate/detectors/detector_config.py
+++ b/frigate/detectors/detector_config.py
@@ -158,6 +158,9 @@ class ModelConfig(BaseModel):
self.input_pixel_format = model_info["pixelFormat"]
self.model_type = model_info["type"]
+ if model_info.get("inputDataType"):
+ self.input_dtype = model_info["inputDataType"]
+
# generate list of attribute labels
self.attributes_map = {
**model_info.get("attributes", DEFAULT_ATTRIBUTE_LABEL_MAP),