You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
astringfield
changed the title
Customising "category_id" values when exporting a COCO-formatted dataset
[QUESTION] Customising "category_id" values when exporting a COCO-formatted dataset
Mar 15, 2024
HI @astringfield. I do not believe this is supported by default. One option is subclass COCODetectionDatasetExporter and override the _parse_classes method. It looks like that is where the class mapping is initialized. (Note the safer solution is to re-implement the entire setup method as that is a public contract)
Contributions are also welcome if you see an opportunity to add category_id configuration out of the box!
I have a custom COCO-formatted dataset loaded into FiftyOne and I'm trying to export the images and annotations in COCO format:
Currently, the COCO
category_id
values in the export COCO JSON file start at0
.Is it possible to modify this behaviour so that the
category_id
values start at1
?Examples below of the current export results and the export results I'm hoping to see.
Current export format (categories start at
0
)Desired export format (categories start at
1
)Appreciate any help - thanks!
The text was updated successfully, but these errors were encountered: