mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-01 00:22:19 +03:00
Bug fixes (#14092)
* Fix path of selected GPU * Fix selection bug * Simplify
This commit is contained in:
@@ -32,7 +32,7 @@ class LibvaGpuSelector:
|
||||
devices = list(filter(lambda d: d.startswith("render"), os.listdir("/dev/dri")))
|
||||
|
||||
if len(devices) < 2:
|
||||
self._selected_gpu = devices[0]
|
||||
self._selected_gpu = f"/dev/dri/{devices[0]}"
|
||||
return self._selected_gpu
|
||||
|
||||
for device in devices:
|
||||
|
||||
Reference in New Issue
Block a user