mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-26 16:47:41 +03:00
Remove unused
This commit is contained in:
parent
cacdf6bb84
commit
a5488f6a90
@ -430,9 +430,7 @@ def get_optimized_runner(
|
|||||||
if rknn_path:
|
if rknn_path:
|
||||||
return RKNNModelRunner(rknn_path)
|
return RKNNModelRunner(rknn_path)
|
||||||
|
|
||||||
providers, options = get_ort_providers(
|
providers, options = get_ort_providers(device == "CPU", device, **kwargs)
|
||||||
device == "CPU", device, model_path=model_path, **kwargs
|
|
||||||
)
|
|
||||||
|
|
||||||
if providers[0] == "CPUExecutionProvider":
|
if providers[0] == "CPUExecutionProvider":
|
||||||
# In the default image, ONNXRuntime is used so we will only get CPUExecutionProvider
|
# In the default image, ONNXRuntime is used so we will only get CPUExecutionProvider
|
||||||
|
|||||||
@ -287,7 +287,6 @@ def get_ort_providers(
|
|||||||
force_cpu: bool = False,
|
force_cpu: bool = False,
|
||||||
device: str | None = "AUTO",
|
device: str | None = "AUTO",
|
||||||
requires_fp16: bool = False,
|
requires_fp16: bool = False,
|
||||||
model_path: str | None = None,
|
|
||||||
) -> tuple[list[str], list[dict[str, Any]]]:
|
) -> tuple[list[str], list[dict[str, Any]]]:
|
||||||
if force_cpu:
|
if force_cpu:
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user