Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -35,19 +35,20 @@ SpatialWorld is a comprehensive benchmark designed to evaluate spatial reasoning
|
|
| 35 |
|
| 36 |
## ๐ Dataset Statistics
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
| 41 |
-
|
|
| 42 |
-
|
|
| 43 |
-
|
|
| 44 |
-
|
|
| 45 |
-
|
|
|
|
|
| 46 |
|
| 47 |
## ๐๏ธ Repository Structure
|
| 48 |
|
| 49 |
```
|
| 50 |
-
benchmark/ # Full benchmark data
|
| 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/ #
|
| 60 |
-
|
|
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|