Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yuanliangxie opened this issue Oct 22, 2020 · 1 comment
Open

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

yuanliangxie opened this issue Oct 22, 2020 · 1 comment

Comments

@yuanliangxie
Copy link

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant