From 138eaf4daa108d3e111a241ad5013fdb9f9c1388 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 9 Nov 2025 06:36:13 -0700 Subject: [PATCH] Fix CudaGraph inverse condition --- frigate/detectors/detection_runners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/detectors/detection_runners.py b/frigate/detectors/detection_runners.py index 5cadb3d52..6eb3a32fc 100644 --- a/frigate/detectors/detection_runners.py +++ b/frigate/detectors/detection_runners.py @@ -529,7 +529,7 @@ def get_optimized_runner( return OpenVINOModelRunner(model_path, device, model_type, **kwargs) if ( - not CudaGraphRunner.is_model_supported(model_type) + CudaGraphRunner.is_model_supported(model_type) and providers[0] == "CUDAExecutionProvider" ): options[0] = {