mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 02:05:21 +03:00
Fix
This commit is contained in:
parent
f4abe67309
commit
3c7b5e5f3c
@ -26,7 +26,7 @@ def get_gpu_device() -> str:
|
|||||||
if GPU_DEVICE_PARAM:
|
if GPU_DEVICE_PARAM:
|
||||||
return GPU_DEVICE_PARAM
|
return GPU_DEVICE_PARAM
|
||||||
|
|
||||||
devices = filter(lambda d: d.startswith("render"), os.listdir("/dev/dri"))
|
devices = list(filter(lambda d: d.startswith("render"), os.listdir("/dev/dri")))
|
||||||
|
|
||||||
if len(devices) < 2:
|
if len(devices) < 2:
|
||||||
GPU_DEVICE_PARAM = "renderD128"
|
GPU_DEVICE_PARAM = "renderD128"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user