Dataset Viewer
Auto-converted to Parquet Duplicate
file_name
stringlengths
21
21
mask_file_name
stringlengths
30
30
color_mask_file_name
stringlengths
33
33
0004a4c0-d4dff0ad.jpg
0004a4c0-d4dff0ad_train_id.png
0004a4c0-d4dff0ad_train_color.png
00054602-3bf57337.jpg
00054602-3bf57337_train_id.png
00054602-3bf57337_train_color.png
00067cfb-e535423e.jpg
00067cfb-e535423e_train_id.png
00067cfb-e535423e_train_color.png
00091078-59817bb0.jpg
00091078-59817bb0_train_id.png
00091078-59817bb0_train_color.png
0010bf16-a457685b.jpg
0010bf16-a457685b_train_id.png
0010bf16-a457685b_train_color.png
001b428f-059bac33.jpg
001b428f-059bac33_train_id.png
001b428f-059bac33_train_color.png
001c2a14-c7138401.jpg
001c2a14-c7138401_train_id.png
001c2a14-c7138401_train_color.png
0024b742-acbefa1a.jpg
0024b742-acbefa1a_train_id.png
0024b742-acbefa1a_train_color.png
0027eed2-09c90000.jpg
0027eed2-09c90000_train_id.png
0027eed2-09c90000_train_color.png
0027eed2-09c90001.jpg
0027eed2-09c90001_train_id.png
0027eed2-09c90001_train_color.png
0027eed2-60fb0001.jpg
0027eed2-60fb0001_train_id.png
0027eed2-60fb0001_train_color.png
0027eed2-815a0000.jpg
0027eed2-815a0000_train_id.png
0027eed2-815a0000_train_color.png
0027eed2-815a0001.jpg
0027eed2-815a0001_train_id.png
0027eed2-815a0001_train_color.png
0027eed2-a6630000.jpg
0027eed2-a6630000_train_id.png
0027eed2-a6630000_train_color.png
0027eed2-a6630001.jpg
0027eed2-a6630001_train_id.png
0027eed2-a6630001_train_color.png
002a3213-ab7f6730.jpg
002a3213-ab7f6730_train_id.png
002a3213-ab7f6730_train_color.png
002bf392-acddbad2.jpg
002bf392-acddbad2_train_id.png
002bf392-acddbad2_train_color.png
002d467e-00000000.jpg
002d467e-00000000_train_id.png
002d467e-00000000_train_color.png
003571f2-f2848ebd.jpg
003571f2-f2848ebd_train_id.png
003571f2-f2848ebd_train_color.png
003ddde7-36ee8299.jpg
003ddde7-36ee8299_train_id.png
003ddde7-36ee8299_train_color.png
004071a4-049be89b.jpg
004071a4-049be89b_train_id.png
004071a4-049be89b_train_color.png
00495359-1d04dd8a.jpg
00495359-1d04dd8a_train_id.png
00495359-1d04dd8a_train_color.png
004af474-00000000.jpg
004af474-00000000_train_id.png
004af474-00000000_train_color.png
004fd763-ad4c2b9c.jpg
004fd763-ad4c2b9c_train_id.png
004fd763-ad4c2b9c_train_color.png
005bb196-00000000.jpg
005bb196-00000000_train_id.png
005bb196-00000000_train_color.png
005c4fd3-cb4d49cf.jpg
005c4fd3-cb4d49cf_train_id.png
005c4fd3-cb4d49cf_train_color.png
0066b72f-974f6883.jpg
0066b72f-974f6883_train_id.png
0066b72f-974f6883_train_color.png
006a7635-c42f9f97.jpg
006a7635-c42f9f97_train_id.png
006a7635-c42f9f97_train_color.png
0096bcca-c2027ec4.jpg
0096bcca-c2027ec4_train_id.png
0096bcca-c2027ec4_train_color.png
00a360bd-27ccb1dd.jpg
00a360bd-27ccb1dd_train_id.png
00a360bd-27ccb1dd_train_color.png
00a395fe-d60c0b47.jpg
00a395fe-d60c0b47_train_id.png
00a395fe-d60c0b47_train_color.png
00a7ef03-00000000.jpg
00a7ef03-00000000_train_id.png
00a7ef03-00000000_train_color.png
00a9cd6b-b39be004.jpg
00a9cd6b-b39be004_train_id.png
00a9cd6b-b39be004_train_color.png
00aad4a0-ee8135fe.jpg
00aad4a0-ee8135fe_train_id.png
00aad4a0-ee8135fe_train_color.png
00ad8a92-c4851839.jpg
00ad8a92-c4851839_train_id.png
00ad8a92-c4851839_train_color.png
00bc0319-94afabc2.jpg
00bc0319-94afabc2_train_id.png
00bc0319-94afabc2_train_color.png
00cc68dd-3d50a55f.jpg
00cc68dd-3d50a55f_train_id.png
00cc68dd-3d50a55f_train_color.png
00d1c9e3-a7a7075f.jpg
00d1c9e3-a7a7075f_train_id.png
00d1c9e3-a7a7075f_train_color.png
00d79c0a-23bea078.jpg
00d79c0a-23bea078_train_id.png
00d79c0a-23bea078_train_color.png
00d79c0a-23befe54.jpg
00d79c0a-23befe54_train_id.png
00d79c0a-23befe54_train_color.png
00d8944b-e157478b.jpg
00d8944b-e157478b_train_id.png
00d8944b-e157478b_train_color.png
00de5508-00000000.jpg
00de5508-00000000_train_id.png
00de5508-00000000_train_color.png
00de601c-858a8a8d.jpg
00de601c-858a8a8d_train_id.png
00de601c-858a8a8d_train_color.png
00e69ee0-9656df95.jpg
00e69ee0-9656df95_train_id.png
00e69ee0-9656df95_train_color.png
00e76cc5-a03dbf48.jpg
00e76cc5-a03dbf48_train_id.png
00e76cc5-a03dbf48_train_color.png
00e9be89-00000015.jpg
00e9be89-00000015_train_id.png
00e9be89-00000015_train_color.png
00e9be89-00000100.jpg
00e9be89-00000100_train_id.png
00e9be89-00000100_train_color.png
00e9be89-00000105.jpg
00e9be89-00000105_train_id.png
00e9be89-00000105_train_color.png
00e9be89-00000110.jpg
00e9be89-00000110_train_id.png
00e9be89-00000110_train_color.png
00e9be89-00000115.jpg
00e9be89-00000115_train_id.png
00e9be89-00000115_train_color.png
00e9be89-00000120.jpg
00e9be89-00000120_train_id.png
00e9be89-00000120_train_color.png
00e9be89-00000125.jpg
00e9be89-00000125_train_id.png
00e9be89-00000125_train_color.png
00e9be89-00000130.jpg
00e9be89-00000130_train_id.png
00e9be89-00000130_train_color.png
00e9be89-00000135.jpg
00e9be89-00000135_train_id.png
00e9be89-00000135_train_color.png
00e9be89-00000140.jpg
00e9be89-00000140_train_id.png
00e9be89-00000140_train_color.png
00e9be89-00000145.jpg
00e9be89-00000145_train_id.png
00e9be89-00000145_train_color.png
00e9be89-00000150.jpg
00e9be89-00000150_train_id.png
00e9be89-00000150_train_color.png
00e9be89-00000160.jpg
00e9be89-00000160_train_id.png
00e9be89-00000160_train_color.png
00e9be89-00000165.jpg
00e9be89-00000165_train_id.png
00e9be89-00000165_train_color.png
00e9be89-00000175.jpg
00e9be89-00000175_train_id.png
00e9be89-00000175_train_color.png
00e9be89-00000190.jpg
00e9be89-00000190_train_id.png
00e9be89-00000190_train_color.png
00e9be89-00001000.jpg
00e9be89-00001000_train_id.png
00e9be89-00001000_train_color.png
00e9be89-00001005.jpg
00e9be89-00001005_train_id.png
00e9be89-00001005_train_color.png
00e9be89-00001010.jpg
00e9be89-00001010_train_id.png
00e9be89-00001010_train_color.png
00e9be89-00001015.jpg
00e9be89-00001015_train_id.png
00e9be89-00001015_train_color.png
00e9be89-00001020.jpg
00e9be89-00001020_train_id.png
00e9be89-00001020_train_color.png
00e9be89-00001025.jpg
00e9be89-00001025_train_id.png
00e9be89-00001025_train_color.png
00e9be89-00001030.jpg
00e9be89-00001030_train_id.png
00e9be89-00001030_train_color.png
00e9be89-00001035.jpg
00e9be89-00001035_train_id.png
00e9be89-00001035_train_color.png
00e9be89-00001040.jpg
00e9be89-00001040_train_id.png
00e9be89-00001040_train_color.png
00e9be89-00001045.jpg
00e9be89-00001045_train_id.png
00e9be89-00001045_train_color.png
00e9be89-00001050.jpg
00e9be89-00001050_train_id.png
00e9be89-00001050_train_color.png
00e9be89-00001055.jpg
00e9be89-00001055_train_id.png
00e9be89-00001055_train_color.png
00e9be89-00001060.jpg
00e9be89-00001060_train_id.png
00e9be89-00001060_train_color.png
00e9be89-00001065.jpg
00e9be89-00001065_train_id.png
00e9be89-00001065_train_color.png
00e9be89-00001070.jpg
00e9be89-00001070_train_id.png
00e9be89-00001070_train_color.png
00e9be89-00001075.jpg
00e9be89-00001075_train_id.png
00e9be89-00001075_train_color.png
00e9be89-00001080.jpg
00e9be89-00001080_train_id.png
00e9be89-00001080_train_color.png
00e9be89-00001090.jpg
00e9be89-00001090_train_id.png
00e9be89-00001090_train_color.png
00e9be89-00001095.jpg
00e9be89-00001095_train_id.png
00e9be89-00001095_train_color.png
00e9be89-00001100.jpg
00e9be89-00001100_train_id.png
00e9be89-00001100_train_color.png
00e9be89-00001105.jpg
00e9be89-00001105_train_id.png
00e9be89-00001105_train_color.png
00e9be89-00001115.jpg
00e9be89-00001115_train_id.png
00e9be89-00001115_train_color.png
00e9be89-00001125.jpg
00e9be89-00001125_train_id.png
00e9be89-00001125_train_color.png
00e9be89-00001130.jpg
00e9be89-00001130_train_id.png
00e9be89-00001130_train_color.png
00e9be89-00001135.jpg
00e9be89-00001135_train_id.png
00e9be89-00001135_train_color.png
00e9be89-00001140.jpg
00e9be89-00001140_train_id.png
00e9be89-00001140_train_color.png
00e9be89-00001150.jpg
00e9be89-00001150_train_id.png
00e9be89-00001150_train_color.png
00e9be89-00001155.jpg
00e9be89-00001155_train_id.png
00e9be89-00001155_train_color.png
00e9be89-00001160.jpg
00e9be89-00001160_train_id.png
00e9be89-00001160_train_color.png
00e9be89-00001165.jpg
00e9be89-00001165_train_id.png
00e9be89-00001165_train_color.png
00e9be89-00001170.jpg
00e9be89-00001170_train_id.png
00e9be89-00001170_train_color.png
00e9be89-00001175.jpg
00e9be89-00001175_train_id.png
00e9be89-00001175_train_color.png
00e9be89-00001180.jpg
00e9be89-00001180_train_id.png
00e9be89-00001180_train_color.png
00e9be89-00001185.jpg
00e9be89-00001185_train_id.png
00e9be89-00001185_train_color.png
00e9be89-00001190.jpg
00e9be89-00001190_train_id.png
00e9be89-00001190_train_color.png
00e9be89-00001195.jpg
00e9be89-00001195_train_id.png
00e9be89-00001195_train_color.png
00e9be89-00001200.jpg
00e9be89-00001200_train_id.png
00e9be89-00001200_train_color.png
00e9be89-00001205.jpg
00e9be89-00001205_train_id.png
00e9be89-00001205_train_color.png
00e9be89-00001210.jpg
00e9be89-00001210_train_id.png
00e9be89-00001210_train_color.png
End of preview. Expand in Data Studio

