From b6b2783c567e75b2e91fbbc0f8f048fdf7b2d210 Mon Sep 17 00:00:00 2001 From: Peter Dolkens Date: Thu, 12 Mar 2026 15:22:14 +1100 Subject: [PATCH] fix(stats): recognise -hwaccel cuda and nvdec as NVIDIA GPU args Upstream only checks for 'cuvid' or 'nvidia' when deciding whether to collect NVIDIA GPU stats. When using `-hwaccel cuda` (required on driver 580+ where cuvid breaks RTSP decoding), the condition is never true and the GPU usage panel in the Frigate UI stays empty. Extend the check to also match 'cuda' and 'nvdec' so that GPU stats are reported regardless of which NVDEC entry-point is configured. --- frigate/stats/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/stats/util.py b/frigate/stats/util.py index 40337268e..8700a1c7d 100644 --- a/frigate/stats/util.py +++ b/frigate/stats/util.py @@ -234,7 +234,7 @@ async def set_gpu_stats( if args in hwaccel_errors: # known erroring args should automatically return as error stats["error-gpu"] = {"gpu": "", "mem": ""} - elif "cuvid" in args or "nvidia" in args: + elif "cuvid" in args or "nvidia" in args or "cuda" in args or "nvdec" in args: # nvidia GPU nvidia_usage = get_nvidia_gpu_stats()