CaptainEven / FairMOTVehicle

A fork of FairMOT used to do vehicle MOT.用于跟踪车辆的多目标跟踪, 自定义数据进行单类别多目标实时跟踪
MIT License
184 stars 39 forks source link

the gen_label_detrac.py maybe has something wrong code! #12

Open yuanliangxie opened 3 years ago

yuanliangxie commented 3 years ago

On line 48 to line 54

The following is my modified code:


                        dst_f_path = os.path.join(dst_img1_dir + y)

                        if not os.path.isfile(dst_f_path):

                            shutil.copy(y_path, dst_img1_dir)

                            print('{} cp to {}'.format(y, dst_img1_dir))

                        else:

                            print('{} already exists.'.format(dst_f_path))
yuanliangxie commented 3 years ago

The wrong code I think

                         # copy image to train image dir
                        dst_f_path = dst_img1_dir + y
                        if os.path.isfile(dst_f_path):
                            shutil.copy(y_path, dst_img1_dir)
                            print('{} cp to {}'.format(y, dst_img1_dir))
                        else:
                            print('{} already exists.'.format(dst_f_path))

Thank you for your shared spirit!