FairMOTVehicle icon indicating copy to clipboard operation
FairMOTVehicle copied to clipboard

the gen_label_detrac.py maybe has something wrong code!

Open yuanliangxie opened this issue 4 years ago • 1 comments

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 avatar Oct 22 '20 08:10 yuanliangxie

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!

yuanliangxie avatar Oct 22 '20 08:10 yuanliangxie