Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- video-classification
|
| 5 |
+
- reinforcement-learning
|
| 6 |
+
tags:
|
| 7 |
+
- world-model
|
| 8 |
+
- nes
|
| 9 |
+
- super-mario-bros
|
| 10 |
+
- game-ai
|
| 11 |
+
size_categories:
|
| 12 |
+
- 100K<n<1M
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# SMB World Model Training Data
|
| 16 |
+
|
| 17 |
+
Training data for a Super Mario Bros world model using the Titan memory architecture.
|
| 18 |
+
|
| 19 |
+
## Dataset Description
|
| 20 |
+
|
| 21 |
+
- **118,166 frames** from 8 TAS (Tool-Assisted Speedrun) playthroughs
|
| 22 |
+
- **Frame size:** 224x256x3 (RGB)
|
| 23 |
+
- **Action space:** 8 buttons [Up, Down, Left, Right, A, B, Start, Select]
|
| 24 |
+
- **Format:** Compressed `.npz` files (each contains frame + action bundled together)
|
| 25 |
+
- **Total size:** ~293MB (compressed)
|
| 26 |
+
|
| 27 |
+
## TAS Files Used
|
| 28 |
+
|
| 29 |
+
| TAS File | Description |
|
| 30 |
+
|----------|-------------|
|
| 31 |
+
| smb_all_items | Collects all items |
|
| 32 |
+
| smb_low_percent | Minimal item collection |
|
| 33 |
+
| smb_max_coins | Maximum coins |
|
| 34 |
+
| smb_max_score | Maximum score |
|
| 35 |
+
| smb_min_a_presses | Minimal A button presses |
|
| 36 |
+
| smb_scoreless | Zero score run |
|
| 37 |
+
| smb_warpless | No warp zones |
|
| 38 |
+
| smb_warps | Using warp zones |
|
| 39 |
+
|
| 40 |
+
## Data Format
|
| 41 |
+
|
| 42 |
+
Each `.npz` file contains:
|
| 43 |
+
```python
|
| 44 |
+
data = np.load("frame_000000.npz")
|
| 45 |
+
frame = data['frame'] # shape: (224, 256, 3), dtype: uint8
|
| 46 |
+
action = data['action'] # shape: (8,), dtype: float32
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
Action order: `[Up, Down, Left, Right, A, B, Start, Select]`
|
| 50 |
+
|
| 51 |
+
## Usage
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
from huggingface_hub import hf_hub_download
|
| 55 |
+
import zipfile
|
| 56 |
+
|
| 57 |
+
# Download
|
| 58 |
+
path = hf_hub_download(
|
| 59 |
+
repo_id="DylanRiden/smb-worldmodel-data",
|
| 60 |
+
filename="smb_frames.zip",
|
| 61 |
+
repo_type="dataset"
|
| 62 |
+
)
|
| 63 |
+
|
| 64 |
+
# Extract
|
| 65 |
+
with zipfile.ZipFile(path, 'r') as z:
|
| 66 |
+
z.extractall("./nes_data")
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
## Collection Method
|
| 70 |
+
|
| 71 |
+
- Emulator: FCEUX with Lua scripting
|
| 72 |
+
- Frame skip: Every 4th frame (15fps from 60fps)
|
| 73 |
+
- Menu skip: First 250 frames skipped
|
| 74 |
+
- Real-time conversion to bundled `.npz` format
|
| 75 |
+
|
| 76 |
+
## License
|
| 77 |
+
|
| 78 |
+
MIT
|