mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 20:47:42 +03:00
Fix access error
This commit is contained in:
parent
ac646d7b83
commit
a3113bd153
@ -175,6 +175,7 @@ class HailoAsyncInference:
|
|||||||
return self.hef.get_input_vstream_infos()[0].shape
|
return self.hef.get_input_vstream_infos()[0].shape
|
||||||
|
|
||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
|
job = None
|
||||||
with self.infer_model.configure() as configured_infer_model:
|
with self.infer_model.configure() as configured_infer_model:
|
||||||
while True:
|
while True:
|
||||||
batch_data = self.input_store.get()
|
batch_data = self.input_store.get()
|
||||||
@ -202,6 +203,8 @@ class HailoAsyncInference:
|
|||||||
bindings_list=bindings_list,
|
bindings_list=bindings_list,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if job is not None:
|
||||||
job.wait(100)
|
job.wait(100)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user