mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Check if hailort thread is still alive when timeout error is run into
This commit is contained in:
parent
81424924aa
commit
f48e74e2ba
@ -350,6 +350,12 @@ class HailoDetector(DetectionApi):
|
|||||||
logger.error(
|
logger.error(
|
||||||
f"Timeout waiting for inference results for request {request_id}"
|
f"Timeout waiting for inference results for request {request_id}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not self.inference_thread.is_alive():
|
||||||
|
raise RuntimeError(
|
||||||
|
"HailoRT inference thread has stopped, restart required."
|
||||||
|
)
|
||||||
|
|
||||||
return np.zeros((20, 6), dtype=np.float32)
|
return np.zeros((20, 6), dtype=np.float32)
|
||||||
|
|
||||||
if isinstance(infer_results, list) and len(infer_results) == 1:
|
if isinstance(infer_results, list) and len(infer_results) == 1:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user