toolbox
toolbox copied to clipboard
Bug caused by image format
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!
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