Spatialworld commited on
Commit
9656133
ยท
verified ยท
1 Parent(s): f86b788

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +54 -32
README.md CHANGED
@@ -35,34 +35,27 @@ SpatialWorld is a comprehensive benchmark designed to evaluate spatial reasoning
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/
55
- โ”œโ”€โ”€ virtualhome/
56
- โ”œโ”€โ”€ embodiedcity/
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
 
@@ -117,23 +110,52 @@ Each task contains:
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:
 
35
 
36
  ## ๐Ÿ“Š Dataset Statistics
37
 
38
+ This Hugging Face repository contains the complete **SpatialWorld Benchmark** with all 630 tasks:
39
 
40
+ | Platform | Tasks | Task Types | Unique Fields |
41
+ |----------|-------|------------|---------------|
42
+ | AI2Thor | 343 | Object manipulation, navigation | Category, Evaluation_Type, Level |
43
+ | CARLA | 80 | Urban navigation, traffic scenarios | executor, image_url, input_modality, origin_location, weather |
44
+ | ProcTHOR | 127 | Indoor navigation, household tasks | scene_index, Category, Evaluation_Type, Level |
45
+ | VirtualHome | 80 | Multi-agent household activities | executor, image_url, input_modality, origin_location, weather |
46
+ | **Total** | **630** | Multi-platform spatial reasoning | **20 fields total** |
47
 
48
  ## ๐Ÿ—‚๏ธ Repository Structure
49
 
50
  ```
51
+ spatialworld.jsonl # Full dataset (630 tasks, 20 columns)
52
+ README.md # This file
 
 
 
 
 
 
 
 
 
 
53
  ```
54
 
55
+ The `spatialworld.jsonl` file contains **all 630 tasks** with **all original fields** from every platform. Schema differences are handled by:
56
+ - Including all 20 possible fields as top-level columns
57
+ - Using `null` for fields that don't exist in a particular platform
58
+ - Encoding complex nested structures (`golden_actions`, `success_conditions`, `target_object_types`) as JSON strings
59
 
60
  ## ๐ŸŽฎ Unified Action Space
61
 
 
110
 
111
  ```python
112
  from datasets import load_dataset
113
+ import json
114
 
115
+ # Load the full dataset (all 630 tasks, all 20 fields)
116
  dataset = load_dataset("Spatialworld/Spatialworld-bench", split="train")
117
 
118
+ # Access a task - all fields are available
119
  task = dataset[0]
120
+ print(f"Task: {task['task_id']} ({task['platform']})")
121
+ print(f"Instruction: {task['instruction']}")
122
+ print(f"Scene: {task['scene']}")
123
+
124
+ # Parse JSON-encoded fields
125
+ golden_actions = json.loads(task["golden_actions"])
126
+ success_conditions = json.loads(task["success_conditions"])
127
+ target_objects = json.loads(task["target_object_types"])
128
+
129
+ # Platform-specific fields (null if not applicable)
130
+ print(f"Category: {task['Category']}") # Only for ai2thor/procthor
131
+ print(f"Executor: {task['executor']}") # Only for carla/virtualhome
132
  ```
133
 
134
+ ### Dataset Schema
135
+
136
+ | Field | Type | Description | Platforms |
137
+ |-------|------|-------------|-----------|
138
+ | `task_id` | string | Unique identifier | All |
139
+ | `task_name` | string | Human-readable name | All |
140
+ | `platform` | string | Platform name | All |
141
+ | `instruction` | string | Natural language instruction | All |
142
+ | `scene` | string | Scene identifier | ai2thor, carla, virtualhome |
143
+ | `max_steps` | int | Maximum steps | All |
144
+ | `golden_actions` | string (JSON) | Action sequence | All |
145
+ | `success_conditions` | string (JSON) | Success criteria | All |
146
+ | `target_object_types` | string (JSON) | Target objects | ai2thor, procthor |
147
+ | `success_logic` | string | AND/OR logic | ai2thor, procthor |
148
+ | `target_description` | string | Detailed description | ai2thor, procthor |
149
+ | `Category` | string | Task category | ai2thor, procthor |
150
+ | `Evaluation_Type` | string | Evaluation type | ai2thor, procthor |
151
+ | `Level` | string | Difficulty level | ai2thor, procthor |
152
+ | `executor` | string | Executor type | carla, virtualhome |
153
+ | `image_url` | string | Image path | carla, virtualhome |
154
+ | `input_modality` | string | Input type | carla, virtualhome |
155
+ | `origin_location` | bool | Origin flag | carla, virtualhome |
156
+ | `scene_index` | int | Scene number | procthor |
157
+ | `weather` | string | Weather condition | carla, virtualhome |
158
+
159
  ### Loading Original Tasks (Local)
160
 
161
  For full benchmark with original JSON structures: