Convert Supervisely
to YOLO
Exporting a Supervisely project to YOLO gets your labels into the format Ultralytics YOLO models train on.
Supervisely vs YOLO
YOLO is the label format of the Ultralytics YOLO models: one text file per image, one line per object, every coordinate divided by the image size, and a YAML file with the class names. A Supervisely project holds every shape the platform can draw, so the conversion is about what YOLO can hold.
| Supervisely | YOLO | |
|---|---|---|
| Annotation files | One JSON file per image (ann/<image>.json) in each dataset folder, and one meta.json for the project. | One TXT file per image in labels/, and a YAML file (data_config.yaml) with the class names and the train and val folders. |
| Coordinates | Absolute pixels; a rectangle is stored as its top-left and bottom-right points. | Normalized to 0–1; a box is x_center, y_center, width, height. |
| Shapes | Rectangles, polygons, polylines, points, bitmap masks, keypoint graphs, alpha masks and 2D cuboids. | Boxes for detection, polygons for segmentation, keypoints for pose: one task per label set. |
| Classes | Classes are defined in meta.json with a name, a shape and a colour; tags can sit on images and on objects. | Each line starts with a zero-based class index; the names are listed in the YAML file. |
What the conversion changes
Export to YOLO
- For detection the project must hold rectangles only: Convert Class Shape turns polygons and masks into boxes first.
- For segmentation, polygons, bitmaps and alpha masks are exported; for pose, keypoint graphs. Other shapes are skipped.
- The train and val image tags decide the split; untagged images go to train.
Convert Supervisely to YOLO in three steps
- 01
Import Supervisely
Upload the project folder or archive to Supervisely and run Import images in Supervisely format from the Ecosystem: it creates a project with the images and labels (Supervisely import guide).
- 02
Review in the labeling toolbox
Open the project in the image labeling toolbox to check classes and fix labels before they go to YOLO.
- 03
Export to YOLO
Open the menu of the project, choose Download via app and run Convert Supervisely to YOLO v5 format for detection or Export to YOLOv8 format for segmentation and pose. The archive appears in Tasks and Team Files.
Apps in the Supervisely Ecosystem
Run this conversion on your own data in a free account, or let us walk your team through it.
Or in a few lines of Python
The Python SDK writes YOLO from a Supervisely project on your disk, with no server involved. A project on the platform is downloaded first with sly.download_fast.
Install it with pip install supervisely.
import supervisely as sly
# A Supervisely project on disk: meta.json and a folder per dataset
# task_type: "detect", "segment" or "pose"
sly.convert.project_to_yolo("sly_project", "yolo", task_type="detect")Frequently asked questions.
Can I convert Supervisely to YOLO without code?
Yes. Import the data with Import images in Supervisely format, check it in the image labeling toolbox, then export it with Convert Supervisely to YOLO v5 format or Export to YOLOv8 format. Both start from the Supervisely web interface.
What changes when Supervisely becomes YOLO?
For detection the project must hold rectangles only: Convert Class Shape turns polygons and masks into boxes first. For segmentation, polygons, bitmaps and alpha masks are exported; for pose, keypoint graphs. Other shapes are skipped. The train and val image tags decide the split; untagged images go to train.
Does YOLO use the same coordinates as Supervisely?
No. Supervisely uses absolute pixel coordinates, YOLO coordinates divided by the image size. Supervisely: Absolute pixels; a rectangle is stored as its top-left and bottom-right points. YOLO: Normalized to 0–1; a box is x_center, y_center, width, height. The export does the conversion.
How do Supervisely classes carry over to YOLO?
In Supervisely: classes are defined in meta.json with a name, a shape and a colour; tags can sit on images and on objects. In YOLO: each line starts with a zero-based class index; the names are listed in the YAML file. The class names stay the same on the way through Supervisely, so rename or merge classes in the project before you export.
Can I convert Supervisely to YOLO in Python?
The Python SDK writes YOLO from a Supervisely project on your disk, with no server involved. A project on the platform is downloaded first with sly.download_fast. See the SDK export tutorial.