diff --git a/frigate/util/services.py b/frigate/util/services.py index d2e3204df..fa8622210 100644 --- a/frigate/util/services.py +++ b/frigate/util/services.py @@ -214,11 +214,12 @@ def is_vaapi_amd_driver() -> bool: logger.error(f"Unable to poll vainfo: {p.stderr}") return False else: - output = p.stdout.decode('unicode_escape').split("\n") + output = p.stdout.decode("unicode_escape").split("\n") # VA Info will print out the friendly name of the driver return any("AMD Radeon Graphics" in line for line in output) + def get_amd_gpu_stats() -> dict[str, str]: """Get stats using radeontop.""" radeontop_command = ["radeontop", "-d", "-", "-l", "1"]