akhilpm / DroneDetectron2

Pytorch code for our CVPRw 2023 paper "Cascaded Zoom-in Detector for High Resolution Aerial Images"
MIT License
52 stars 7 forks source link

voc2coco #32

Closed zuikeaideren closed 10 months ago

zuikeaideren commented 11 months ago

Hello, when I used the voc2coco.py file you provided to convert it into a json file, the three xml files 0000293_03401_d_0000939.xml, 9999985_00000_d_0000020.xml, and 9999999_00590_d_0000267.xml would appear assert xmax > xmin assert ymax > ymin error here, how did you solve it, thank you

akhilpm commented 10 months ago

I don't remember coming across this issue. Check if the coordinates make sense by simply printing them or plotting them on the corresponding image. I can't find a reason where it fails for legitimate box coordinates.

zuikeaideren commented 10 months ago

Okay, thank you for your answers