NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
video['global'] can be empty resulting in a divide by zero (#16993)
Chris Oelerichf81bab8895d6
diff --git a/frigate/util/services.py b/frigate/util/services.pyindex c9c1b61a25..ce7041c268 100644--- a/frigate/util/services.py+++ b/frigate/util/services.py@@ -362,7 +362,7 @@ def get_intel_gpu_stats(sriov: bool) -> dict[str, str]:if video_frame is not None:video[key].append(float(video_frame))- if render["global"]:+ if render["global"] and video["global"]:results["gpu"] = (f"{round(((sum(render['global']) / len(render['global'])) + (sum(video['global']) / len(video['global']))) / 2, 2)}%")