From a3113bd153b0ecb1fded589def1e8eb478397d5c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 19 Apr 2025 13:52:35 -0600 Subject: [PATCH] Fix access error --- frigate/detectors/plugins/hailo8l.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/detectors/plugins/hailo8l.py b/frigate/detectors/plugins/hailo8l.py index ffadf0fdbc..d4ef40d627 100755 --- a/frigate/detectors/plugins/hailo8l.py +++ b/frigate/detectors/plugins/hailo8l.py @@ -175,6 +175,7 @@ class HailoAsyncInference: return self.hef.get_input_vstream_infos()[0].shape def run(self) -> None: + job = None with self.infer_model.configure() as configured_infer_model: while True: batch_data = self.input_store.get() @@ -202,7 +203,9 @@ class HailoAsyncInference: bindings_list=bindings_list, ), ) - job.wait(100) + + if job is not None: + job.wait(100) # ----------------- HailoDetector Class ----------------- #