NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Add check for valid label index for object detection (#7149) (#7164)
Nate Meyer5bb5e2dc5a28
diff --git a/frigate/object_detection.py b/frigate/object_detection.pyindex a0c31b7556..22adb954e4 100644--- a/frigate/object_detection.py+++ b/frigate/object_detection.py@@ -59,6 +59,9 @@ class LocalObjectDetector(ObjectDetector):raw_detections = self.detect_raw(tensor_input)for d in raw_detections:+ if int(d[0]) < 0 or int(d[0]) >= len(self.labels):+ logger.warning(f"Raw Detect returned invalid label: {d}")+ continueif d[1] < threshold:breakdetections.append(