Formatting

This commit is contained in:
Nicolas Mowen 2024-09-20 13:59:28 -06:00
parent 80b182eff5
commit 3d38e4bfac

View File

@ -38,7 +38,11 @@ class ONNXDetector(DetectionApi):
path = detector_config.model.path path = detector_config.model.path
logger.info(f"ONNX: loading {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 = [] options = []
for provider in providers: for provider in providers: