Datasets:
Tasks:
Visual Question Answering
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
Tags:
remote-sensing
satellite-imagery
geospatial
earth-observation
spatial-reasoning
quantitative-reasoning
DOI:
License:
Card: usage, scoring and per-source table
Browse files
README.md
CHANGED
|
@@ -36,7 +36,7 @@ configs:
|
|
| 36 |
<a href="https://github.com/PeterAMassih/SQuID"><img src="https://img.shields.io/badge/GitHub-code-181717.svg?logo=github"></a>
|
| 37 |
</p>
|
| 38 |
|
| 39 |
-
SQuID asks vision-language models to measure satellite images: count objects, compute areas and reason about distances.
|
| 40 |
|
| 41 |

|
| 42 |
|
|
@@ -46,12 +46,22 @@ SQuID asks vision-language models to measure satellite images: count objects, co
|
|
| 46 |
from datasets import load_dataset
|
| 47 |
|
| 48 |
bench = load_dataset("PeterAM4/SQuID", "benchmark", split="test")
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
```
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
```python
|
| 57 |
from huggingface_hub import snapshot_download
|
|
@@ -60,17 +70,17 @@ snapshot_download("PeterAM4/SQuID", repo_type="dataset", local_dir="data")
|
|
| 60 |
|
| 61 |
## Data
|
| 62 |
|
| 63 |
-
|
|
| 64 |
-
|---|---:|---:|
|
| 65 |
-
|
|
| 66 |
-
|
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
- **
|
| 72 |
-
|
| 73 |
-
|
| 74 |
|
| 75 |
## License and citation
|
| 76 |
|
|
|
|
| 36 |
<a href="https://github.com/PeterAMassih/SQuID"><img src="https://img.shields.io/badge/GitHub-code-181717.svg?logo=github"></a>
|
| 37 |
</p>
|
| 38 |
|
| 39 |
+
SQuID asks vision-language models to measure satellite images: count objects, compute areas and reason about distances. Most benchmark answers are computed from reference masks; the 50 NAIP questions use human-consensus answers.
|
| 40 |
|
| 41 |

|
| 42 |
|
|
|
|
| 46 |
from datasets import load_dataset
|
| 47 |
|
| 48 |
bench = load_dataset("PeterAM4/SQuID", "benchmark", split="test")
|
| 49 |
+
ex = bench[0]
|
| 50 |
+
ex["image"], ex["mask"] # PIL images (mask is None for NAIP)
|
| 51 |
+
ex["question"], ex["answer"] # 'What percentage of the image is agricultural land within 50m of water bodies? (GSD: 0.3m)', '29.32'
|
| 52 |
```
|
| 53 |
|
| 54 |
+
Score a prediction:
|
| 55 |
|
| 56 |
+
```python
|
| 57 |
+
def is_correct(pred, ex):
|
| 58 |
+
lo, hi = ex["acceptable_range_lower"], ex["acceptable_range_upper"]
|
| 59 |
+
if lo is None: # yes/no (1/0) and connected/fragmented
|
| 60 |
+
return str(pred) == ex["answer"]
|
| 61 |
+
return lo <= float(pred) <= hi
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
The `train` config lists 75,687 questions whose `image` and `mask` are file paths in this repository. Download the files with:
|
| 65 |
|
| 66 |
```python
|
| 67 |
from huggingface_hub import snapshot_download
|
|
|
|
| 70 |
|
| 71 |
## Data
|
| 72 |
|
| 73 |
+
| Source | GSD | Benchmark | Train | Reference mask |
|
| 74 |
+
|---|---|---:|---:|---|
|
| 75 |
+
| DeepGlobe | 0.5 m | 549 | 35,542 | land-cover classes (`_label.png`) |
|
| 76 |
+
| EarthVQA | 0.3 m | 1,304 | 36,190 | buildings and land cover (`_label2.png`) |
|
| 77 |
+
| Solar panels | 0.3 m | 97 | 3,955 | panels (`_label.bmp`) |
|
| 78 |
+
| NAIP | 1.0 m | 50 | — | none: median of 10 human annotators |
|
| 79 |
+
| **Total** | | **2,000** | **75,687** | |
|
| 80 |
+
|
| 81 |
+
- **Tiers:** basic (713), spatial (610) and multi-step (677) questions of 25 types. The two splits share no images.
|
| 82 |
+
- **Tolerances:** numeric answers are accepted within the spread of 500 human annotations (±1.7 points for percentages, ±19% for counts).
|
| 83 |
+
- **EarthVQA masks:** `_label2` is the human label (`_label`) with its unlabeled background filled by a land-cover model (`_pred2`). Answers are computed from `_label2`.
|
| 84 |
|
| 85 |
## License and citation
|
| 86 |
|