From f8b1a27e1f39820a99f4c53af9a68b0213885aa7 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:29:53 -0500 Subject: [PATCH] fix order --- frigate/embeddings/maintainer.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frigate/embeddings/maintainer.py b/frigate/embeddings/maintainer.py index 66a8f0e9d..e6c817f4c 100644 --- a/frigate/embeddings/maintainer.py +++ b/frigate/embeddings/maintainer.py @@ -67,6 +67,12 @@ class EmbeddingMaintainer(threading.Thread): self.requires_face_detection = "face" not in self.config.model.all_attributes self.detected_faces: dict[str, float] = {} + # create communication for updating event descriptions + self.requestor = InterProcessRequestor() + self.stop_event = stop_event + self.tracked_events: dict[str, list[any]] = {} + self.genai_client = get_genai_client(config.genai) + # set license plate recognition conditions self.lpr_config = self.config.lpr self.requires_license_plate_detection = ( @@ -77,12 +83,6 @@ class EmbeddingMaintainer(threading.Thread): self.lpr_config, self.requestor ) - # create communication for updating event descriptions - self.requestor = InterProcessRequestor() - self.stop_event = stop_event - self.tracked_events: dict[str, list[any]] = {} - self.genai_client = get_genai_client(config.genai) - @property def face_detector(self) -> cv2.FaceDetectorYN: # Lazily create the classifier.