From 71c09b9d61d12dc4e934f93c94cca5b419d4ba0a Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:43:00 -0500 Subject: [PATCH] clean up --- frigate/detectors/detection_runners.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/frigate/detectors/detection_runners.py b/frigate/detectors/detection_runners.py index c6c9569da9..ee465b3d51 100644 --- a/frigate/detectors/detection_runners.py +++ b/frigate/detectors/detection_runners.py @@ -340,13 +340,6 @@ class OpenVINOModelRunner(BaseModelRunner): self.input_tensor: ov.Tensor | None = None - # Shared, process-wide lock serializing inference across all OpenVINO - # runners in this process. Needed both for the JinaV2 case (one runner - # shared between text and vision threads) and to prevent two *different* - # runners (e.g. an ArcFace face-model build thread and the LPR detector) - # from inferring concurrently and corrupting shared OpenVINO state. - self._inference_lock = _OPENVINO_LOCK - if not self.complex_model: try: input_shape = self.compiled_model.inputs[0].get_shape() @@ -394,7 +387,7 @@ class OpenVINOModelRunner(BaseModelRunner): # process — both the shared-runner JinaV2 case (genai text thread + # embeddings vision thread) and distinct runners running on separate # threads (e.g. the ArcFace face-model build vs the LPR detector). - with self._inference_lock: + with _OPENVINO_LOCK: from frigate.embeddings.types import EnrichmentModelTypeEnum if self.model_type in [EnrichmentModelTypeEnum.arcface.value]: