Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjx committed Sep 10, 2024
1 parent 0a3db1e commit 0d103f4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions frigate/object_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,14 +878,12 @@ def update(self, frame_time, current_detections, motion_boxes, regions):
c(self.name, self.best_objects[obj_name], frame_time)

# cleanup thumbnail frame cache
current_thumb_frames = set()
if obj.thumbnail_data is not None and "frame_time" in obj.thumbnail_data:
current_thumb_frames = {
obj.thumbnail_data["frame_time"]
for obj in tracked_objects.values()
if not obj.false_positive
}

current_thumb_frames = {
obj.thumbnail_data["frame_time"]
for obj in tracked_objects.values()
if obj.thumbnail_data is not None and "frame_time" in obj.thumbnail_data and not obj.false_positive
}

current_best_frames = {
obj.thumbnail_data["frame_time"] for obj in self.best_objects.values()
}
Expand Down

0 comments on commit 0d103f4

Please sign in to comment.