NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix CUDA graph config (#20135)
Nicolas Mowenb8fd0a2b31a7
diff --git a/frigate/detectors/detection_runners.py b/frigate/detectors/detection_runners.pyindex 3e304d63ce..9babbdef32 100644--- a/frigate/detectors/detection_runners.py+++ b/frigate/detectors/detection_runners.py@@ -420,16 +420,27 @@ def get_optimized_runner(if device != "CPU" and is_openvino_gpu_npu_available():return OpenVINOModelRunner(model_path, device, model_type, **kwargs)- ortSession = ort.InferenceSession(- model_path,- providers=providers,- provider_options=options,- )-if (not CudaGraphRunner.is_complex_model(model_type)and providers[0] == "CUDAExecutionProvider"):- return CudaGraphRunner(ortSession, options[0]["device_id"])+ options[0] = {+ **options[0],+ "enable_cuda_graph": True,+ }+ return CudaGraphRunner(+ ort.InferenceSession(+ model_path,+ providers=providers,+ provider_options=options,+ ),+ options[0]["device_id"],+ )- return ONNXModelRunner(ortSession)+ return ONNXModelRunner(+ ort.InferenceSession(+ model_path,+ providers=providers,+ provider_options=options,+ )+ )