RicardoString commited on
Commit
ab48bb2
·
verified ·
1 Parent(s): eca78de

Upload RSReasoner

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
README.md CHANGED
@@ -1,3 +1,106 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ configs:
4
+ - config_name: default
5
+ data_files:
6
+ - split: train
7
+ path: train/*.tar
8
+ - split: validation
9
+ path: validation/*.tar
10
+ dataset_info:
11
+ features:
12
+ - name: __key__
13
+ dtype: string
14
+ - name: __url__
15
+ dtype: string
16
+ - name: png
17
+ dtype: image
18
+ - name: json
19
+ dtype: string
20
+ splits:
21
+ - name: train
22
+ num_examples: 95150
23
+ - name: validation
24
+ num_examples: 5660
25
  ---
26
+
27
+ # RSReasoner
28
+
29
+ RSReasoner is a large-scale dataset for geospatial reasoning segmentation, constructed from aerial imagery and OpenStreetMap (OSM) semantics. This repository contains the training and validation splits; the held-out test set is released separately as [RSReasoner-Bench](https://huggingface.co/datasets/RicardoString/RSReasoner-Bench).
30
+
31
+ ## Data scale
32
+
33
+ | Item | Train | Validation | Total |
34
+ |---|---:|---:|---:|
35
+ | Targets / images / masks | 95,150 each | 5,660 each | 100,810 each |
36
+ | Total query-mask pairs | 190,300 | 11,320 | 201,620 |
37
+ | Text answers | 95,150 | 5,660 | 100,810 |
38
+ | Area / non-area targets | 48,523 / 46,627 | 2,689 / 2,971 | 51,212 / 49,598 |
39
+ | With / without same-category competitors | 27,542 / 67,608 | 2,717 / 2,943 | 30,259 / 70,551 |
40
+
41
+ All images are RGB PNG files with a resolution of 448 × 448 pixels.
42
+
43
+ ## Fields
44
+
45
+ Each JSON file describes one target and contains two query types: explicit-inferential (EI) and implicit-inferential (II). Both refer to the same target mask and share one reference answer.
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 inside the TAR shard, 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
+ | `ei_query` | string | Explicit-inferential query. |
59
+ | `ii_query` | string | Implicit-inferential query. |
60
+ | `answer` | string | Reference reasoning answer shared by the EI and II queries. |
61
+
62
+ Original OSM tag values, including multilingual names, are preserved.
63
+
64
+ ## Reading a target
65
+
66
+ ```text
67
+ RSReasoner/
68
+ ├── README.md
69
+ ├── train/
70
+ │ ├── train-000000.tar
71
+ │ └── ...
72
+ └── validation/
73
+ ├── validation-000000.tar
74
+ └── ...
75
+ ```
76
+
77
+ Data is stored in WebDataset TAR shards. Each target is represented by an image and a JSON record with the same filename stem, such as `images/000001.png` and `images/000001.json`.
78
+
79
+ The following example reads one target and loads its image, segmentation mask, and bounding box. Set `root` to your local dataset directory. Reading requires `webdataset`, `Pillow`, and `pycocotools`.
80
+
81
+ ```python
82
+ from pathlib import Path
83
+ import webdataset as wds
84
+ from pycocotools import mask as mask_utils
85
+
86
+ root = Path("RSReasoner")
87
+ split = root / "train" # Use "validation" for the validation split.
88
+
89
+ files = sorted(str(p) for p in split.glob("*.tar"))
90
+ dataset = wds.WebDataset(files, shardshuffle=False).decode("pil")
91
+ item = next(iter(dataset))
92
+ image = item["png"]
93
+ sample = item["json"]
94
+
95
+ rle = sample["mask_rle"]
96
+ mask = mask_utils.decode({
97
+ "size": rle["size"],
98
+ "counts": rle["counts"].encode("ascii"),
99
+ }) # 1 = target, 0 = background
100
+
101
+ bbox = sample["bbox"] # [x, y, width, height] in pixels
102
+
103
+ print(sample["id"], sample["ei_query"], sample["ii_query"])
104
+ print(image.size, mask.shape) # (448, 448), (448, 448)
105
+ print(bbox)
106
+ ```
train/train-000000.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b1341b6f7cce4170167f98d5201d23be7e7c169de26d89e55bb5c251dabcfaa
3
+ size 324577280
train/train-000001.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84a28e014510c42d089a394d886873b834a97dd3d15245c59073e78257c32e98
3
+ size 327823360
train/train-000002.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c704dc61d8919271b9d7ac6582f0f5c8a7dfe560cfa39a9846f63b3bec15c7c2
3
+ size 329482240
train/train-000003.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62234654b0152e8330b3fa5f95c542da4ecbed827633f658406c8facff02424b
3
+ size 331008000
train/train-000004.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13d15f89c81afbd946ed0577beb030af3f5340ca3e042b99f39841f84b888282
3
+ size 330833920
train/train-000005.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f16ecebe3b5618cdcbfcc1011031e0e9ae82561dfb6604c00e2b06eec498d46
3
+ size 330659840
train/train-000006.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56de127501920c860e046ba9005e14cf46619264f4409342a897fb8c93eb13f0
3
+ size 327270400
train/train-000007.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1057c79ee4ba6b3b324e622cd0647218d30bc604a7b342273b1b098ac588256
3
+ size 326615040
train/train-000008.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:058d333b91120c6036b00a87fa3083ee8e0a5d1e90669cba6393bdcce865f2d5
3
+ size 327577600
train/train-000009.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07bda293a7a0e4e7d88cc18a317a76c344c655262e667bb50b00fa6e9480124e
3
+ size 330168320
train/train-000010.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a106fc9bf4c960557f21dadd3703a20a1cf7012afcee79d1814d74021dfb291
3
+ size 329041920
train/train-000011.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c68ef5fafda50b9936358f5960ce8f38f27dd46f0aa62e1c72b67cc1e660075d
3
+ size 330199040
train/train-000012.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3a849fc50cb124393b0bd007c15b036542fbce185be9bd70c5afbcfc408232f
3
+ size 329052160
train/train-000013.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f41b2efb3c1d53ba996c813e984d1ad03f7735a0264d445dd8c0a097373e2ba6
3
+ size 330434560
train/train-000014.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a228449409108cbf9930655ec18f57fae90257aa15c2ca49e27de96abfd89130
3
+ size 327475200
train/train-000015.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:044d6c28578395ba6d512540359c171fe68c939191373a77fd818f8f0ea73beb
3
+ size 328417280
train/train-000016.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a5d607a3d2756e21aa8f9bc5e7a216f2e338fd9e0854414f457c37349bee124
3
+ size 327669760
train/train-000017.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c709dadc7cfb08a5c8aeca681c6d4929ad5b10061c65bf75622a12eb55785032
3
+ size 329615360
train/train-000018.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87f7da84461925fd4b0a797556100780185a8565de30d043070be08f4f10d087
3
+ size 327168000
train/train-000019.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30d48e6cfaa04129e52b2534e0b3dfe71368d4b25af45532269af896d5e025df
3
+ size 330987520
train/train-000020.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d74b88e23a22d4be985cf6399c609449198234affca635b9c6343fa00415051
3
+ size 326328320
train/train-000021.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a60a93ce7778bb26070c01238899a60b4b9895b931bc5b5caa42fe945e395065
3
+ size 326400000
train/train-000022.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0886d4f0f0a3f7ef0c9623cd552a3e9d9e5be9e0ed20d7c7154911b190ae4eb3
3
+ size 327598080
train/train-000023.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbc461537ac01050e6ef432d710bef1f6536cd2c85f6fcbe1dc515b6d95d7cbb
3
+ size 326963200
train/train-000024.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5dd5cc43335a8a3e1ae049b468b3494795f870ea5ecdaad5420e97b8e905c99b
3
+ size 327516160
train/train-000025.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89cb3c57ef54e8e112ef78f75419d30741097d710cd2e8abd8e221ae3c09fa98
3
+ size 328755200
train/train-000026.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e064905dfd4da748991929b08dbf22b47ba64ab3c08d11211c7bb48c16d4112f
3
+ size 329113600
train/train-000027.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58532485962564865dad40ad3f0de60cf935163fe12fa34848d47fc4b65f0496
3
+ size 326666240
train/train-000028.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c449f574cfa231e0794a12144686fb6ec626b0d166c0185bdc1c698a34f28415
3
+ size 328622080
train/train-000029.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35a2f0687b10daa1651f1b2b62d04d15b1cc0618098c5c293790635b13b56e88
3
+ size 330762240
train/train-000030.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cda4021133436e1534ceb080f635a4abe5f082369cfd59e67464c8fae97be25
3
+ size 329195520
train/train-000031.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1376287144d43dfe42102d062076ca670ca96620d05ea4bacd2880b4fc4ba4cd
3
+ size 327761920
train/train-000032.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b64faf46e8faeeecf2ccaf0f33bd093bedfb61767c6677b986d8cf9c9f033371
3
+ size 328888320
train/train-000033.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ac46e69d7bce2bd1f294e90d87e00eb3c6b9c286e39b345f823e970808bb9a2
3
+ size 328970240
train/train-000034.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cd419ceb36a01166b6375409e80e3f480ec4606333f7d2e15ff1e22d1dca4d0
3
+ size 328171520
train/train-000035.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c69583b21deee72d296edf340cc4526b9d923d1be67b1742788d782d50cec6ae
3
+ size 328089600
train/train-000036.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:065b0a845759b99ac281a0315dee8dbdc0567700e1dbc48cbb2c302d266f7eeb
3
+ size 328273920
train/train-000037.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f2aa1b48491390f9f03c5673b2e2b647f0203b7211c2f0e6f421169476c0a35
3
+ size 328202240
train/train-000038.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e57d931c14f4824c8f0ca48b6f6a6dc2346bf9707b862c4c189f299c5596a29e
3
+ size 327577600
train/train-000039.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc553d50d451cbf6aef4eea15116cdb45c49bac5582bd6a6fbc005c1a423acd6
3
+ size 329400320
train/train-000040.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5996ab3d049b669f856881a74003c871c1d2e6ca358dda6e133e5daabc2db73
3
+ size 327004160
train/train-000041.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7532cd561840127b7372d67d7b59a6df9d7bd97cb5d2ba8e3829f88e4398b20
3
+ size 328847360
train/train-000042.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6362505956c69cc40131a71e8499c25c4dabece9389aeb8d9d0a5db46170e7e
3
+ size 330004480
train/train-000043.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0806500fcb34a894765485ac4d812cb44e89571cb12780d03acea2069458b2b5
3
+ size 327720960
train/train-000044.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74c21e6232d55ec9a4967da066d81e732f05c496197eeb9763dbfabdbad332be
3
+ size 327239680
train/train-000045.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a756f91bf614cec1bffa035aa2973efa2e23f6de5274f40a707389e10d59994e
3
+ size 327239680
train/train-000046.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acece9743eb45bcd0385b69a654302980a89b9b529e127faedeb12adc3f0fad0
3
+ size 327915520
train/train-000047.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81c5af00bda85ff2d303e89b2ef4e474427c64ca7924b378ba68d13748c25341
3
+ size 328325120
train/train-000048.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53bd7a5b6ca18bf1dc80d0bae7a4b69b510abb613b1c8f85357eab3fc174df2c
3
+ size 327004160