NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
YOLOv9 LPR model is not compatible (#20159)
Nicolas Mowen0e61d3f15301
diff --git a/frigate/detectors/detection_runners.py b/frigate/detectors/detection_runners.pyindex 9babbdef32..8f3c826f2e 100644--- a/frigate/detectors/detection_runners.py+++ b/frigate/detectors/detection_runners.py@@ -112,6 +112,7 @@ class CudaGraphRunner(BaseModelRunner):EnrichmentModelTypeEnum.paddleocr.value,EnrichmentModelTypeEnum.jina_v1.value,EnrichmentModelTypeEnum.jina_v2.value,+ EnrichmentModelTypeEnum.yolov9_license_plate.value,]def __init__(self, session: ort.InferenceSession, cuda_device_id: int):diff --git a/frigate/embeddings/onnx/lpr_embedding.py b/frigate/embeddings/onnx/lpr_embedding.pyindex f6d230ca4b..e485bf6115 100644--- a/frigate/embeddings/onnx/lpr_embedding.py+++ b/frigate/embeddings/onnx/lpr_embedding.py@@ -262,7 +262,7 @@ class LicensePlateDetector(BaseEmbedding):self.runner = get_optimized_runner(os.path.join(self.download_path, self.model_file),self.device,- model_type="yolov9",+ model_type=EnrichmentModelTypeEnum.yolov9_license_plate.value,)def _preprocess_inputs(self, raw_inputs):diff --git a/frigate/embeddings/types.py b/frigate/embeddings/types.pyindex 2ed404437c..32cbe5dd08 100644--- a/frigate/embeddings/types.py+++ b/frigate/embeddings/types.py@@ -12,3 +12,4 @@ class EnrichmentModelTypeEnum(str, Enum):jina_v1 = "jina_v1"jina_v2 = "jina_v2"paddleocr = "paddleocr"+ yolov9_license_plate = "yolov9_license_plate"