You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found duplicate STracks in the list tracker.removed_stracks after tracking a video with mc_bot_sort.py.
From the picture, it can be seen that except for the STracks with a length of only 1 frame, all other STracks will repeat once, which I believe is caused by this part of the code:
I think the sixth line in this part of the code should be changed to self.lost_stracks = sub_stracks(self.lost_stracks, removed_stracks)
Because in the current frame, the STracks marked as removed due to lost exceeding max_time_lost has not been updated to self.removed_stracks yet, self.lost_stracks = sub_stracks(self.lost_stracks, self.removed_stracks) cannot remove the STracks marked as removed from self.lost_stracks, resulting in being added to the self.removed_stracks again in the next frame.
According to my test, this change is effective.
I'm not sure if my change is correct. If there are any mistakes, I hope you can let me know.
The text was updated successfully, but these errors were encountered:
I found duplicate STracks in the list
tracker.removed_stracks
after tracking a video with mc_bot_sort.py.From the picture, it can be seen that except for the STracks with a length of only 1 frame, all other STracks will repeat once, which I believe is caused by this part of the code:
I think the sixth line in this part of the code should be changed to
self.lost_stracks = sub_stracks(self.lost_stracks, removed_stracks)
Because in the current frame, the STracks marked as removed due to lost exceeding
max_time_lost
has not been updated toself.removed_stracks
yet,self.lost_stracks = sub_stracks(self.lost_stracks, self.removed_stracks)
cannot remove the STracks marked as removed fromself.lost_stracks
, resulting in being added to theself.removed_stracks
again in the next frame.According to my test, this change is effective.
I'm not sure if my change is correct. If there are any mistakes, I hope you can let me know.
The text was updated successfully, but these errors were encountered: