FairMOTVehicle
FairMOTVehicle copied to clipboard
the gen_label_detrac.py maybe has something wrong code!
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))
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!