diff --git a/frigate/detectors/plugins/onnx.py b/frigate/detectors/plugins/onnx.py index 7e7e426e8..f9231b026 100644 --- a/frigate/detectors/plugins/onnx.py +++ b/frigate/detectors/plugins/onnx.py @@ -38,7 +38,11 @@ class ONNXDetector(DetectionApi): path = detector_config.model.path logger.info(f"ONNX: loading {detector_config.model.path}") - providers = ["CPUExecutionProvider"] if detector_config.device == "CPU" else ort.get_available_providers() + providers = ( + ["CPUExecutionProvider"] + if detector_config.device == "CPU" + else ort.get_available_providers() + ) options = [] for provider in providers: