From a5488f6a906042af349ac327f8b5007a18358bc1 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 27 Sep 2025 07:28:48 -0600 Subject: [PATCH] Remove unused --- frigate/detectors/detection_runners.py | 4 +--- frigate/util/model.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frigate/detectors/detection_runners.py b/frigate/detectors/detection_runners.py index b1403afe6..2ffa0a1b6 100644 --- a/frigate/detectors/detection_runners.py +++ b/frigate/detectors/detection_runners.py @@ -430,9 +430,7 @@ def get_optimized_runner( if rknn_path: return RKNNModelRunner(rknn_path) - providers, options = get_ort_providers( - device == "CPU", device, model_path=model_path, **kwargs - ) + providers, options = get_ort_providers(device == "CPU", device, **kwargs) if providers[0] == "CPUExecutionProvider": # In the default image, ONNXRuntime is used so we will only get CPUExecutionProvider diff --git a/frigate/util/model.py b/frigate/util/model.py index 007411567..308a16689 100644 --- a/frigate/util/model.py +++ b/frigate/util/model.py @@ -287,7 +287,6 @@ def get_ort_providers( force_cpu: bool = False, device: str | None = "AUTO", requires_fp16: bool = False, - model_path: str | None = None, ) -> tuple[list[str], list[dict[str, Any]]]: if force_cpu: return (