From f018805666991f06f339fb74ab6c59096e206716 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Fri, 23 Sep 2022 07:30:29 -0600 Subject: [PATCH] Don't need to set and passively get --- frigate/object_processing.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 8cd31cddd..56acf7667 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -80,9 +80,6 @@ class TrackedObject: # start the score history self.score_history = [self.obj_data["score"]] - # set blank sub label - self.obj_data["sub_label"] = None - def _is_false_positive(self): # once a true positive, always a true positive if not self.false_positive: @@ -183,7 +180,7 @@ class TrackedObject: "frame_time": self.obj_data["frame_time"], "snapshot_time": snapshot_time, "label": self.obj_data["label"], - "sub_label": self.obj_data["sub_label"], + "sub_label": self.obj_data.get("sub_label"), "top_score": self.top_score, "false_positive": self.false_positive, "start_time": self.obj_data["start_time"],