Datasets:
Tasks:
Image Segmentation
Formats:
imagefolder
Languages:
English
Size:
10K - 100K
Tags:
image-segmentation
semantic-segmentation
autonomous-driving
scene-understanding
computer-vision
License:
Commit ·
c74104f
1
Parent(s): 356d525
Turn on the dataset viewer: metadata.jsonl linking images and masks, configs in the card (#3)
Browse files- Turn on the dataset viewer: metadata.jsonl linking images and masks, configs in the card (554655d1bccb80d14c41da4a35666d20c83758d4)
Files changed (4)
19 unmodified lines20212223242537 unmodified lines636465666768699 unmodified lines7980818283848586873 unmodified lines9192939495969719 unmodified linessize_categories:- 10K<n<100K---<h1 align="center">BDD100K: Semantic Segmentation Dataset</h1>37 unmodified lines# 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.9 unmodified lines├── 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)3 unmodified lines└── 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.19 unmodified lines2021222324252627282930313233343536373839404142434445464737 unmodified lines85868788899091929 unmodified lines1021031041051061071081091103 unmodified lines11411511611711811912019 unmodified linessize_categories:- 10K<n<100Kconfigs:- config_name: defaultdata_files:- split: trainpath:- data/images_10k/10k/train/shard_*/*.jpg- data/images_10k/10k/train/shard_*/metadata.jsonl- data/seg_maps/labels/train/shard_*/*.png- data/seg_maps/color_labels/train/shard_*/*.png- split: validationpath:- data/images_10k/10k/val/shard_*/*.jpg- data/images_10k/10k/val/shard_*/metadata.jsonl- data/seg_maps/labels/val/shard_*/*.png- data/seg_maps/color_labels/val/shard_*/*.png- config_name: test_imagesdata_files:- split: testpath:- data/images_10k/10k/test/shard_*/*.jpg- data/images_10k/10k/test/shard_*/metadata.jsonl---<h1 align="center">BDD100K: Semantic Segmentation Dataset</h1>37 unmodified lines# 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.- **Viewer table added.** One `metadata.jsonl` per image shard links each image to its two masks (`mask_file_name`, `color_mask_file_name`) and lists the classes present (`classes`), so the dataset viewer (with search) and `datasets.load_dataset` work. The 2,000 test images, which have no masks, are a separate `test_images` config.- **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.9 unmodified lines├── id2label.json└── data/├── images_10k/10k/│ ├── train/ shard_000/ (7,000 JPEGs + metadata.jsonl)│ ├── val/ shard_000/ (1,000 JPEGs + metadata.jsonl)│ └── test/ shard_000/ (2,000 JPEGs + metadata.jsonl, no masks)└── seg_maps/├── labels/│ ├── train/ shard_000/ (<id>_train_id.png)3 unmodified lines└── 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`) and ignores the `metadata.jsonl` files, which only serve the viewer and `load_dataset` (columns `image`, `mask`, `color_mask`, `classes`, `id`).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.
README.md+28-5
data/images_10k/10k/test/shard_000/metadata.jsonlAdded
data/images_10k/10k/train/shard_000/metadata.jsonlAdded
data/images_10k/10k/val/shard_000/metadata.jsonlAdded