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

Bug caused by image format #14

Open
Caojz-20 opened this issue May 5, 2023 · 1 comment
Open

Bug caused by image format #14

Caojz-20 opened this issue May 5, 2023 · 1 comment

Comments

@Caojz-20
Copy link

Caojz-20 commented May 5, 2023

thank u for your code,it helps a lot!
but the image format in HRSC2016 dataset is '.bmp',
in toolbox/tree/master/converter/toDOTA/HRSC2016)/prepare_hrsc2016.py line 35 and line 36,
src_im = osp.join(data_dir + '/FullDataSet/AllImages', trf.strip() + '.jpg')
dst_im = osp.join(train_dir + '/images', trf.strip() + '.jpg')
this will result in an error.
after I replace .jpg with .bmp,it works!

@ming71
Copy link
Owner

ming71 commented Jun 27, 2023

Hi, thanks for your report.

It's not a bug for me, since I've converted images into .bmp type before running converter here.
I'm glad that the code helps a lot! :D

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

2 participants