NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
fix: off-by-one error in GpuSelector.get_gpu_arg (#22464)
ryzendigobc29c4ba7108
diff --git a/frigate/ffmpeg_presets.py b/frigate/ffmpeg_presets.pyindex 43272a6d1f..20e1620e14 100644--- a/frigate/ffmpeg_presets.py+++ b/frigate/ffmpeg_presets.py@@ -63,7 +63,7 @@ class LibvaGpuSelector:if not self._valid_gpus:return ""- if gpu <= len(self._valid_gpus):+ if gpu < len(self._valid_gpus):return self._valid_gpus[gpu]else:logger.warning(f"Invalid GPU index {gpu}, using first valid GPU")