--- pretty_name: VisionDrive3D license: mit task_categories: - object-detection - image-segmentation - depth-estimation tags: - synthetic - autonomous-driving - 3d-object-detection - kitti - coco - yolo - opengl size_categories: - 1K 0 0.976250 0.516667 0.047500 0.044444 ``` Class `0` = `car`. **COCO** (`labels/coco/*.json`): one JSON file per scene with `images`, `annotations` (`bbox` as `[x, y, w, h]` in pixels, polygon `segmentation`, `area`) and `categories`. The category list contains `car (0)`, `traffic_light (1)`, `traffic_sign (2)`, `pedestrian (3)` and `entity (99)`, but only `car` is annotated in this release. Note: `images[].file_name` has the `output_dataset/` prefix, e.g. `output_dataset/images/scene_00000.png`. **KITTI** (`labels/kitti/*.txt`): standard KITTI object label format, 15 fields per line: ``` type truncated occluded alpha x1 y1 x2 y2 h w l x y z rotation_y Car 1.00 0 2.15 1524 445 1600 485 1.88 2.16 4.88 37.32 1.66 56.71 1.57 ``` Dimensions and location are in metres in camera coordinates. The camera intrinsics are in `metadata/scene_XXXXX.json` → `camera.intrinsic_matrix`. **Depth** (`depth/*.npy`): `float32` array of shape `(900, 1600)` with per-pixel depth in metres, clipped to the far plane (150 m). **Metadata** (`metadata/scene_XXXXX.json`): `scene_id`, `timestamp`, `image_path`, `camera` (`position`, `target`, `up`, `fov_deg`, `near`, `far`, `intrinsic_matrix`, `extrinsic_matrix`), `objects` (class, world pose, scale, 2D/3D boxes, visibility, occlusion ratio), `render_config`, and `stats`. ## Quick start ```python import json import numpy as np from PIL import Image root = "data/output_dataset" sid = "scene_00000" rgb = np.array(Image.open(f"{root}/images/{sid}.png")) # (900, 1600, 3) uint8 depth = np.load(f"{root}/depth/{sid}.npy") # (900, 1600) float32, metres mask = np.array(Image.open(f"{root}/masks/{sid}.png")) # (900, 1600, 3) uint8 meta = json.load(open(f"{root}/metadata/{sid}.json")) K = np.array(meta["camera"]["intrinsic_matrix"]) # 3×3 with open(f"{root}/labels/yolo/{sid}.txt") as f: boxes = [list(map(float, line.split())) for line in f] train_ids = open(f"{root}/ImageSets/train.txt").read().split() print(rgb.shape, depth.min(), depth.max(), len(boxes), len(train_ids)) ``` **Train YOLO (Ultralytics)**: write a `data.yaml` that points at the split lists: ```python from pathlib import Path root = Path("data/output_dataset").resolve() for split in ["train", "val", "test"]: ids = (root / "ImageSets" / f"{split}.txt").read_text().split() (root / f"{split}_images.txt").write_text( "\n".join(str(root / "images" / f"scene_{i}.png") for i in ids) ) ``` YOLO looks for labels next to the images (`images/` → `labels/`), so copy or symlink `labels/yolo/*.txt` into a sibling `labels/` folder of the image directory, or use the conversion scripts in the GitHub repo. ## Citation ```bibtex @misc{visiondrive3d2026, title = {VisionDrive3D: Synthetic Driving Data for Detection and Segmentation}, author = {BenBunBo}, year = {2026}, howpublished = {\url{https://huggingface.co/datasets/BenBunBo/VisionDrive3D}} } ```