HF Dataset to COCO format dataset


Before I roll my own, figured I’d ask… maybe I just didn’t find it…

Let’s say I have an Object Detection kind of dataset in HF hub that follows the DatasetDict format like the fashionpedia dataset.

Are there dataset functions that will convert entries from these to the COCO-format ?

I saw the discussion (topic: 34894) about YOLO → DETR/COCO, but would be nice to keep the data in HF format and then transform the entries to YOLO or COCO or “other” as needed.


No, we don’t have a function for converting to the COCO format in the API

:+1: Thanks @mariosasko