BDD100K: Semantic Segmentation Dataset

BDD100K Semantic Segmentation Dataset Banner

Task Dataset Classes Splits License

Unofficial redistribution of BDD100K's semantic segmentation task (10K-image subset), under BDD100K's own data license (non-commercial/educational/research redistribution, with notice, explicitly permitted).

Disclaimer

This repository is not an official release of BDD100K.

BDD100K was created by Fisher Yu, Haofeng Chen, Xin Wang, Wenqi Xian, Yingying Chen, Fangchen Liu, Vashisht Madhavan, and Trevor Darrell at UC Berkeley (BAIR), who retain all copyright. This repository does not claim ownership of any images, annotations, or metadata.

This redistribution is sourced directly from BDD100K's official download (registration required at https://bdd-data.berkeley.edu/), not from any third-party mirror. Unlike this project's other BDD100K repositories, this one is not a re-sort of the 100K detection image set β€” semantic segmentation is a genuinely separate, smaller 10K-image subset with its own dedicated pixel-level annotations (pixel labeling is far more expensive than boxes or image-level tags, so only a sample of the full 100K images was ever annotated for this task).

Companion repositories cover BDD100K's other tasks: object detection, and the per-image attribute classification tasks β€” weather, scenario, and period/time-of-day.


Dataset Overview

