NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fixes (#14480)
Nicolas Mowen560dc68120aa
diff --git a/frigate/object_processing.py b/frigate/object_processing.pyindex 7ba3270f1e..fab7bbc6ca 100644--- a/frigate/object_processing.py+++ b/frigate/object_processing.py@@ -344,6 +344,7 @@ class CameraState:# if the object's thumbnail is not from the current frame, skipif (current_frame is None+ or obj.thumbnail_data is Noneor obj.false_positiveor obj.thumbnail_data["frame_time"] != frame_time):diff --git a/frigate/util/services.py b/frigate/util/services.pyindex 925ca6be84..3f8ecf32c8 100644--- a/frigate/util/services.py+++ b/frigate/util/services.py@@ -279,7 +279,11 @@ def get_intel_gpu_stats() -> dict[str, str]:logger.error(f"Unable to poll intel GPU stats: {p.stderr}")return Noneelse:- data = json.loads(f'[{"".join(p.stdout.split())}]')+ try:+ data = json.loads(f'[{"".join(p.stdout.split())}]')+ except json.JSONDecodeError:+ return {"gpu": "-%", "mem": "-%"}+results: dict[str, str] = {}render = {"global": []}video = {"global": []}@@ -328,7 +332,7 @@ def get_intel_gpu_stats() -> dict[str, str]:results["clients"] = {}for key in render.keys():- if key == "global":+ if key == "global" or not render[key] or not video[key]:continueresults["clients"][key] = (