Convert Supervisely
to KITTI 3D
Exporting a Supervisely project to KITTI 3D gets your labels into the input format of 3D detection code written for KITTI.
Supervisely vs KITTI 3D
KITTI 3D is the format of the KITTI object detection benchmark: LiDAR scans as binary files, camera images, calibration files and a text label file per frame with a 3D box for every object. A Supervisely project holds every shape the platform can draw, so the conversion is about what KITTI 3D can hold.
| Supervisely | KITTI 3D | |
|---|---|---|
| Annotation files | Per dataset: point clouds in pointcloud/, one JSON per point cloud in ann/, camera images with their JSON parameters in related_images/; one meta.json for the project. | Per frame: a velodyne .bin point cloud, a camera image, a calibration file and a .txt label file. |
| Coordinates | 3D figures in the point cloud's own coordinates: a cuboid has a position, a rotation and dimensions. | 3D boxes in camera coordinates: height, width and length in metres, the x, y, z location and rotation_y, plus a 2D box in image pixels. |
| Shapes | 3D cuboids and point cloud segmentation, with photo context from the cameras. | 3D boxes, each with a class, truncation, occlusion and viewing angle. |
| Classes | Classes are defined in meta.json with a name, a shape and a colour. | Every label line starts with the object type: Car, Pedestrian, Cyclist, DontCare and others. |
What the conversion changes
Export to KITTI 3D
- Scenes with labels go to training, scenes without labels to testing.
- Scenes without photo context are skipped.
Convert Supervisely to KITTI 3D in three steps
- 01
Import Supervisely
Upload the project folder or archive to Supervisely and run Import Point Cloud Project from the Ecosystem: it creates a project with the images and labels.
- 02
Review in the labeling toolbox
Open the project in the 3D point cloud labeling toolbox to check classes and fix labels before they go to KITTI 3D.
- 03
Export to KITTI 3D
Open the menu of the project, choose Download via app and run Export to KITTI 3D. 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 SDK has no KITTI 3D writer: it uploads a Supervisely project from your disk, and the export app does the rest.
Install it with pip install supervisely.
import supervisely as sly
# SERVER_ADDRESS and API_TOKEN come from the environment
api = sly.Api.from_env()
project_id, name = sly.PointcloudProject.upload("sly_project", api, workspace_id=123)
# Then run Export to KITTI 3D on this projectFrequently asked questions.
Can I convert Supervisely to KITTI 3D without code?
Yes. Import the data with Import Point Cloud Project, check it in the 3D point cloud labeling toolbox, then export it with Export to KITTI 3D. Both start from the Supervisely web interface.
What changes when Supervisely becomes KITTI 3D?
Scenes with labels go to training, scenes without labels to testing. Scenes without photo context are skipped.
Does KITTI 3D use the same coordinates as Supervisely?
Both use 3D coordinates, written differently. Supervisely: 3D figures in the point cloud's own coordinates: a cuboid has a position, a rotation and dimensions. KITTI 3D: 3D boxes in camera coordinates: height, width and length in metres, the x, y, z location and rotation_y, plus a 2D box in image pixels.
How do Supervisely classes carry over to KITTI 3D?
In Supervisely: classes are defined in meta.json with a name, a shape and a colour. In KITTI 3D: every label line starts with the object type: Car, Pedestrian, Cyclist, DontCare and others. 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 KITTI 3D in Python?
The SDK has no KITTI 3D writer: it uploads a Supervisely project from your disk, and the export app does the rest. See the SDK export tutorial.