From f618f25d7e29245657f90378d52141f05d2d5388 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 7 Apr 2025 21:41:53 -0500 Subject: [PATCH] catch not implemented exception (#17594) --- frigate/embeddings/onnx/runner.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frigate/embeddings/onnx/runner.py b/frigate/embeddings/onnx/runner.py index efb6047ed..c34c97a8d 100644 --- a/frigate/embeddings/onnx/runner.py +++ b/frigate/embeddings/onnx/runner.py @@ -94,9 +94,13 @@ class ONNXModelRunner: if self.type == "ov": infer_request = self.interpreter.create_infer_request() - # This ensures the model starts with a clean state for each sequence - # Important for RNN models like PaddleOCR recognition - infer_request.reset_state() + try: + # This ensures the model starts with a clean state for each sequence + # Important for RNN models like PaddleOCR recognition + infer_request.reset_state() + except Exception: + # this will raise an exception for models with AUTO set as the device + pass outputs = infer_request.infer(input)