Convert to COCO

The COCOarrow-up-right format is widely used in the computer vision community and is supported by many popular frameworks and libraries. COCO format is a complex format that can contain multiple types of annotations. Supervisely supports conversions for instances, keypoints, and captions.

For more information on how to import COCO format data into Supervisely, see the Import from COCO guide.

Converting data using Supervisely Ecosystem Apps

Converting data using Supervisely Python SDK

Our Python SDK provides a simple way to convert your data to COCO format, allowing you to convert a Project or Dataset to COCO format. Easily convert your data in one line of code using the Supervisely Python SDK.

circle-check

Each dataset in the project will be converted to a separate COCO dataset.

circle-info

It supports the following geometry types: sly.Rectangle, sly.Bitmap, sly.Polygon, sly.GraphNodes.

Enabling the with_captions parameter will include captions in the COCO annotations (if present in the project).

  • Convert a project to COCO format:

  • Convert a specific dataset to COCO format:

Last updated