MixSort icon indicating copy to clipboard operation
MixSort copied to clipboard

demo_track.py 球员id的问题

Open Zeyu1226-mt opened this issue 1 year ago • 1 comments

您好,我在多个视频上运行demo_track.py时,发现不同视频的球员id是连续的。也就是说,第一个视频最后一个球员id是10的话,下一个视频的第一个球员id是11。请问如何调试代码,使得在跟踪新的视频时,球员id还是从1开始的?期待您的帮助,谢谢您

Zeyu1226-mt avatar Sep 19 '24 15:09 Zeyu1226-mt

Hello @Xiyu-AI ,

You could refer to following functions: https://github.com/MCG-NJU/MixSort/blob/a078f5bf6ae9fbeecbc1384479d5f02ab8b9e7f6/yolox/evaluators/mot_evaluator.py#L322-L340

While encountering a new video (L334), tracker.re_init is called to reset the variables. https://github.com/MCG-NJU/MixSort/blob/a078f5bf6ae9fbeecbc1384479d5f02ab8b9e7f6/yolox/mixsort_tracker/mixsort_tracker.py#L217-L221

To use our tracker, you need to modify demo_track.py since it remains the same as in original repo.

ret-1 avatar Oct 07 '24 16:10 ret-1