mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-24 15:47:43 +03:00
Formatting
This commit is contained in:
parent
ae3427158c
commit
473a061d7c
@ -428,14 +428,19 @@ def get_optimized_runner(
|
|||||||
**options[0],
|
**options[0],
|
||||||
"enable_cuda_graph": True,
|
"enable_cuda_graph": True,
|
||||||
}
|
}
|
||||||
return CudaGraphRunner(ort.InferenceSession(
|
return CudaGraphRunner(
|
||||||
model_path,
|
ort.InferenceSession(
|
||||||
providers=providers,
|
model_path,
|
||||||
provider_options=options,
|
providers=providers,
|
||||||
), options[0]["device_id"])
|
provider_options=options,
|
||||||
|
),
|
||||||
|
options[0]["device_id"],
|
||||||
|
)
|
||||||
|
|
||||||
return ONNXModelRunner(ort.InferenceSession(
|
return ONNXModelRunner(
|
||||||
model_path,
|
ort.InferenceSession(
|
||||||
providers=providers,
|
model_path,
|
||||||
provider_options=options,
|
providers=providers,
|
||||||
))
|
provider_options=options,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user