ming71 / toolbox

various cv tools, such as label tools, data augmentation, label conversion, etc.
424 stars 126 forks source link

Bug caused by image format #14

Open Caojz-20 opened 1 year ago

Caojz-20 commented 1 year ago

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 commented 1 year ago

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