mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
Fix check
This commit is contained in:
parent
12a0d36602
commit
a7d43cc273
@ -28,10 +28,14 @@ def get_ort_providers(
|
|||||||
providers = []
|
providers = []
|
||||||
options = []
|
options = []
|
||||||
|
|
||||||
for provider in providers:
|
for provider in ort.get_available_providers():
|
||||||
if provider == "CudaExecutionProvider":
|
if provider == "CUDAExecutionProvider":
|
||||||
providers.append(provider)
|
providers.append(provider)
|
||||||
options.append({})
|
options.append(
|
||||||
|
{
|
||||||
|
"arena_extend_strategy": "kSameAsRequested",
|
||||||
|
}
|
||||||
|
)
|
||||||
elif provider == "TensorrtExecutionProvider":
|
elif provider == "TensorrtExecutionProvider":
|
||||||
# TensorrtExecutionProvider uses too much memory without options to control it
|
# TensorrtExecutionProvider uses too much memory without options to control it
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user