Skip to content

Commit

Permalink
fix: frame_id in update (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDarmon authored Nov 24, 2023
2 parents 49396da + 1aaeb78 commit ac36ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bytetracker/byte_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def __init__(self, track_thresh=0.45, track_buffer=25, match_thresh=0.8, frame_r
self.max_time_lost = self.buffer_size
self.kalman_filter = KalmanFilter()

def update(self, dets, _):
self.frame_id += 1
def update(self, dets, frame_id):
self.frame_id = frame_id
activated_starcks = []
refind_stracks = []
lost_stracks = []
Expand Down

0 comments on commit ac36ee3

Please sign in to comment.