Datasets:
Tasks:
Image Segmentation
Formats:
imagefolder
Languages:
English
Size:
10K - 100K
Tags:
image-segmentation
semantic-segmentation
autonomous-driving
scene-understanding
computer-vision
License:
Card: describe the official zip layout on main and the test images
Browse filesSame change as on `dev`; the card text now matches the files on `main`.
57 unmodified lines5859606162636465666768697071727 unmodified lines808182838485868788899091929394959697989910010157 unmodified linesBDD100K's semantic segmentation task provides dense, pixel-level class labels for a 10,000-image subset of the full dataset: **7,000 train + 1,000 validation** images at 1280x720, each with a per-pixel class mask. The task uses a **19-class taxonomy explicitly designed to be compatible with Cityscapes** (verified directly from the official `bdd100k/label/label.py` source), covering flat surfaces, construction, objects, nature, sky, humans, and vehicles. A reserved `255` ("ignore") value marks pixels that are unlabelled or belong to a class excluded from evaluation (e.g. ego-vehicle hood, dynamic/static clutter) — these should be excluded from loss and metric computation, not treated as a 20th real class.**No test split.** BDD100K's official test images for this task (2,000 images) have no released masks (held out for the leaderboard) and are not included here.---# Changes from the Official Release- **No format conversion.** Unlike this project's detection/classification BDD100K repositories, the official release already ships exactly what's needed — JPEG images, single-channel `trainId`-encoded PNG masks, and RGBA color-visualization PNGs — so this repository redistributes them unmodified, just reorganized and sharded for Hugging Face.- **Three files per example, not one.** Each example has an RGB photo, a grayscale class-id mask, and a color visualization mask, linked together via Hugging Face's multi-image `*_file_name` metadata convention (see [Dataset Structure](#dataset-structure)) rather than the single-image `file_name` convention this project's other cards use.- **Sharded for Hub limits.** Because each example contributes 3 files, shards here are capped at 3,000 *examples* (9,001 files) rather than ~8,000, to stay under Hugging Face's practical per-directory file-count ceiling (train: 3 shards, validation: 1 shard). This has no effect on the data itself.- An `id2label.json` was added at the repository root (not part of the official release) mapping all 19 trainId values — plus `255` — to their class names, for convenience. This mirrors the convention used by Hugging Face's own official segmentation sample datasets.- No image or mask pixel content was modified. No examples were added or removed relative to the official release.7 unmodified lines├── bdd100k_segmentation_banner.jpg├── id2label.json└── data/└── images/├── train/│ └── shard_000 … shard_002/ (3 files/example + metadata.jsonl)└── valid/└── shard_000/ (3 files/example + metadata.jsonl)```Each shard directory contains, for every example: `<id>.jpg` (the photo), `<id>_train_id.png` (the grayscale class mask), `<id>_train_color.png` (an RGBA color visualization of the same mask), and one `metadata.jsonl` with one line per example:```json{"file_name": "<id>.jpg", "mask_file_name": "<id>_train_id.png", "color_mask_file_name": "<id>_train_color.png"}```Hugging Face's `imagefolder` loader auto-detects any metadata key ending in `_file_name` as an image reference, resolved relative to the `metadata.jsonl` it's listed in. This yields **three** image columns when loaded with `datasets`: `image` (the photo, from the bare `file_name` key), `mask` (the class-id PNG), and `color_mask` (the RGBA visualization) — verified directly against the `datasets` library's own loader source, not assumed.Splits: **train** 7,000 images · **validation** 1,000 images (8,000 total — matches BDD100K's official semantic segmentation subset counts exactly).### Classes (19 + ignore)57 unmodified lines5859606162636465666768697071727 unmodified lines808182838485868788899091929394959697989910010157 unmodified linesBDD100K's semantic segmentation task provides dense, pixel-level class labels for a 10,000-image subset of the full dataset: **7,000 train + 1,000 validation** images at 1280x720, each with a per-pixel class mask. The task uses a **19-class taxonomy explicitly designed to be compatible with Cityscapes** (verified directly from the official `bdd100k/label/label.py` source), covering flat surfaces, construction, objects, nature, sky, humans, and vehicles. A reserved `255` ("ignore") value marks pixels that are unlabelled or belong to a class excluded from evaluation (e.g. ego-vehicle hood, dynamic/static clutter) — these should be excluded from loss and metric computation, not treated as a 20th real class.**Test images without masks.** BDD100K's 2,000 official test images for this task have no released masks (held out for the leaderboard). The images are included, as in the official zip, but only `train` and `val` can be used for training and evaluation.---# Changes from the Official Release- **No format conversion.** Unlike this project's classification repositories, the official release already ships exactly what's needed — JPEG images, single-channel `trainId`-encoded PNG masks, and RGBA color-visualization PNGs — so this repository redistributes them unmodified, just reorganized and sharded for Hugging Face.- **Same folders as the official zips.** Images keep the `bdd100k_images_10k.zip` layout (`images_10k/10k/<split>/`) and masks the `bdd100k_seg_maps.zip` layout (`seg_maps/{labels,color_labels}/<split>/`), with the official file names. Images and masks are linked by file name, with no `metadata.jsonl`.- **Sharded for Hub limits.** Each split folder holds one `shard_000/` subdirectory (every split is under 8,000 files), the same convention as this project's other BDD100K repositories. This has no effect on the data itself.- An `id2label.json` was added at the repository root (not part of the official release) mapping all 19 trainId values — plus `255` — to their class names, for convenience. This mirrors the convention used by Hugging Face's own official segmentation sample datasets.- No image or mask pixel content was modified. No examples were added or removed relative to the official release.7 unmodified lines├── bdd100k_segmentation_banner.jpg├── id2label.json└── data/├── images_10k/10k/│ ├── train/ shard_000/ (7,000 JPEGs)│ ├── val/ shard_000/ (1,000 JPEGs)│ └── test/ shard_000/ (2,000 JPEGs, no masks)└── seg_maps/├── labels/│ ├── train/ shard_000/ (<id>_train_id.png)│ └── val/ shard_000/└── color_labels/├── train/ shard_000/ (<id>_train_color.png)└── val/ shard_000/```Each image `<id>.jpg` in `images_10k/10k/<split>/` has its grayscale class mask `<id>_train_id.png` in `seg_maps/labels/<split>/` and an RGBA color visualization of the same mask, `<id>_train_color.png`, in `seg_maps/color_labels/<split>/`: the official BDD100K naming, unmodified. [`bdd100k-toolkit`](https://github.com/dronefreak/bdd100k-toolkit) reads this layout directly (`bdd100k-prepare --dataset bdd100k-semantic-seg`).Splits: **train** 7,000 images · **validation** 1,000 images with masks (8,000 total, matching BDD100K's official semantic segmentation subset), plus **test** 2,000 images without masks.### Classes (19 + ignore)
README.md+17-17