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
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