Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- README.md +96 -0
- test/images/000001.png +3 -0
- test/images/000002.png +3 -0
- test/images/000003.png +3 -0
- test/images/000004.png +3 -0
- test/images/000005.png +3 -0
- test/images/000006.png +3 -0
- test/images/000007.png +3 -0
- test/images/000008.png +3 -0
- test/images/000009.png +3 -0
- test/images/000010.png +3 -0
- test/images/000011.png +3 -0
- test/images/000012.png +3 -0
- test/images/000013.png +3 -0
- test/images/000014.png +3 -0
- test/images/000015.png +3 -0
- test/images/000016.png +3 -0
- test/images/000017.png +3 -0
- test/images/000018.png +3 -0
- test/images/000019.png +3 -0
- test/images/000020.png +3 -0
- test/images/000021.png +3 -0
- test/images/000022.png +3 -0
- test/images/000023.png +3 -0
- test/images/000024.png +3 -0
- test/images/000025.png +3 -0
- test/images/000026.png +3 -0
- test/images/000027.png +3 -0
- test/images/000028.png +3 -0
- test/images/000029.png +3 -0
- test/images/000030.png +3 -0
- test/images/000031.png +3 -0
- test/images/000032.png +3 -0
- test/images/000033.png +3 -0
- test/images/000034.png +3 -0
- test/images/000035.png +3 -0
- test/images/000036.png +3 -0
- test/images/000037.png +3 -0
- test/images/000038.png +3 -0
- test/images/000039.png +3 -0
- test/images/000040.png +3 -0
- test/images/000041.png +3 -0
- test/images/000042.png +3 -0
- test/images/000043.png +3 -0
- test/images/000044.png +3 -0
- test/images/000045.png +3 -0
- test/images/000046.png +3 -0
- test/images/000047.png +3 -0
- test/images/000048.png +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
test/metadata.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,99 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
# RSReasoner-Bench
|
| 6 |
+
|
| 7 |
+
RSReasoner-Bench is a diagnostic benchmark for evaluating geospatial reasoning segmentation across category expression, attribute nature, and same-category competition. It also serves as the held-out test set of RSReasoner. Each target has one aerial image, one segmentation mask, and 13 query conditions referring to the same target.
|
| 8 |
+
|
| 9 |
+
## Data scale
|
| 10 |
+
|
| 11 |
+
| Item | Count |
|
| 12 |
+
|---|---:|
|
| 13 |
+
| Split | `test` |
|
| 14 |
+
| Targets / images / masks | 5,800 each |
|
| 15 |
+
| Image format and resolution | RGB PNG, 448 × 448 pixels |
|
| 16 |
+
| Canonical queries | 23,200 |
|
| 17 |
+
| Controlled diagnostic queries | 52,200 |
|
| 18 |
+
| Total query-mask pairs | 75,400 |
|
| 19 |
+
| Text answers (EI and II) | 11,600 |
|
| 20 |
+
| Area / non-area targets | 2,800 / 3,000 |
|
| 21 |
+
| With / without same-category competitors | 2,784 / 3,016 |
|
| 22 |
+
|
| 23 |
+
## Query types
|
| 24 |
+
|
| 25 |
+
All 13 conditions contain 5,800 queries each and share the same target masks.
|
| 26 |
+
|
| 27 |
+
| Type | Description | JSONL field |
|
| 28 |
+
|---|---|---|
|
| 29 |
+
| EP | Explicit-perceptual | `ep_query` |
|
| 30 |
+
| IP | Implicit-perceptual | `ip_query` |
|
| 31 |
+
| EI | Explicit-inferential | `ei_query` |
|
| 32 |
+
| II | Implicit-inferential | `ii_query` |
|
| 33 |
+
| C | Category-only reference | `c_query` |
|
| 34 |
+
| Ctrl-EP | Controlled explicit-perceptual | `ctrl_ep_query` |
|
| 35 |
+
| Ctrl-EI | Controlled explicit-inferential | `ctrl_ei_query` |
|
| 36 |
+
| M-PI | Perceptual-first mixed attributes | `m_pi_query` |
|
| 37 |
+
| M-IP | Inferential-first mixed attributes | `m_ip_query` |
|
| 38 |
+
| EP-Imp | EP with an implicit category reference | `ep_implicit_query` |
|
| 39 |
+
| IP-Exp | IP with an explicit category reference | `ip_explicit_query` |
|
| 40 |
+
| EI-Imp | EI with an implicit category reference | `ei_implicit_query` |
|
| 41 |
+
| II-Exp | II with an explicit category reference | `ii_explicit_query` |
|
| 42 |
+
|
| 43 |
+
## Fields
|
| 44 |
+
|
| 45 |
+
Each line of `test/metadata.jsonl` describes one target. In addition to the query fields above, each record contains the following fields.
|
| 46 |
+
|
| 47 |
+
| Field | Type | Description |
|
| 48 |
+
|---|---|---|
|
| 49 |
+
| `id` | integer | Unique target identifier. |
|
| 50 |
+
| `patch_id` | integer | Source image-patch identifier. |
|
| 51 |
+
| `file_name` | string | Image path relative to `test/`, such as `images/000001.png`. |
|
| 52 |
+
| `type` | string | Target geometry: `area` or `non-area`. |
|
| 53 |
+
| `has_same_category_instance` | integer | `1` if another instance of the same category is present in the image; otherwise `0`. |
|
| 54 |
+
| `main_tag` | string | Normalized main OSM tag, expressed as `key=value`. |
|
| 55 |
+
| `full_tag` | object | Original OSM key-value dictionary; keys and values are strings. |
|
| 56 |
+
| `mask_rle` | object | COCO compressed RLE: `size` is `[height, width]`, and `counts` is a string. |
|
| 57 |
+
| `bbox` | array | Target bounding box in pixels: `[x, y, width, height]`. |
|
| 58 |
+
| `category_only_category` | string | Category phrase associated with category-only and controlled query construction. |
|
| 59 |
+
| `ei_answer` | string | Reference reasoning answer for the EI query. |
|
| 60 |
+
| `ii_answer` | string | Reference reasoning answer for the II query. |
|
| 61 |
+
|
| 62 |
+
## Reading images and masks
|
| 63 |
+
|
| 64 |
+
```text
|
| 65 |
+
RSReasoner-Bench/
|
| 66 |
+
├── README.md
|
| 67 |
+
└── test/
|
| 68 |
+
├── metadata.jsonl
|
| 69 |
+
└── images/
|
| 70 |
+
├── 000001.png
|
| 71 |
+
└── ...
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
The following example reads one JSONL record and loads its image and segmentation mask. Set `root` to your local dataset directory. Image and mask loading requires `Pillow` and `pycocotools`.
|
| 75 |
+
|
| 76 |
+
```python
|
| 77 |
+
import json
|
| 78 |
+
from pathlib import Path
|
| 79 |
+
from PIL import Image
|
| 80 |
+
from pycocotools import mask as mask_utils
|
| 81 |
+
|
| 82 |
+
root = Path("RSReasoner-Bench")
|
| 83 |
+
split = root / "test"
|
| 84 |
+
|
| 85 |
+
with (split / "metadata.jsonl").open(encoding="utf-8") as f:
|
| 86 |
+
sample = json.loads(next(f)) # For all records: for line in f: sample = json.loads(line)
|
| 87 |
+
|
| 88 |
+
with Image.open(split / sample["file_name"]) as src:
|
| 89 |
+
image = src.copy()
|
| 90 |
+
|
| 91 |
+
rle = sample["mask_rle"]
|
| 92 |
+
mask = mask_utils.decode({
|
| 93 |
+
"size": rle["size"],
|
| 94 |
+
"counts": rle["counts"].encode("ascii"),
|
| 95 |
+
}) # 1 = target, 0 = background
|
| 96 |
+
|
| 97 |
+
print(sample["id"], sample["ei_query"])
|
| 98 |
+
print(image.size, mask.shape) # (448, 448), (448, 448)
|
| 99 |
+
```
|
test/images/000001.png
ADDED
|
Git LFS Details
|
test/images/000002.png
ADDED
|
Git LFS Details
|
test/images/000003.png
ADDED
|
Git LFS Details
|
test/images/000004.png
ADDED
|
Git LFS Details
|
test/images/000005.png
ADDED
|
Git LFS Details
|
test/images/000006.png
ADDED
|
Git LFS Details
|
test/images/000007.png
ADDED
|
Git LFS Details
|
test/images/000008.png
ADDED
|
Git LFS Details
|
test/images/000009.png
ADDED
|
Git LFS Details
|
test/images/000010.png
ADDED
|
Git LFS Details
|
test/images/000011.png
ADDED
|
Git LFS Details
|
test/images/000012.png
ADDED
|
Git LFS Details
|
test/images/000013.png
ADDED
|
Git LFS Details
|
test/images/000014.png
ADDED
|
Git LFS Details
|
test/images/000015.png
ADDED
|
Git LFS Details
|
test/images/000016.png
ADDED
|
Git LFS Details
|
test/images/000017.png
ADDED
|
Git LFS Details
|
test/images/000018.png
ADDED
|
Git LFS Details
|
test/images/000019.png
ADDED
|
Git LFS Details
|
test/images/000020.png
ADDED
|
Git LFS Details
|
test/images/000021.png
ADDED
|
Git LFS Details
|
test/images/000022.png
ADDED
|
Git LFS Details
|
test/images/000023.png
ADDED
|
Git LFS Details
|
test/images/000024.png
ADDED
|
Git LFS Details
|
test/images/000025.png
ADDED
|
Git LFS Details
|
test/images/000026.png
ADDED
|
Git LFS Details
|
test/images/000027.png
ADDED
|
Git LFS Details
|
test/images/000028.png
ADDED
|
Git LFS Details
|
test/images/000029.png
ADDED
|
Git LFS Details
|
test/images/000030.png
ADDED
|
Git LFS Details
|
test/images/000031.png
ADDED
|
Git LFS Details
|
test/images/000032.png
ADDED
|
Git LFS Details
|
test/images/000033.png
ADDED
|
Git LFS Details
|
test/images/000034.png
ADDED
|
Git LFS Details
|
test/images/000035.png
ADDED
|
Git LFS Details
|
test/images/000036.png
ADDED
|
Git LFS Details
|
test/images/000037.png
ADDED
|
Git LFS Details
|
test/images/000038.png
ADDED
|
Git LFS Details
|
test/images/000039.png
ADDED
|
Git LFS Details
|
test/images/000040.png
ADDED
|
Git LFS Details
|
test/images/000041.png
ADDED
|
Git LFS Details
|
test/images/000042.png
ADDED
|
Git LFS Details
|
test/images/000043.png
ADDED
|
Git LFS Details
|
test/images/000044.png
ADDED
|
Git LFS Details
|
test/images/000045.png
ADDED
|
Git LFS Details
|
test/images/000046.png
ADDED
|
Git LFS Details
|
test/images/000047.png
ADDED
|
Git LFS Details
|
test/images/000048.png
ADDED
|
Git LFS Details
|