Upload README.md with huggingface_hub
Browse files
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
|
| 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 |
-
|
| 52 |
-
|
| 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
|
|
|
|
|
|
|
|
|
|
| 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
|
| 122 |
dataset = load_dataset("Spatialworld/Spatialworld-bench", split="train")
|
| 123 |
|
| 124 |
-
# Access a task
|
| 125 |
task = dataset[0]
|
| 126 |
-
print(task[
|
| 127 |
-
print(task[
|
| 128 |
-
print(task[
|
| 129 |
-
|
| 130 |
-
# Parse JSON fields
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
| 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:
|