toolbox icon indicating copy to clipboard operation
toolbox copied to clipboard

Bug caused by image format

Open Caojz-20 opened this issue 1 year ago • 1 comments

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!

Caojz-20 avatar May 05 '23 12:05 Caojz-20

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

ming71 avatar Jun 27 '23 09:06 ming71