mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-03 06:40:22 +00:00
Don't try to use OpenVINO when CPU is set as device
This commit is contained in:
parent
abbb23b5b6
commit
562ad3d373
@ -354,7 +354,7 @@ def get_optimized_runner(
|
|||||||
if rknn_path:
|
if rknn_path:
|
||||||
return RKNNModelRunner(rknn_path)
|
return RKNNModelRunner(rknn_path)
|
||||||
|
|
||||||
if is_openvino_gpu_npu_available():
|
if device != "CPU" and is_openvino_gpu_npu_available():
|
||||||
return OpenVINOModelRunner(model_path, device, **kwargs)
|
return OpenVINOModelRunner(model_path, device, **kwargs)
|
||||||
|
|
||||||
providers, options = get_ort_providers(device == "CPU", device, **kwargs)
|
providers, options = get_ort_providers(device == "CPU", device, **kwargs)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user