PeterAM4 commited on
Commit
243316e
·
verified ·
1 Parent(s): fe15a30

Card: usage, scoring and per-source table

Browse files
Files changed (1) hide show
  1. README.md +25 -15
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. Every answer is computed from pixel-level masks.
40
 
41
  ![Examples](https://huggingface.co/datasets/PeterAM4/SQuID/resolve/main/assets/examples.jpg)
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
- train = load_dataset("PeterAM4/SQuID", "train", split="train")
 
 
50
  ```
51
 
52
- A numeric answer is correct inside `[acceptable_range_lower, acceptable_range_upper]`. Binary and `connected`/`fragmented` answers must match exactly.
53
 
54
- Training rows point to image files. Download them, with all masks and raw JSON files:
 
 
 
 
 
 
 
 
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
- | Split | Questions | Images |
64
- |---|---:|---:|
65
- | `benchmark` | 2,000 | 639 |
66
- | `train` | 75,687 | 1,443 |
67
-
68
- - **Sources:** DeepGlobe (0.5 m), EarthVQA (0.3 m), solar panels (0.3 m), and 50 human-answered NAIP questions (1.0 m) in the benchmark. The two splits share no images.
69
- - **Tiers:** basic (713), spatial (610) and multi-step (677) questions, of 25 types.
70
- - **Tolerances** come from 500 human annotations: ±1.7 points for percentages and ±19% for counts.
71
- - **Masks:** EarthVQA answers use `_label2`, the human label with its background filled by a land-cover model (`_pred2`).
72
-
73
- v1.0, the January 2026 benchmark, is still available with `revision="v1.0"` ([DOI](https://doi.org/10.57967/hf/7565)).
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
  ![Examples](https://huggingface.co/datasets/PeterAM4/SQuID/resolve/main/assets/examples.jpg)
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