Datasets:
Tasks:
Image Segmentation
Formats:
imagefolder
Languages:
English
Size:
10K - 100K
Tags:
image-segmentation
semantic-segmentation
autonomous-driving
scene-understanding
computer-vision
License:
Fix the dataset viewer: one metadata file per split in data/, paths without '..'
#4
by dronefreak - opened
Files changed (7)
22 unmodified lines2324252627282930313233343536373839404142434445464738 unmodified lines868788899091928 unmodified lines1011021031041051061071081091103 unmodified lines11411511611711811912022 unmodified linesconfigs:- 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>38 unmodified lines- **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.8 unmodified lines├── bdd100k_segmentation_banner.jpg├── 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.22 unmodified lines23242526272829303132333435363738394041424344454647484950515238 unmodified lines919293949596978 unmodified lines1061071081091101111121131141151163 unmodified lines12012112212312412512622 unmodified linesconfigs:- config_name: defaultmetadata_filenames:- metadata_train.jsonl- metadata_validation.jsonldata_files:- split: trainpath:- data/metadata_train.jsonl- data/images_10k/10k/train/shard_*/*.jpg- data/seg_maps/labels/train/shard_*/*.png- data/seg_maps/color_labels/train/shard_*/*.png- split: validationpath:- data/metadata_validation.jsonl- data/images_10k/10k/val/shard_*/*.jpg- data/seg_maps/labels/val/shard_*/*.png- data/seg_maps/color_labels/val/shard_*/*.png- config_name: test_imagesmetadata_filenames:- metadata_test.jsonldata_files:- split: testpath:- data/metadata_test.jsonl- data/images_10k/10k/test/shard_*/*.jpg---<h1 align="center">BDD100K: Semantic Segmentation Dataset</h1>38 unmodified lines- **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 `data/metadata_<split>.jsonl` file per split 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.8 unmodified lines├── bdd100k_segmentation_banner.jpg├── id2label.json└── data/├── metadata_{train,validation,test}.jsonl (viewer table, one row per image)├── 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`) 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+14-8
data/images_10k/10k/test/shard_000/metadata.jsonlDeleted
data/images_10k/10k/train/shard_000/metadata.jsonlDeleted
data/images_10k/10k/val/shard_000/metadata.jsonlDeleted
data/metadata_test.jsonlAdded
data/metadata_train.jsonlAdded
data/metadata_validation.jsonlAdded