From 41e5c12e5b3a65a22537ccf3931762fa6e133577 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 1 Oct 2025 18:14:04 -0600 Subject: [PATCH] Don't use rknn if device is CPU (#20312) --- frigate/detectors/detection_runners.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frigate/detectors/detection_runners.py b/frigate/detectors/detection_runners.py index 5d1cbf7c2..6a6e46a6c 100644 --- a/frigate/detectors/detection_runners.py +++ b/frigate/detectors/detection_runners.py @@ -424,7 +424,8 @@ def get_optimized_runner( ) -> BaseModelRunner: """Get an optimized runner for the hardware.""" device = device or "AUTO" - if is_rknn_compatible(model_path): + + if device != "CPU" and is_rknn_compatible(model_path): rknn_path = auto_convert_model(model_path) if rknn_path: