voc2coco
voc2coco copied to clipboard
Sorts the categories when appending them to the annotation
Got into some trouble using this code for converting annotations. Since regular python dicts are not sorted, and this code basically scrambles the "categories" list in the annotation, any annotation parser which attempt to access the categories by index instead of comparing the "id" value will map incorrectly.