Skip to content

Commit

Permalink
fix frame count
Browse files Browse the repository at this point in the history
  • Loading branch information
mikel-brostrom committed May 13, 2024
1 parent 6dd8cd8 commit c9654d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions boxmot/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def wrapper(*args, **kwargs):

# reset frame count for every class
instance.frame_count = frame_count
logger.info(instance.frame_count)

# Update detections using the decorated method
tracks = self.update(instance, class_dets, im)
Expand All @@ -69,9 +68,7 @@ def wrapper(*args, **kwargs):

if tracks.size > 0:
per_class_tracks.append(tracks)

print(cls_id, instance.frame_count)


# when all active tracks lists have been updated
instance.per_class_active_tracks = self.per_class_active_tracks

Expand Down

0 comments on commit c9654d1

Please sign in to comment.