timmeinhardt / trackformer

Implementation of "TrackFormer: Multi-Object Tracking with Transformers”. [Conference on Computer Vision and Pattern Recognition (CVPR), 2022]
https://arxiv.org/abs/2101.02702
Apache License 2.0
487 stars 113 forks source link

Please read & provide the following #112

Closed zhoutianxiang-coder closed 7 months ago

zhoutianxiang-coder commented 8 months ago

When I try to run the demo code on my custom video, I am getting the following error: Traceback (most recent calls WITHOUT Sacred internals): File "src\track.py", line 189, in main write_images, generate_attention_maps) File "E:\trackformer-main\src\trackformer\util\track_utils.py", line 146, in plot_sequence cmap = rand_cmap(mx, type='bright', first_color_black=False, last_color_black=False) File "E:\trackformer-main\src\trackformer\util\track_utils.py", line 94, in rand_cmap random_colormap = LinearSegmentedColormap.from_list('new_map', randRGBcolors, N=nlabels) File "C:\Users\admin\AppData\Roaming\Python\Python37\site-packages\matplotlib\colors.py", line 796, in from_list if (isinstance(colors[0], Sized) and len(colors[0]) == 2 IndexError: list index out of range

z994202831 commented 7 months ago

metoo

timmeinhardt commented 7 months ago

There are several issues on this matter. Please look at https://github.com/timmeinhardt/trackformer/issues/26