mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
catch not implemented exception (#17594)
This commit is contained in:
parent
921908fe33
commit
f618f25d7e
@ -94,9 +94,13 @@ class ONNXModelRunner:
|
|||||||
if self.type == "ov":
|
if self.type == "ov":
|
||||||
infer_request = self.interpreter.create_infer_request()
|
infer_request = self.interpreter.create_infer_request()
|
||||||
|
|
||||||
# This ensures the model starts with a clean state for each sequence
|
try:
|
||||||
# Important for RNN models like PaddleOCR recognition
|
# This ensures the model starts with a clean state for each sequence
|
||||||
infer_request.reset_state()
|
# 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)
|
outputs = infer_request.infer(input)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user