Datasets:
Formats:
parquet
Languages:
English
Size:
1M - 10M
ArXiv:
Tags:
visual-reasoning
spatial-reasoning
object-detection
computer-vision
autonomous-driving
bdd100k
License:
Add comprehensive README with GRAID statistics
Browse files
README.md
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "GRAID BDD100K Question-Answer Dataset"
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
license: "bsd-3-clause"
|
| 6 |
+
task_categories:
|
| 7 |
+
- visual-question-answering
|
| 8 |
+
- object-detection
|
| 9 |
+
tags:
|
| 10 |
+
- visual-reasoning
|
| 11 |
+
- spatial-reasoning
|
| 12 |
+
- object-detection
|
| 13 |
+
- computer-vision
|
| 14 |
+
- autonomous-driving
|
| 15 |
+
- bdd100k
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# GRAID BDD100K Question-Answer Dataset
|
| 19 |
+
|
| 20 |
+
## Overview
|
| 21 |
+
|
| 22 |
+
This dataset was generated using **GRAID** (**G**enerating **R**easoning questions from **A**nalysis of **I**mages via **D**iscriminative artificial intelligence), a framework for creating spatial reasoning datasets from object detection annotations.
|
| 23 |
+
|
| 24 |
+
**GRAID** transforms raw object detection data into structured question-answer pairs that test various aspects of object localization, visual reasoning, spatial reasoning, and object relationship comprehension.
|
| 25 |
+
|
| 26 |
+
## Dataset Details
|
| 27 |
+
|
| 28 |
+
- **Total QA Pairs**: 5,299,798
|
| 29 |
+
- **Source Dataset**: BDD100K (Berkeley DeepDrive)
|
| 30 |
+
- **Generation Date**: 2025-09-11
|
| 31 |
+
- **Image Format**: Embedded in parquet files (no separate image files)
|
| 32 |
+
- **Question Types**: 22 different reasoning patterns
|
| 33 |
+
|
| 34 |
+
## Dataset Splits
|
| 35 |
+
|
| 36 |
+
- **train**: 4,627,468 (87.31%)
|
| 37 |
+
- **val**: 672,330 (12.69%)
|
| 38 |
+
|
| 39 |
+
## Question Type Distribution
|
| 40 |
+
|
| 41 |
+
- **Is there at least one {object_1} to the left of any {object_2}?**: 708,762 (13.37%)
|
| 42 |
+
- **Is there at least one {object_1} to the right of any {object_2}?**: 708,762 (13.37%)
|
| 43 |
+
- **Is there at least one {object_1} that appears closer to the camera than any {object_2}?**: 708,762 (13.37%)
|
| 44 |
+
- **Is there at least one {object_1} that appears farther from the camera than any {object_2}?**: 708,762 (13.37%)
|
| 45 |
+
- **Are there more than {target} {object_1}(s) in this image? Respond Yes/No.**: 510,268 (9.63%)
|
| 46 |
+
- **Are there less than {target} {object_1}(s) in this image? Respond Yes/No.**: 510,268 (9.63%)
|
| 47 |
+
- **Are there more {object_1}(s) than {object_2}(s) in this image?**: 305,574 (5.77%)
|
| 48 |
+
- **How many {object_1}(s) are there in this image?**: 255,134 (4.81%)
|
| 49 |
+
- **What appears the most in this image: {object_1}s, {object_2}s, or {object_3}s?**: 250,197 (4.72%)
|
| 50 |
+
- **How many {object_1}(s) are in the image? Choose one: A) {range_a}, B) {range_b}, C) {range_c}, D) Unsure / Not Visible. Respond with the letter only.**: 136,928 (2.58%)
|
| 51 |
+
- **Rank the {k} kinds of objects that appear the largest (by pixel area) in the image from largest to smallest. Provide your answer as a comma-separated list of object names only.**: 111,176 (2.10%)
|
| 52 |
+
- **Divide the image into a grid of {N} rows x {M} columns. Number the cells from left to right, then top to bottom, starting with 1. In what cell does the {object_1} appear?**: 82,442 (1.56%)
|
| 53 |
+
- **What kind of object appears the most frequently in the image?**: 64,405 (1.22%)
|
| 54 |
+
- **Rank the {k} kinds of objects that appear the closest to the camera in the image from closest to farthest. Provide your answer as a comma-separated list of object names only.**: 60,120 (1.13%)
|
| 55 |
+
- **If you were to draw a tight box around each object in the image, which type of object would have the biggest box?**: 57,994 (1.09%)
|
| 56 |
+
- **What kind of object appears the least frequently in the image?**: 53,454 (1.01%)
|
| 57 |
+
- **Divide the image into thirds. In which third does the {object_1} primarily appear? Respond with the letter only: A) left third, B) middle third, C) right third.**: 37,730 (0.71%)
|
| 58 |
+
- **What is the rightmost object in the image?**: 8,287 (0.16%)
|
| 59 |
+
- **What is the leftmost object in the image?**: 7,327 (0.14%)
|
| 60 |
+
- **Is the width of the {object_1} appear to be larger than the height?**: 7,059 (0.13%)
|
| 61 |
+
- **Does the leftmost object in the image appear to be wider than it is tall?**: 3,682 (0.07%)
|
| 62 |
+
- **Does the rightmost object in the image appear to be wider than it is tall?**: 2,705 (0.05%)
|
| 63 |
+
|
| 64 |
+
## Performance Analysis
|
| 65 |
+
|
| 66 |
+
### Question Processing Efficiency
|
| 67 |
+
|
| 68 |
+
| Question Type | is_applicable Avg (ms) | apply Avg (ms) | Predicate -> QA Hit Rate | Empty cases |
|
| 69 |
+
|---------------|------------------------|----------------|--------------------------|-------------|
|
| 70 |
+
| Divide the image into thirds. In which third does the {object_1} primarily appear? Respond with the letter only: A) left third, B) middle third, C) right third. | 0.03 | 0.92 | 71.7% | 11535 |
|
| 71 |
+
| Is the width of the {object_1} appear to be larger than the height? | 0.01 | 1.15 | 16.7% | 34017 |
|
| 72 |
+
| Divide the image into a grid of {N} rows x {M} columns. Number the cells from left to right, then top to bottom, starting with 1. In what cell does the {object_1} appear? | 0.01 | 5.19 | 42.5% | 93933 |
|
| 73 |
+
| If you were to draw a tight box around each object in the image, which type of object would have the biggest box? | 0.02 | 28.15 | 78.8% | 15593 |
|
| 74 |
+
| Rank the {k} kinds of objects that appear the largest (by pixel area) in the image from largest to smallest. Provide your answer as a comma-separated list of object names only. | 0.02 | 26.79 | 87.0% | 16663 |
|
| 75 |
+
| What kind of object appears the most frequently in the image? | 0.02 | 0.01 | 87.5% | 9182 |
|
| 76 |
+
| What kind of object appears the least frequently in the image? | 0.01 | 0.01 | 72.6% | 20133 |
|
| 77 |
+
| Is there at least one {object_1} to the left of any {object_2}? | 6.47 | 69.93 | 100.0% | 0 |
|
| 78 |
+
| Is there at least one {object_1} to the right of any {object_2}? | 5.17 | 46.95 | 100.0% | 0 |
|
| 79 |
+
| What is the leftmost object in the image? | 0.03 | 2.19 | 18.0% | 33486 |
|
| 80 |
+
| What is the rightmost object in the image? | 0.02 | 2.12 | 20.3% | 32526 |
|
| 81 |
+
| How many {object_1}(s) are there in this image? | 0.02 | 0.02 | 100.0% | 0 |
|
| 82 |
+
| Are there more {object_1}(s) than {object_2}(s) in this image? | 0.01 | 0.02 | 97.7% | 1708 |
|
| 83 |
+
| What appears the most in this image: {object_1}s, {object_2}s, or {object_3}s? | 0.01 | 0.02 | 69.5% | 22432 |
|
| 84 |
+
| Does the leftmost object in the image appear to be wider than it is tall? | 0.01 | 1.62 | 9.0% | 37131 |
|
| 85 |
+
| Does the rightmost object in the image appear to be wider than it is tall? | 0.01 | 1.43 | 6.6% | 38108 |
|
| 86 |
+
| Are there more than {target} {object_1}(s) in this image? Respond Yes/No. | 0.01 | 0.02 | 100.0% | 0 |
|
| 87 |
+
| Are there less than {target} {object_1}(s) in this image? Respond Yes/No. | 0.01 | 0.02 | 100.0% | 0 |
|
| 88 |
+
| How many {object_1}(s) are in the image? Choose one: A) {range_a}, B) {range_b}, C) {range_c}, D) Unsure / Not Visible. Respond with the letter only. | 0.01 | 0.14 | 94.3% | 4504 |
|
| 89 |
+
| Is there at least one {object_1} that appears closer to the camera than any {object_2}? | 4.09 | 8627.26 | 100.0% | 0 |
|
| 90 |
+
| Is there at least one {object_1} that appears farther from the camera than any {object_2}? | 1.92 | 420.61 | 100.0% | 0 |
|
| 91 |
+
| Rank the {k} kinds of objects that appear the closest to the camera in the image from closest to farthest. Provide your answer as a comma-separated list of object names only. | 0.04 | 54.12 | 47.0% | 67719 |
|
| 92 |
+
**Notes:**
|
| 93 |
+
- `is_applicable` checks if a question type can be applied to an image
|
| 94 |
+
- `apply` generates the actual question-answer pairs
|
| 95 |
+
- Predicate -> QA Hit Rate = Percentage of applicable cases that generated at least one QA pair
|
| 96 |
+
- Empty cases = Number of times is_applicable=True but apply returned no QA pairs
|
| 97 |
+
## Usage
|
| 98 |
+
|
| 99 |
+
```python
|
| 100 |
+
from datasets import load_dataset
|
| 101 |
+
|
| 102 |
+
# Load the complete dataset
|
| 103 |
+
dataset = load_dataset("kd7/graid-bdd")
|
| 104 |
+
|
| 105 |
+
# Access individual splits
|
| 106 |
+
train_data = dataset["train"]
|
| 107 |
+
val_data = dataset["val"]
|
| 108 |
+
|
| 109 |
+
# Example of accessing a sample
|
| 110 |
+
sample = dataset["train"][0] # or "val"
|
| 111 |
+
print(f"Question: {sample['question']}")
|
| 112 |
+
print(f"Answer: {sample['answer']}")
|
| 113 |
+
print(f"Question Type: {sample['question_type']}")
|
| 114 |
+
|
| 115 |
+
# The image is embedded as a PIL Image object
|
| 116 |
+
image = sample["image"]
|
| 117 |
+
image.show() # Display the image
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
## Dataset Schema
|
| 121 |
+
|
| 122 |
+
- **image**: PIL Image object (embedded, no separate files)
|
| 123 |
+
- **annotations**: COCO-style bounding box annotations
|
| 124 |
+
- **question**: Generated question text
|
| 125 |
+
- **answer**: Corresponding answer text
|
| 126 |
+
- **reasoning**: Additional reasoning information (if applicable)
|
| 127 |
+
- **question_type**: Type of question (e.g., "HowMany", "LeftOf", "Quadrants")
|
| 128 |
+
- **source_id**: Original image identifier from BDD100K (Berkeley DeepDrive)
|
| 129 |
+
|
| 130 |
+
## License
|
| 131 |
+
|
| 132 |
+
This dataset is derived from the BDD100K dataset. Please refer to the [BDD100K license terms](https://github.com/bdd100k/bdd100k) for usage restrictions. The GRAID-generated questions and metadata are provided under the same terms.
|
| 133 |
+
|
| 134 |
+
## Citation
|
| 135 |
+
|
| 136 |
+
If you use this dataset in your research, please cite both the original dataset and the GRAID framework:
|
| 137 |
+
|
| 138 |
+
```bibtex
|
| 139 |
+
@dataset{graid_bdd,
|
| 140 |
+
title={GRAID BDD100K Question-Answer Dataset},
|
| 141 |
+
author={GRAID Framework},
|
| 142 |
+
year={2025},
|
| 143 |
+
note={Generated using GRAID: Generating Reasoning questions from Analysis of Images via Discriminative artificial intelligence}
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
@INPROCEEDINGS{9156329,
|
| 147 |
+
author={Yu, Fisher and Chen, Haofeng and Wang, Xin and Xian, Wenqi and Chen, Yingying and Liu, Fangchen and Madhavan, Vashisht and Darrell, Trevor},
|
| 148 |
+
booktitle={2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
|
| 149 |
+
title={BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learning},
|
| 150 |
+
year={2020},
|
| 151 |
+
volume={},
|
| 152 |
+
number={},
|
| 153 |
+
pages={2633-2642},
|
| 154 |
+
keywords={Task analysis;Visualization;Roads;Image segmentation;Meteorology;Training;Benchmark testing},
|
| 155 |
+
doi={10.1109/CVPR42600.2020.00271}
|
| 156 |
+
}
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
## Contact
|
| 160 |
+
|
| 161 |
+
For questions about this dataset or the GRAID framework, please open an issue in the repository.
|