mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
Formatting
This commit is contained in:
parent
80b182eff5
commit
3d38e4bfac
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user