I want a pure Python converter function voc to coco(xml dir: pathlib.Path, image dir…
I want a pure Python converter function voc to coco(xml dir: pathlib.Path, image dir…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). For an XML file with root <annotation , <filename img1.jpg</filename , <size <width 100</width <height 80</height </size , and one…
The task
For an XML file with root `<annotation>`, `<filename>img1.jpg</filename>`, `<size><width>100</width><height>80</height></size>`, and one object named `Ryegrass` with `<bndbox><xmin>10</xmin><ymin>20</ymin><xmax>14</xmax><ymax>25</ymax></bndbox>`, calling `voc_to_coco(xml_dir)` should return `images: [{"id": 0,…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.