Category ID starts from 0 instead of 1
priteshgohil opened this issue · 0 comments
priteshgohil commented
COCO expect that class ID starts from 1 as below,
Line 14 in 207f265
However, It came to the notice that class ID starts from 0 in output.json.
To fix this issue, change the following line
Line 66 in 207f265
to
return {name: i+1 for i, name in enumerate(classes_names)}