Convert YOLO
to Supervisely
Converting YOLO to Supervisely brings your labels into a format that keeps every shape, tag and class, ready to review, relabel and export to any other format.
YOLO vs Supervisely
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.
| YOLO | Supervisely | |
|---|---|---|
| Annotation files | One TXT file per image in labels/, and a YAML file (data_config.yaml) with the class names and the train and val folders. | One JSON file per image (ann/<image>.json) in each dataset folder, and one meta.json for the project. |
| Coordinates | Normalized to 0–1; a box is x_center, y_center, width, height. | Absolute pixels; a rectangle is stored as its top-left and bottom-right points. |
| Shapes | Boxes for detection, polygons for segmentation, keypoints for pose: one task per label set. | Rectangles, polygons, polylines, points, bitmap masks, keypoint graphs, alpha masks and 2D cuboids. |
| Classes | Each line starts with a zero-based class index; the names are listed in the YAML file. | Classes are defined in meta.json with a name, a shape and a colour; tags can sit on images and on objects. |
What the conversion changes
Between the formats
- Normalized YOLO coordinates are turned back into pixels with the size of each image.
Import YOLO
- Detection lines become rectangles, segmentation lines polygons and pose lines keypoints.
- Without data_config.yaml the default COCO class names are used.
- The images are split into train and val datasets and tagged to match.
Export to Supervisely
- Every imported label keeps its shape, class and tags in Supervisely JSON.
Convert YOLO to Supervisely in three steps
- 01
Import YOLO
Upload your YOLO folder or archive to Supervisely and run Convert YOLO v5 to Supervisely format from the Ecosystem: it creates a project with the images and labels (YOLO import guide).
- 02
Review in the labeling toolbox
Open the project in the image labeling toolbox to check classes and fix labels.
- 03
Export to Supervisely
Open the menu of the project, choose Download via app and run Export to Supervisely format. 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
After the import, the Python SDK downloads the project as Supervisely JSON, the format the Export to Supervisely format app writes.
Install it with pip install supervisely.
import supervisely as sly
# SERVER_ADDRESS and API_TOKEN come from the environment
api = sly.Api.from_env()
# ID of the project Convert YOLO v5 to Supervisely format created
sly.download_fast(api, project_id=12345, dest_dir="sly_project")Frequently asked questions.
Can I convert YOLO to Supervisely without code?
Yes. Import the data with Convert YOLO v5 to Supervisely format, check it in the image labeling toolbox, then export it with Export to Supervisely format. Both start from the Supervisely web interface.
What changes when YOLO becomes Supervisely?
Normalized YOLO coordinates are turned back into pixels with the size of each image. Detection lines become rectangles, segmentation lines polygons and pose lines keypoints. Without data_config.yaml the default COCO class names are used.
Does Supervisely use the same coordinates as YOLO?
No. YOLO uses coordinates divided by the image size, Supervisely absolute pixel coordinates. YOLO: Normalized to 0–1; a box is x_center, y_center, width, height. Supervisely: Absolute pixels; a rectangle is stored as its top-left and bottom-right points. The export does the conversion.
How do YOLO classes carry over to Supervisely?
In YOLO: each line starts with a zero-based class index; the names are listed in the YAML file. In Supervisely: classes are defined in meta.json with a name, a shape and a colour; tags can sit on images and on objects. 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 YOLO to Supervisely in Python?
After the import, the Python SDK downloads the project as Supervisely JSON, the format the Export to Supervisely format app writes. See the SDK export tutorial.