NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix cuda graph fallback (#20039)
Nicolas Mowen751678c84599
diff --git a/frigate/detectors/plugins/onnx.py b/frigate/detectors/plugins/onnx.pyindex 527de7e11f..4f903aa1fa 100644--- a/frigate/detectors/plugins/onnx.py+++ b/frigate/detectors/plugins/onnx.py@@ -143,9 +143,10 @@ class ONNXDetector(DetectionApi):try:# Run using CUDA graphs if availabletensor_output = self._cg_runner.run(model_input_name, tensor_input)- except Exception:- logger.warning("CUDA Graphs failed, falling back to regular run")+ except Exception as e:+ logger.warning(f"CUDA Graphs failed, falling back to regular run: {e}")self._cg_runner = None+ tensor_output = self.model.run(None, {model_input_name: tensor_input})else:# Use regular run if CUDA graphs are not availabletensor_output = self.model.run(None, {model_input_name: tensor_input})