BDD100K'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) 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.

Dataset Structure

<repo>/
β”œβ”€β”€ README.md
β”œβ”€β”€ 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:

{"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)

Pixel share and per-image presence, computed directly from all 8,000 masks in this repository:

id class train pixel share train presence val pixel share val presence
0 road 21.49% 6,877/7,000 21.60% 992/1,000
1 sidewalk 2.03% 4,667/7,000 2.05% 732/1,000
2 building 13.26% 6,189/7,000 14.89% 893/1,000
3 wall 0.48% 1,077/7,000 0.36% 119/1,000
4 fence 1.03% 2,141/7,000 0.81% 241/1,000
5 pole 0.92% 6,648/7,000 0.97% 961/1,000
6 traffic light 0.18% 3,293/7,000 0.14% 528/1,000
7 traffic sign 0.34% 5,270/7,000 0.23% 776/1,000
8 vegetation 13.21% 6,422/7,000 15.42% 958/1,000
9 terrain 1.03% 2,563/7,000 0.91% 384/1,000
10 sky 17.30% 6,635/7,000 17.91% 977/1,000
11 person 0.25% 2,429/7,000 0.27% 379/1,000
12 rider 0.02% 361/7,000 0.01% 39/1,000
13 car 8.11% 6,811/7,000 9.07% 971/1,000
14 truck 0.97% 2,137/7,000 1.01% 331/1,000
15 bus 0.56% 1,051/7,000 0.63% 136/1,000
16 train 0.01% 47/7,000 0.01% 7/1,000
17 motorcycle 0.02% 266/7,000 0.02% 42/1,000
18 bicycle 0.05% 447/7,000 0.02% 45/1,000
255 unlabeled/ignore 18.72% 7,000/7,000 13.67% 1,000/1,000

road, sky, building, and vegetation together cover roughly two-thirds of labelled pixels; rider, train, and motorcycle are extremely rare both by pixel area and by image presence (train appears in only 47 of 7,000 training images). The 255 ignore value covers a substantial 14-19% of pixels β€” exclude it from loss/metric computation, it is not a 20th real class.


Dataset Sources

Original Paper

BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learning

Fisher Yu, Haofeng Chen, Xin Wang, Wenqi Xian, Yingying Chen, Fangchen Liu, Vashisht Madhavan, Trevor Darrell

Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020, pages 2633-2642. DOI: 10.1109/CVPR42600.2020.00271

Official Resources


Attribution

All credit for collecting and annotating this dataset belongs entirely to the original BDD100K authors: Fisher Yu, Haofeng Chen, Xin Wang, Wenqi Xian, Yingying Chen, Fangchen Liu, Vashisht Madhavan, and Trevor Darrell, and UC Berkeley / BAIR.

This repository only reorganizes and shards the official files for Hugging Face compatibility; it does not modify, reinterpret, or take credit for the underlying imagery or annotations.

If you use this dataset in your research, please cite the original publication below.


License

BDD100K's code repository is BSD-3-Clause, but that license applies only to the code, not the data. The data and labels (downloaded from https://bdd-data.berkeley.edu/) carry their own license, reproduced here in full as required by its own terms:

Copyright Β©2018. The Regents of the University of California (Regents). All Rights Reserved.

THIS SOFTWARE AND/OR DATA WAS DEPOSITED IN THE BAIR OPEN RESEARCH COMMONS REPOSITORY ON 1/1/2021

Permission to use, copy, modify, and distribute this software and its documentation for educational, research, and not-for-profit purposes, without fee and without a signed licensing agreement; and permission to use, copy, modify and distribute this software for commercial purposes (such rights not subject to transfer) to BDD and BAIR Commons members and their affiliates, is hereby granted, provided that the above copyright notice, this paragraph and the following two paragraphs appear in all copies, modifications, and distributions. Contact The Office of Technology Licensing, UC Berkeley, 2150 Shattuck Avenue, Suite 510, Berkeley, CA 94720-1620, (510) 643-7201, otl@berkeley.edu, http://ipira.berkeley.edu/industry-info for commercial licensing opportunities.

IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF REGENTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

Source: https://github.com/bdd100k/bdd100k/blob/master/doc/source/license.rst

Accordingly:

  • Redistribution for educational, research, and not-for-profit purposes is explicitly permitted, without fee, provided this notice is carried forward β€” which is what this repository does.
  • Commercial use and distribution is restricted to BDD and BAIR Commons members and their affiliates. Contact UC Berkeley's Office of Technology Licensing (contact details above) for commercial licensing.
  • This repository, and any further redistribution of it, must carry this same notice.

Citation

If you use this dataset, please cite:

@inproceedings{yu2020bdd100k,
  title={BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learning},
  author={Yu, Fisher and Chen, Haofeng and Wang, Xin and Xian, Wenqi and Chen, Yingying and Liu, Fangchen and Madhavan, Vashisht and Darrell, Trevor},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={2633--2642},
  year={2020}
}

Acknowledgements

We sincerely thank Fisher Yu, Haofeng Chen, Xin Wang, Wenqi Xian, Yingying Chen, Fangchen Liu, Vashisht Madhavan, and Trevor Darrell, and UC Berkeley / BAIR, for creating and publicly releasing this valuable driving-scene benchmark.

Downloads last month
2,286