Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -35,42 +35,35 @@ SpatialWorld is a comprehensive benchmark designed to evaluate spatial reasoning
|
|
| 35 |
|
| 36 |
## ๐ Dataset Statistics
|
| 37 |
|
| 38 |
-
This Hugging Face repository contains the
|
| 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 |
|
| 46 |
-
| **Total** | **
|
| 47 |
|
| 48 |
## ๐๏ธ Repository Structure
|
| 49 |
|
| 50 |
```
|
| 51 |
-
spatialworld.jsonl # Unified dataset (588 tasks, 20 columns)
|
| 52 |
-
benchmark
|
| 53 |
-
|
| 54 |
-
โโโ carla/
|
| 55 |
-
โโโ procthor/
|
| 56 |
-
โโโ virtualhome/
|
| 57 |
-
โโโ embodiedcity/
|
| 58 |
-
โโโ game/
|
| 59 |
-
โโโ shared/
|
| 60 |
-
README.md # This file
|
| 61 |
```
|
| 62 |
|
| 63 |
Two versions of the data are provided:
|
| 64 |
|
| 65 |
-
1. **`spatialworld.jsonl`** (Unified): All 588 tasks in a unified schema with 20 columns. HF Dataset Viewer parses this file.
|
| 66 |
- Schema differences handled by including all possible fields
|
| 67 |
- Missing fields use `null`
|
| 68 |
- Complex nested structures encoded as JSON strings
|
| 69 |
- Actions converted to Unified Action Space format
|
| 70 |
|
| 71 |
-
2. **`benchmark
|
| 72 |
-
-
|
| 73 |
-
-
|
| 74 |
|
| 75 |
## ๐ฎ Unified Action Space
|
| 76 |
|
|
@@ -171,6 +164,39 @@ print(f"Executor: {task['executor']}") # Only for carla/virtualhome
|
|
| 171 |
| `scene_index` | int | Scene number | procthor |
|
| 172 |
| `weather` | string | Weather condition | carla, virtualhome |
|
| 173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
### Loading Original Tasks (Local)
|
| 175 |
|
| 176 |
For full benchmark with original JSON structures:
|
|
|
|
| 35 |
|
| 36 |
## ๐ Dataset Statistics
|
| 37 |
|
| 38 |
+
This Hugging Face repository contains the **SpatialWorld Benchmark** with 588 tasks in the unified dataset:
|
| 39 |
|
| 40 |
+
| Platform | Unified Tasks | Full Dataset (benchmark.zip) | Task Types | Unique Fields |
|
| 41 |
+
|----------|---------------|------------------------------|------------|---------------|
|
| 42 |
+
| AI2Thor | 343 | 2,500+ | Object manipulation, navigation | Category, Evaluation_Type, Level |
|
| 43 |
+
| CARLA | 80 | 80 | Urban navigation, traffic scenarios | executor, image_url, input_modality, origin_location, weather |
|
| 44 |
+
| ProcTHOR | 127 | 127 | Indoor navigation, household tasks | scene_index, Category, Evaluation_Type, Level |
|
| 45 |
+
| VirtualHome | 38 | 38 | Multi-agent household activities | executor, image_url, input_modality, origin_location, weather |
|
| 46 |
+
| **Total** | **588** | **~2,745** | Multi-platform spatial reasoning | **20 fields total** |
|
| 47 |
|
| 48 |
## ๐๏ธ Repository Structure
|
| 49 |
|
| 50 |
```
|
| 51 |
+
spatialworld-test.jsonl # Unified dataset (588 tasks, 20 columns)
|
| 52 |
+
benchmark.zip # Full original dataset (8695 files, ~1GB)
|
| 53 |
+
README.md # This file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
```
|
| 55 |
|
| 56 |
Two versions of the data are provided:
|
| 57 |
|
| 58 |
+
1. **`spatialworld-test.jsonl`** (Unified): All 588 tasks in a unified schema with 20 columns. HF Dataset Viewer parses this file.
|
| 59 |
- Schema differences handled by including all possible fields
|
| 60 |
- Missing fields use `null`
|
| 61 |
- Complex nested structures encoded as JSON strings
|
| 62 |
- Actions converted to Unified Action Space format
|
| 63 |
|
| 64 |
+
2. **`benchmark.zip`** (Full Original Dataset): Complete raw task.json files (~1GB, 8695 files).
|
| 65 |
+
- Download and unzip to get the original folder structure: `benchmark/ai2thor/`, `benchmark/carla/`, `benchmark/procthor/`, `benchmark/virtualhome/`
|
| 66 |
+
- Use this if you need the original JSON format with platform-specific structures
|
| 67 |
|
| 68 |
## ๐ฎ Unified Action Space
|
| 69 |
|
|
|
|
| 164 |
| `scene_index` | int | Scene number | procthor |
|
| 165 |
| `weather` | string | Weather condition | carla, virtualhome |
|
| 166 |
|
| 167 |
+
### Downloading Full Original Dataset
|
| 168 |
+
|
| 169 |
+
The complete original benchmark data (~1GB, 8695 files) is available in `benchmark.zip`:
|
| 170 |
+
|
| 171 |
+
**Option 1: Using Hugging Face Hub**
|
| 172 |
+
```python
|
| 173 |
+
from huggingface_hub import hf_hub_download
|
| 174 |
+
import zipfile
|
| 175 |
+
|
| 176 |
+
# Download benchmark.zip
|
| 177 |
+
zip_path = hf_hub_download(
|
| 178 |
+
repo_id="Spatialworld/Spatialworld-bench",
|
| 179 |
+
filename="benchmark.zip",
|
| 180 |
+
repo_type="dataset",
|
| 181 |
+
local_dir="./"
|
| 182 |
+
)
|
| 183 |
+
|
| 184 |
+
# Extract
|
| 185 |
+
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
| 186 |
+
zip_ref.extractall("./benchmark")
|
| 187 |
+
|
| 188 |
+
print("Full benchmark extracted to ./benchmark/")
|
| 189 |
+
```
|
| 190 |
+
|
| 191 |
+
**Option 2: Direct Download**
|
| 192 |
+
```bash
|
| 193 |
+
wget https://huggingface.co/datasets/Spatialworld/Spatialworld-bench/resolve/main/benchmark.zip
|
| 194 |
+
unzip benchmark.zip -d benchmark/
|
| 195 |
+
```
|
| 196 |
+
|
| 197 |
+
**Option 3: Web Interface**
|
| 198 |
+
Visit https://huggingface.co/datasets/Spatialworld/Spatialworld-bench โ Files and versions โ download `benchmark.zip`
|
| 199 |
+
|
| 200 |
### Loading Original Tasks (Local)
|
| 201 |
|
| 202 |
For full benchmark with original JSON structures:
|