mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 09:07:41 +03:00
Don't use rknn if device is CPU
This commit is contained in:
parent
8307fe31aa
commit
9317477543
@ -424,7 +424,8 @@ def get_optimized_runner(
|
|||||||
) -> BaseModelRunner:
|
) -> BaseModelRunner:
|
||||||
"""Get an optimized runner for the hardware."""
|
"""Get an optimized runner for the hardware."""
|
||||||
device = device or "AUTO"
|
device = device or "AUTO"
|
||||||
if is_rknn_compatible(model_path):
|
|
||||||
|
if device != "CPU" and is_rknn_compatible(model_path):
|
||||||
rknn_path = auto_convert_model(model_path)
|
rknn_path = auto_convert_model(model_path)
|
||||||
|
|
||||||
if rknn_path:
|
if rknn_path:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user