Computer vision
annotation formats.
How the common formats for images, video, LiDAR and medical volumes store labels, and how to bring each one into Supervisely and take it back out.
Formats and their pages
Each page shows how the format stores labels, an example file, the ways to import and export it, and what each part becomes in Supervisely JSON, the native format of the platform.
- Supervisely JSONNative formatThe native format of the platform: a meta.json with classes and tags and one JSON annotation per item, for every modality.BoxesPolygonsMasksKeypointsPolylinesCuboidsTags
- COCOOne JSON file per dataset with images, annotations and categories: boxes, polygon or RLE segmentation, keypoints.BoxesPolygonsMasksKeypointsCaptions
- YOLOA .txt label file per image with normalized boxes, polygons or keypoints, and a YAML file with the class names.BoxesPolygonsKeypoints
- Pascal VOCAn XML file per image with labeled boxes, PNG masks by class and by object, and ImageSets with the splits.BoxesMasks
- LabelMeA JSON file per image from the LabelMe tool: shapes with a label, a shape type and points in pixels.BoxesPolygonsMasksPolylinesPoints
- CVATThe XML export of the CVAT annotation tool, CVAT for images 1.1: labels of every image or video frame in one file.BoxesPolygonsMasksKeypointsPolylinesPointsTags
- KITTI 3DLiDAR scans as .bin files with camera images, calibration and a text line per 3D box.Cuboids
- nuScenesDriving scenes as JSON tables linked by tokens, with LiDAR, radar and camera data and 3D boxes.CuboidsTags
- DICOM, NRRD & NIfTICT and MRI volumes as DICOM series, NRRD or NIfTI files, with 3D segmentation masks as NRRD or NIfTI.MasksBoxes
- PNG masksSemantic and instance segmentation as PNG images, with a file that maps pixel values to classes.Masks
- CityscapesStreet scenes with a polygon JSON per image, organised by split and city.Polygons
- Another format?
The Ecosystem has import and export apps for more formats, and the Python SDK converts anything else in a few lines.
Import appsAsk an engineer
How import and export work in Supervisely
A dataset comes in through a converter, is stored in Supervisely JSON and labeled in the image labeling, video labeling, 3D point clouds or medical imaging toolbox, then goes out in the format your training code reads.
- 01
Import
Create a project, pick its type (images, videos, point clouds or volumes) and drop in files and annotations. The converter for the format reads them; Ecosystem apps cover more formats and options.
- 02
Store as Supervisely JSON
Every project keeps its classes and tags in meta.json and the labels of each item in a JSON file of its own, whatever the format it came from.
- 03
Export
Download a project in Supervisely format, or run an export app from its menu to get COCO, YOLO, Pascal VOC, Cityscapes, masks and more. The Python SDK converts downloaded projects in code.
Frequently asked questions.
What is the Supervisely annotation format?
A JSON-based format with the same structure for every kind of project: a meta.json with the classes, tags and project type, and dataset folders with the source files and one annotation JSON per item. It stores images, videos, point clouds, point cloud episodes and volumes. See the Supervisely JSON specification.
Which annotation formats can I import into Supervisely?
Supervisely JSON, COCO, YOLO, Pascal VOC, Cityscapes, LabelMe, Label Studio and PNG masks for images; KITTI 3D, nuScenes, Lyft and .pcd, .ply, .las and .laz files for point clouds; DICOM, NRRD and NIfTI for volumes, and more. The docs keep the full list of supported formats.
Do I have to convert my data before importing it?
Not for the supported formats: drop the files into a project and the converter for the format reads them. For anything else, an import can be written with the Python SDK or the API.
Can I export annotations to COCO, YOLO or Pascal VOC?
Yes. Run Export to COCO, Export to YOLOv8 format or Export to Pascal VOC from the menu of a project, or convert a downloaded project with sly.convert.project_to_coco(), project_to_yolo() or project_to_pascal_voc() in the Python SDK. See the export docs.