Datasets:
Tasks:
Object Detection
Formats:
imagefolder
Languages:
English
Size:
100K - 1M
Tags:
object-detection
autonomous-driving
self-driving-cars
advanced-driver-assistance-systems
computer-vision
License:
Card: describe the raw Berkeley files on main (source, per-image labels, layout, counts)
#2
by dronefreak - opened
5 unmodified lines67891011124 unmodified lines17181920212223241 unmodified line262728293031321 unmodified line3435363738394041424344457 unmodified lines5354555657585960616263646566676869707172737475767778794 unmodified lines848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221235 unmodified lineslicense_name: bdd100k-data-licenselicense_link: https://github.com/bdd100k/bdd100k/blob/master/doc/source/license.rstpretty_name: BDD100K 2018 Object Detection Datasettask_categories:- object-detection4 unmodified lines- self-driving-cars- advanced-driver-assistance-systems- computer-vision- ultralytics- yolosize_categories:- 100K<n<1M1 unmodified lineviewer: false---<h1 align="center">BDD100K 2018: Object Detection Dataset</h1><p align="center"><img src="bdd100k_banner.jpg" alt="BDD100K Object Detection Dataset Banner"/>1 unmodified line> **Unofficial redistribution of BDD100K's 10-class object-detection task, reformatted into a standardized YOLO-compatible layout, under BDD100K's own data license (non-commercial/educational/research redistribution, with notice, explicitly permitted).**## Dataset Description7 unmodified linesBDD100K 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.**Two-hop provenance.** This redistribution's raw files came from the Kaggle mirror [`solesensei/solesensei_bdd100k`](https://www.kaggle.com/datasets/solesensei/solesensei_bdd100k) (uploaded by Kaggle user SoleSensei, not by Berkeley DeepDrive). That mirror declares no license of its own for the data (Kaggle lists it as "Other (specified in description)"), so it changes nothing about the terms that actually govern this data — see [License](#license) below for the real, verified terms and why they permit this mirror.Companion repositories cover BDD100K's per-image scene attributes as separate image-classification tasks: [weather](https://huggingface.co/datasets/dronefreak/BDD100K-Weather-Classification), [scenario](https://huggingface.co/datasets/dronefreak/BDD100K-Scenario-Classification), and [period/time-of-day](https://huggingface.co/datasets/dronefreak/BDD100K-Period-Classification).**Label vintage: 2018, not the CVPR 2020 paper year.** The BDD100K paper was published at CVPR 2020, but the detection labels redistributed here are BDD100K's original 2018 annotation release (matching the copyright year on the data license itself, reproduced in full under [License](#license)) — carried through the Kaggle two-hop mirror described above. We looked for a separate, later-dated ("2020") label release to confirm whether the annotations had been revised since 2018, and could not locate or verify one; if BDD100K ever shipped a distinct 2020 label set, it is not what this repository contains. Treat the labels here as the 2018 vintage, independent of the paper's 2020 publication date.---# Dataset OverviewBDD100K is a large-scale, diverse driving dataset spanning 10 tasks; this repository covers its **100K-image object-detection task** specifically: 79,863 labelled 1280x720 dashcam images (69,863 officially labelled train + 10,000 officially labelled val; the official held-out test split of 20,000 images has no released labels at all and is not used here) annotated across 10 classes spanning vulnerable road users (`person`, `rider`), vehicles (`car`, `truck`, `bus`, `train`, `motor`, `bike`), and traffic control (`traffic light`, `traffic sign`), captured across diverse weather, time-of-day, and scene conditions in the US.---# Changes from the Official Release- **Official `val` kept as `test`.** BDD100K's official labels are only released for `train` (69,863 images) and `val` (10,000 images) — the real test split is unlabelled. This repository uses the official `val` split, unchanged, as the canonical `test` split here (consistent with it only being usable as a held-out eval set, not for further training).- **A validation split was carved out of train.** Since there is no official train/validation split, this repository holds out a **seeded random 15%** of the official train images (seed 42) as `valid`, leaving 59,384 for `train`. This is a random image-level split; BDD100K images are single dashcam frames (not continuous video sequences within this release), so unlike some driving datasets this does not risk near-duplicate consecutive frames crossing the split boundary.- **Format converted.** The official ground truth is a per-split JSON with one dict per image mixing `box2d` detection boxes with `poly2d` lane-marking/drivable-area annotations (a different task). Only `box2d` entries are converted here; `poly2d` entries are dropped. Boxes are exported both as YOLO-normalized `.txt` labels and as absolute-pixel COCO `[x, y, w, h]` boxes in a `metadata.jsonl` per image shard.- **Sharded for Hub limits.** Images are split into `shard_NNN/` subdirectories of ≤8,000 files to stay under Hugging Face's practical per-directory file-count ceiling (train: 8 shards, valid: 2, test: 2). This has no effect on the data itself.- No image pixel content was modified. No boxes were resized, moved, or reinterpreted.---4 unmodified lines├── README.md├── bdd100k_banner.jpg└── data/├── data.yaml├── images/│ ├── train/ shard_000 … shard_007/ (*.jpg + metadata.jsonl, ~8,000 per shard)│ ├── valid/ shard_000 … shard_001/│ └── test/ shard_000 … shard_001/└── labels/├── train/ shard_000 … shard_007/ (*.txt, mirrors images)├── valid/ shard_000 … shard_001/└── test/ shard_000 … shard_001/```where:* `data/images/<split>/shard_NNN/` contains the 1280x720 RGB dashcam images, plus a `metadata.jsonl` (`file_name` and `objects.bbox` as absolute-pixel COCO `[x, y, w, h]` with `objects.categories`) that drives the Hugging Face dataset viewer.* `data/labels/<split>/shard_NNN/` contains one YOLO-format `.txt` annotation file per image (`class x_center y_center width height`, normalized), mirroring the image shard layout.* `data/data.yaml` is the Ultralytics dataset configuration file (class names, split paths, relative to `data/`). Ultralytics resolves the shards automatically.* Splits: **train** 59,384 images / 1,091,589 boxes · **valid** 10,479 images / 195,282 boxes · **test** 10,000 images / 185,526 boxes (79,863 images / 1,472,397 boxes total — matches BDD100K's official labelled-image counts exactly).### Classes (10)| id | class name | instances (all splits) | share ||----|-------------------|------------------------:|------:|| 0 | `person` | 104,611 | 7.1% || 1 | `rider` | 5,166 | 0.4% || 2 | `car` | 815,717 | 55.4% || 3 | `truck` | 34,216 | 2.3% || 4 | `bus` | 13,269 | 0.9% || 5 | `train` | 151 | 0.0% || 6 | `motor` | 3,454 | 0.2% || 7 | `bike` | 8,217 | 0.6% || 8 | `traffic light` | 213,002 | 14.5% || 9 | `traffic sign` | 274,594 | 18.6% |`car` dominates at over half of all boxes; `train` is vanishingly rare (151 instances total). See [`docs/datasets/bdd100k`](https://github.com/dronefreak/DetectionBench/tree/main/docs/datasets/bdd100k) in the DetectionBench repository for box-geometry statistics.---5 unmodified lines67891011124 unmodified lines1718192021221 unmodified line242526272829301 unmodified line3233343536373839404142437 unmodified lines515253545556575859606162636465666768697071727374754 unmodified lines80818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191205 unmodified lineslicense_name: bdd100k-data-licenselicense_link: https://github.com/bdd100k/bdd100k/blob/master/doc/source/license.rstpretty_name: BDD100K Object Detection Datasettask_categories:- object-detection4 unmodified lines- self-driving-cars- advanced-driver-assistance-systems- computer-visionsize_categories:- 100K<n<1M1 unmodified lineviewer: false---<h1 align="center">BDD100K: Object Detection Dataset</h1><p align="center"><img src="bdd100k_banner.jpg" alt="BDD100K Object Detection Dataset Banner"/>1 unmodified line> **Unofficial redistribution of BDD100K's 100K images and per-image labels, exactly as Berkeley ships them, under BDD100K's own data license (non-commercial/educational/research redistribution, with notice, explicitly permitted).**## Dataset Description7 unmodified linesBDD100K 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.**Provenance.** The files are the original BDD100K zips, `bdd100k_images_100k.zip` and `bdd100k_labels.zip`, downloaded from Berkeley's file server, http://128.32.162.150/bdd100k/ (the official download portal, https://bdd-data.berkeley.edu/, is no longer reachable). Every image and label file is byte-identical to the one in the zip; only the folders are sharded (see below).Companion repositories cover BDD100K's per-image scene attributes as separate image-classification tasks: [weather](https://huggingface.co/datasets/dronefreak/BDD100K-Weather-Classification), [scenario](https://huggingface.co/datasets/dronefreak/BDD100K-Scenario-Classification), and [period/time-of-day](https://huggingface.co/datasets/dronefreak/BDD100K-Period-Classification).**Label release.** The labels are the per-image JSON files from `bdd100k_labels.zip`, one file per image, not the older 2018 single-file release (`bdd100k_labels_images_{train,val}.json`). The two agree on `val` (the same 10,000 images and the same box counts per class), but the per-image release also covers the 137 train images the 2018 file misses and the 20,000 `test` images, which the 2018 release withheld. The test labels look like full annotations (18.4 boxes per image, as in train, with the same class mix), but they have not been checked against an independent source.---# Dataset OverviewBDD100K is a large-scale, diverse driving dataset spanning 10 tasks; this repository holds its **100K-image set** with the per-image labels: 100,000 labelled 1280x720 dashcam images (70,000 train, 10,000 val and 20,000 test, the official splits) annotated with 10 object-detection classes spanning vulnerable road users (`person`, `rider`), vehicles (`car`, `truck`, `bus`, `train`, `motor`, `bike`), and traffic control (`traffic light`, `traffic sign`), captured across diverse weather, time-of-day, and scene conditions in the US. The same label files also carry each image's weather, scene and time-of-day attributes and the lane-marking and drivable-area polygons.---# Changes from the Official Release- **Nothing converted.** Images and label files are exactly as in the official zips, with the official `train` / `val` / `test` splits and nothing carved out of `train`.- **Sharded for Hub limits.** Each split folder is split into `shard_NNN/` subdirectories of ≤8,000 files to stay under Hugging Face's practical per-directory file-count ceiling (train: 9 shards, val: 2, test: 3). This has no effect on the data itself.- **Conversion is done by a toolkit, not stored here.** [`bdd100k-toolkit`](https://github.com/dronefreak/bdd100k-toolkit) reads this layout and writes COCO or YOLO detection data (`bdd100k-prepare`, `bdd100k-coco-to-yolo`) or the classification splits.---4 unmodified lines├── README.md├── bdd100k_banner.jpg└── data/├── images_100k/100k/│ ├── train/ shard_000 … shard_008/ (*.jpg, ~8,000 per shard)│ ├── val/ shard_000 … shard_001/│ └── test/ shard_000 … shard_002/└── labels/100k/├── train/ shard_000 … shard_008/ (<name>.json, one per image)├── val/ shard_000 … shard_001/└── test/ shard_000 … shard_002/```where:* `data/images_100k/100k/<split>/shard_NNN/` contains the 1280x720 RGB dashcam images.* `data/labels/100k/<split>/shard_NNN/<name>.json` is the label file of `<name>.jpg`: `name`, frame `attributes` (`weather`, `scene`, `timeofday`) and `frames[0].objects`, a list of objects with a `category`, an `id`, object `attributes` (such as `occluded`, `truncated`, `trafficLightColor`) and either a `box2d` (`x1`, `y1`, `x2`, `y2` in pixels) for detection or a `poly2d` for lane markings (`lane/...`) and drivable areas (`area/...`).* The dataset viewer is off because the label files are nested JSON, not a table.* Splits: **train** 70,000 images / 1,288,405 boxes · **val** 10,000 images / 185,578 boxes · **test** 20,000 images / 367,728 boxes (100,000 images / 1,841,711 boxes total).### Classes (10)| class name | train | val | test | share (all splits) ||---|---:|---:|---:|---:|| `person` | 91,435 | 13,265 | 24,650 | 7.0% || `rider` | 4,522 | 649 | 1,294 | 0.4% || `car` | 714,121 | 102,540 | 205,150 | 55.5% || `truck` | 30,012 | 4,247 | 8,704 | 2.3% || `bus` | 11,688 | 1,597 | 3,217 | 0.9% || `train` | 136 | 15 | 28 | 0.01% || `motor` | 3,002 | 452 | 841 | 0.2% || `bike` | 7,227 | 1,007 | 1,998 | 0.6% || `traffic light` | 186,301 | 26,891 | 52,840 | 14.4% || `traffic sign` | 239,961 | 34,915 | 69,006 | 18.7% |Counts are raw `box2d` objects, including 395 zero-size boxes in train that a training pipeline would drop.`car` dominates at over half of all boxes; `train` is vanishingly rare (179 instances total). See [`docs/datasets/bdd100k`](https://github.com/dronefreak/DetectionBench/tree/main/docs/datasets/bdd100k) in the DetectionBench repository for box-geometry statistics.---
README.md+38-41