Spatialworld commited on
Commit
1f2e856
ยท
verified ยท
1 Parent(s): ebab789

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +58 -12
README.md CHANGED
@@ -35,19 +35,20 @@ SpatialWorld is a comprehensive benchmark designed to evaluate spatial reasoning
35
 
36
  ## ๐Ÿ“Š Dataset Statistics
37
 
38
- | Platform | Scenarios | Tasks | Task Types |
39
- |----------|-----------|-------|------------|
40
- | AI2Thor | 120 | ~2,500 | Object manipulation, navigation |
41
- | CARLA | 5 Towns | 80 | Urban navigation, traffic scenarios |
42
- | ProcTHOR | Procedural | ~1,200 | Indoor navigation, household tasks |
43
- | VirtualHome | 7 Houses | ~800 | Multi-agent household activities |
44
- | EmbodiedCity | City-scale | ~400 | Real-world urban scenarios |
45
- | Game Tasks | Various | 100 | Rubik's cube, maze solving, etc. |
 
46
 
47
  ## ๐Ÿ—‚๏ธ Repository Structure
48
 
49
  ```
50
- benchmark/ # Full benchmark data (all platforms and tasks)
51
  โ”œโ”€โ”€ ai2thor/
52
  โ”œโ”€โ”€ carla/
53
  โ”œโ”€โ”€ procthor/
@@ -56,10 +57,13 @@ benchmark/ # Full benchmark data (all platforms and tasks)
56
  โ”œโ”€โ”€ game/
57
  โ””โ”€โ”€ shared/
58
 
59
- data/ # Sample data for Hugging Face Dataset Viewer
60
- โ””โ”€โ”€ spatialworld_samples.parquet # 12 sample tasks (2 per platform)
 
61
  ```
62
 
 
 
63
  ## ๐ŸŽฎ Unified Action Space
64
 
65
  All tasks use a standardized action space:
@@ -109,7 +113,30 @@ Each task contains:
109
 
110
  ## ๐Ÿ”ง Usage
111
 
112
- ### Loading Tasks
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
 
114
  ```python
115
  import json
@@ -126,6 +153,25 @@ print(task["instruction"])
126
  print(task["golden_actions"]["actions"])
127
  ```
128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  ### Action Parsing
130
 
131
  ```python
 
35
 
36
  ## ๐Ÿ“Š Dataset Statistics
37
 
38
+ This Hugging Face repository contains 630 unified tasks:
39
+
40
+ | Platform | Tasks | Task Types |
41
+ |----------|-------|------------|
42
+ | AI2Thor | 343 | Object manipulation, navigation |
43
+ | CARLA | 80 | Urban navigation, traffic scenarios |
44
+ | ProcTHOR | 127 | Indoor navigation, household tasks |
45
+ | VirtualHome | 80 | Multi-agent household activities |
46
+ | **Total** | **630** | Multi-platform spatial reasoning |
47
 
48
  ## ๐Ÿ—‚๏ธ Repository Structure
49
 
50
  ```
51
+ benchmark/ # Full benchmark data with original JSON structures
52
  โ”œโ”€โ”€ ai2thor/
53
  โ”œโ”€โ”€ carla/
54
  โ”œโ”€โ”€ procthor/
 
57
  โ”œโ”€โ”€ game/
58
  โ””โ”€โ”€ shared/
59
 
60
+ data/ # Unified Hugging Face dataset
61
+ โ”œโ”€โ”€ spatialworld_unified.jsonl # 630 tasks in unified schema
62
+ โ””โ”€โ”€ spatialworld_samples.parquet # Sample for quick preview
63
  ```
64
 
65
+ The Hugging Face dataset (`spatialworld_unified.jsonl`) provides a unified schema across all platforms. Original platform-specific JSON files remain in `benchmark/` for reference.
66
+
67
  ## ๐ŸŽฎ Unified Action Space
68
 
69
  All tasks use a standardized action space:
 
113
 
114
  ## ๐Ÿ”ง Usage
115
 
116
+ ### Loading from Hugging Face
117
+
118
+ ```python
119
+ from datasets import load_dataset
120
+
121
+ # Load the unified dataset (all 630 tasks from all platforms)
122
+ dataset = load_dataset("Spatialworld/Spatialworld-bench", split="train")
123
+
124
+ # Access a task
125
+ task = dataset[0]
126
+ print(task["task_id"]) # e.g., "ai2thor00000"
127
+ print(task["platform"]) # e.g., "ai2thor"
128
+ print(task["instruction"])
129
+
130
+ # Parse JSON fields
131
+ import json
132
+ golden_actions = json.loads(task["golden_actions_json"])
133
+ success_conditions = json.loads(task["success_conditions_json"])
134
+ platform_specific = json.loads(task["platform_specific_json"])
135
+ ```
136
+
137
+ ### Loading Original Tasks (Local)
138
+
139
+ For full benchmark with original JSON structures:
140
 
141
  ```python
142
  import json
 
153
  print(task["golden_actions"]["actions"])
154
  ```
155
 
156
+ ### Data Format
157
+
158
+ The Hugging Face dataset provides a unified schema across all platforms:
159
+
160
+ | Field | Type | Description |
161
+ |-------|------|-------------|
162
+ | `task_id` | string | Unique identifier (e.g., "ai2thor00000") |
163
+ | `platform` | string | Platform name (ai2thor/carla/procthor/virtualhome) |
164
+ | `task_name` | string | Human-readable task name |
165
+ | `instruction` | string | Natural language instruction |
166
+ | `scene` | string | Scene identifier (FloorPlan, Town, etc.) |
167
+ | `max_steps` | int | Maximum allowed steps |
168
+ | `golden_actions_json` | string | JSON-encoded golden action sequence |
169
+ | `success_conditions_json` | string | JSON-encoded success conditions |
170
+ | `target_object_types_json` | string | JSON-encoded target objects |
171
+ | `success_logic` | string | Logic for combining success conditions (AND/OR) |
172
+ | `target_description` | string | Detailed target description |
173
+ | `platform_specific_json` | string | Platform-specific fields (scene_index, executor, etc.) |
174
+
175
  ### Action Parsing
176
 
177
  ```python