SparkTempest / BAT

Bi-directional Adapter for Multi-modal Tracking
MIT License
62 stars 8 forks source link

Can't load images #12

Open Hrren opened 6 months ago

Hrren commented 6 months ago

Excellent work! Some images in the Lasher dataset, such as v001.jpg, may become '000001. jpg' when read, resulting in incorrect loading. How can I resolve this issue?

SparkTempest commented 6 months ago

The naming format for LasHeR was quite disorganized. We have revised the naming format but forgot to note that. We sincerely apologize for this oversight. The reference format is as follows: image

orangeTjie commented 2 months ago

According to your format, I still encountered the following problem [ WARN:0@4.883] global loadsave.cpp:241 findDecoder imread_('/home/robot/download/LasHeR0327/TrainingSet/trainingset/left11/visible/000165.jpg'): can't open/read file: check file path/integrity

JinxiaXie commented 1 month ago

Reffe to TBSI, change the fuction "_get_frame_path" as following for reading image in BAT-main/lib/train/dataset/lasher.py:

def _get_frame_path(self, seq_path, frame_id):
    vis_frame_names = sorted(os.listdir(os.path.join(seq_path, 'visible')))
    inf_frame_names = sorted(os.listdir(os.path.join(seq_path, 'infrared')))
    return os.path.join(seq_path, 'visible', vis_frame_names[frame_id]), os.path.join(seq_path, 'infrared', inf_frame_names[frame_id])