Datasets:
Dataset card in the GameCrafter style
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
pretty_name: MaLiang
|
| 3 |
license: other
|
| 4 |
license_name: research-only
|
| 5 |
size_categories:
|
|
@@ -27,29 +27,54 @@ configs:
|
|
| 27 |
path: "data/v9_stylized/*/*/frames-*.tar"
|
| 28 |
---
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
| 37 |
-
(`code/gc25d/prep_v10.py`: VAE latents, integer class maps and metadata per 81-frame clip); the released
|
| 38 |
-
checkpoints are in [`15y6u87/MaLiang`](https://huggingface.co/15y6u87/MaLiang). The data were captured as
|
| 39 |
-
**GameCrafter v10 Paired Data (capsule characters)**, described below.
|
| 40 |
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
1. **Capsule characters in the labels (v9).** In `ids.png` the player (class 10) and the boss (class 11), with their weapons, are drawn as the articulated capsule proxies of the whitebox pass, not as mesh silhouettes. Every frame's json also stores the capsule segments (world cm, `v9.characters`), so the character condition can be redrawn by code without Unreal. `cond.png` is that condition, written for every frame: the semantic palette with the player / boss capsules shaded per role.
|
| 55 |
2. **Clips on a cut grid (v9).** Looks, cameras and episodes only change between frame `96k+80` and the next, and every run has exactly 50 clips of 81 frames starting at multiples of 96 (`clips_81.json`). **No clip contains a style, camera or episode change.** The 15 frames between two clips are not part of any clip (the first frame after a switch can still show unstreamed textures).
|
|
@@ -57,7 +82,7 @@ Each frame stores the rendered RGB, a pixel-aligned semantic id map, a structura
|
|
| 57 |
4. **`v9_stylized`: a new look per camera variant.** On top of the v8 cross-scene worlds, every camera variant (6–12 per run, always on the cut grid) gets a random RGB look (labels and whitebox unchanged): post-process style, material randomisation, render tier, texture mip bias, colour grade and outline.
|
| 58 |
5. **`v10_real`: photoreal biomes.** The authored set dressing is hidden and every look (one per clip, every 6 s of game time) re-scatters CC0 photo-scanned assets (Poly Haven) on the scene's walkable ground in one of 12 biome variants, with matching photo-scanned ground / slope materials, foliage season tint, snow / moss / dust / sand cover on the models, wetness and a light preset (including night and storm). The camera is a perspective telephoto (FOV 22–40°) with the same framing as the 2.5D camera.
|
| 59 |
|
| 60 |
-
## At a glance
|
| 61 |
|
| 62 |
| | `v10_real` | `v9_stylized` |
|
| 63 |
|---|---|---|
|
|
@@ -74,7 +99,7 @@ Each frame stores the rendered RGB, a pixel-aligned semantic id map, a structura
|
|
| 74 |
|
| 75 |
Previews: `previews/v10_real_preview.mp4` and `previews/v9_stylized_preview.mp4` show two clips of one run per scene (RGB | condition).
|
| 76 |
|
| 77 |
-
## Per-frame contents
|
| 78 |
|
| 79 |
Each frame is one WebDataset sample inside a tar shard; the key is the 6-digit frame index within its run.
|
| 80 |
|
|
@@ -86,7 +111,7 @@ Each frame is one WebDataset sample inside a tar shard; the key is the 6-digit f
|
|
| 86 |
| `{frame}.cond.png` | Condition image: semantic palette for the scene classes + player (blue) / boss (red) capsules shaded from the capsule segments |
|
| 87 |
| `{frame}.json` | Per-frame metadata: camera pose, `world_to_view`, `projection`, `world_to_clip`, `fov_x_deg` / `ortho_width_cm`, actors (role, state, health, position, velocity, bones with pixel positions), `action`, `episode`, `camera_variant`, `v9` (look, capsules) |
|
| 88 |
|
| 89 |
-
### Semantic classes
|
| 90 |
|
| 91 |
| id | class | id | class | id | class |
|
| 92 |
|---|---|---|---|---|---|
|
|
@@ -107,7 +132,7 @@ Pixel share (6 frames per run):
|
|
| 107 |
| boss | 0.9% | 1.1% |
|
| 108 |
| player | 0.7% | 0.9% |
|
| 109 |
|
| 110 |
-
## Index files per run
|
| 111 |
|
| 112 |
```
|
| 113 |
data/<subset>/<scene>/<run>/frames-000000.tar frames 0–1599 (WebDataset shard)
|
|
@@ -129,7 +154,7 @@ summary_v10.csv / summary_v10.json every run and the totals of both subsets
|
|
| 129 |
previews/ thumbs/ code/ preview reels, one thumbnail per run (RGB | semantic | condition), capture and post code
|
| 130 |
```
|
| 131 |
|
| 132 |
-
## Loading a clip
|
| 133 |
|
| 134 |
```python
|
| 135 |
import io, json, tarfile
|
|
@@ -161,7 +186,7 @@ ids = np.stack([np.asarray(Image.open(io.BytesIO(f["ids.png"]))) for f in clip]
|
|
| 161 |
act = blocks[s // 4 : s // 4 + 20] # (20,5) one prompt per 0.25 s
|
| 162 |
```
|
| 163 |
|
| 164 |
-
## `v10_real`: biomes and light
|
| 165 |
|
| 166 |
Every clip has its own biome variant and light preset (`look_name` = `photo|<light>|<biome>|pbr|no`).
|
| 167 |
|
|
@@ -191,7 +216,7 @@ Every clip has its own biome variant and light preset (`look_name` = `photo|<lig
|
|
| 191 |
| `storm` | 396 | 6.8% |
|
| 192 |
| `night` | 219 | 3.8% |
|
| 193 |
|
| 194 |
-
## `v9_stylized`: looks
|
| 195 |
|
| 196 |
`look_name` = `<post style>|<materials>|<render tier>|<mip bias>|<outline>`.
|
| 197 |
|
|
@@ -223,7 +248,7 @@ Every clip has its own biome variant and light preset (`look_name` = `photo|<lig
|
|
| 223 |
| `unlit` | 737 | 10.5% |
|
| 224 |
| `noshadow` | 712 | 10.2% |
|
| 225 |
|
| 226 |
-
## Behaviour
|
| 227 |
|
| 228 |
Share of frames by bot mode:
|
| 229 |
|
|
@@ -259,25 +284,37 @@ Frames with no key held: 22.5% (`v9_stylized`), 24.2% (`v10_real`).
|
|
| 259 |
|
| 260 |
\* Share of frames in which the bot is fighting or retreating.
|
| 261 |
|
| 262 |
-
## Capture details
|
| 263 |
|
| 264 |
- Unreal Engine 5.8, the 10 GameCrafter scenes. Offline fixed-timestep simulation at 48 Hz, every 3rd step saved: 16 fps of game time independent of wall-clock speed.
|
| 265 |
- The bot plays through the player's own input path (WASD + attack), explores, seeks and fights the boss, dies and respawns (a new episode). Decisions are made every 4 frames.
|
| 266 |
- `v9_stylized` was captured on 2026-10-20, `v10_real` on 2026-10-22 (after a fix of the moss cover material; two earlier runs with a flat moss colour are not included).
|
| 267 |
|
| 268 |
-
## Known limitations
|
| 269 |
|
| 270 |
- **Same 10 host scenes and layouts.** `v10_real` replaces the set dressing and materials but keeps each scene's walkable ground and routes.
|
| 271 |
- **`v10_real` has no dynamic events**, and its semantic maps are dominated by terrain.
|
| 272 |
- **RGB-only stylisation in `v9_stylized`.** Styles, outlines and material swaps exist only in the RGB; the labels, whitebox and condition show the plain scene.
|
| 273 |
- **Frames between clips.** The 15 frames after each clip may contain a look switch; use `clips_81.json` instead of slicing runs freely.
|
| 274 |
|
| 275 |
-
##
|
| 276 |
|
| 277 |
-
Research use only.
|
| 278 |
|
| 279 |
-
-
|
| 280 |
-
|
| 281 |
-
-
|
|
|
|
| 282 |
|
| 283 |
If you are a rights holder and want something removed, please open a discussion on this repository.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: MaLiang Data
|
| 3 |
license: other
|
| 4 |
license_name: research-only
|
| 5 |
size_categories:
|
|
|
|
| 27 |
path: "data/v9_stylized/*/*/frames-*.tar"
|
| 28 |
---
|
| 29 |
|
| 30 |
+
<div align="center">
|
| 31 |
|
| 32 |
+
# MaLiang: Painting Playable Game Worlds from Numbers
|
| 33 |
|
| 34 |
+
**The raw game recordings used to train MaLiang: 256 runs, 1.23 M labelled frames, 21.3 h**
|
| 35 |
|
| 36 |
+
[Zhiyang Deng](https://teawhite.cn/)<sup>1,2,*</sup>, [Shushan Xu](https://github.com/sylvana20)<sup>1,3,*</sup>, [Yeying Jin](https://github.com/jinyeying)<sup>1,2,♢</sup>
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
+
<sup>1</sup>Tencent, <sup>2</sup>National University of Singapore, <sup>3</sup>Nanyang Technological University
|
| 39 |
|
| 40 |
+
<sup>*</sup>Equal contribution · <sup>♢</sup>Corresponding author and project leader
|
| 41 |
|
| 42 |
+
[**Project page**](https://sylvana20.github.io/maliang/) · [**Code**](https://github.com/YeyingLab/MaLiang) · [**Model**](https://huggingface.co/15y6u87/MaLiang)
|
| 43 |
+
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
|
| 48 |
+
MaLiang renders a playable game world directly from the game state: the game hands a video model one integer per pixel, and the model paints the world in real time. This repository holds the paired recordings the model is trained on. A bot plays boss fights in ten Unreal Engine scenes; every frame stores the rendered RGB, a pixel-aligned integer class map, a white-box render, a condition image, the player's action and per-frame camera and character metadata. The code repository turns them into the training cache (`code/gc25d/prep_v10.py`).
|
| 49 |
|
| 50 |
+

|
| 51 |
|
| 52 |
+
## Subsets
|
| 53 |
+
|
| 54 |
+
| Subset | What it is | Runs | Frames | Game time | 81-frame clips | Size |
|
| 55 |
+
|---|---|---|---|---|---|---|
|
| 56 |
+
| `v10_real` | photoreal outdoor biomes, perspective telephoto camera | 116 | 556,800 | 9.67 h | 5,800 | 244 GB |
|
| 57 |
+
| `v9_stylized` | the ten scenes as cross-scene worlds, a random rendering style per camera variant | 140 | 672,000 | 11.67 h | 7,000 | 239 GB |
|
| 58 |
+
| **total** | | **256** | **1,228,800** | **21.33 h** | **12,800** | **482 GB** |
|
| 59 |
+
|
| 60 |
+
Frames are 1280×704 at 16 fps of game time, stored as WebDataset tar shards of 1,600 frames (`data/<subset>/<scene>/<run>/frames-*.tar`) with per-run index files. `summary_v10.csv` lists every run. For MaLiang the recordings are cut into 11,955 training clips (1,893 with boss attack effects added) and 100 held-out test clips.
|
| 61 |
+
|
| 62 |
+
## Download
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
# one run (about 2.4 GB)
|
| 66 |
+
hf download 15y6u87/MaLiang-Data --repo-type dataset --include "data/v10_real/05_Japanese_Spring_Sanctuary/R10_s5501/*" --local-dir MaLiang-Data
|
| 67 |
+
# one subset
|
| 68 |
+
hf download 15y6u87/MaLiang-Data --repo-type dataset --include "data/v10_real/*" --local-dir MaLiang-Data
|
| 69 |
+
# everything (about 482 GB)
|
| 70 |
+
hf download 15y6u87/MaLiang-Data --repo-type dataset --local-dir MaLiang-Data
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
Then follow *Data* in the [code README](https://github.com/YeyingLab/MaLiang#-data) to build the training cache.
|
| 74 |
+
|
| 75 |
+
## Data format
|
| 76 |
+
|
| 77 |
+
### What changed since v8
|
| 78 |
|
| 79 |
1. **Capsule characters in the labels (v9).** In `ids.png` the player (class 10) and the boss (class 11), with their weapons, are drawn as the articulated capsule proxies of the whitebox pass, not as mesh silhouettes. Every frame's json also stores the capsule segments (world cm, `v9.characters`), so the character condition can be redrawn by code without Unreal. `cond.png` is that condition, written for every frame: the semantic palette with the player / boss capsules shaded per role.
|
| 80 |
2. **Clips on a cut grid (v9).** Looks, cameras and episodes only change between frame `96k+80` and the next, and every run has exactly 50 clips of 81 frames starting at multiples of 96 (`clips_81.json`). **No clip contains a style, camera or episode change.** The 15 frames between two clips are not part of any clip (the first frame after a switch can still show unstreamed textures).
|
|
|
|
| 82 |
4. **`v9_stylized`: a new look per camera variant.** On top of the v8 cross-scene worlds, every camera variant (6–12 per run, always on the cut grid) gets a random RGB look (labels and whitebox unchanged): post-process style, material randomisation, render tier, texture mip bias, colour grade and outline.
|
| 83 |
5. **`v10_real`: photoreal biomes.** The authored set dressing is hidden and every look (one per clip, every 6 s of game time) re-scatters CC0 photo-scanned assets (Poly Haven) on the scene's walkable ground in one of 12 biome variants, with matching photo-scanned ground / slope materials, foliage season tint, snow / moss / dust / sand cover on the models, wetness and a light preset (including night and storm). The camera is a perspective telephoto (FOV 22–40°) with the same framing as the 2.5D camera.
|
| 84 |
|
| 85 |
+
### At a glance
|
| 86 |
|
| 87 |
| | `v10_real` | `v9_stylized` |
|
| 88 |
|---|---|---|
|
|
|
|
| 99 |
|
| 100 |
Previews: `previews/v10_real_preview.mp4` and `previews/v9_stylized_preview.mp4` show two clips of one run per scene (RGB | condition).
|
| 101 |
|
| 102 |
+
### Per-frame contents
|
| 103 |
|
| 104 |
Each frame is one WebDataset sample inside a tar shard; the key is the 6-digit frame index within its run.
|
| 105 |
|
|
|
|
| 111 |
| `{frame}.cond.png` | Condition image: semantic palette for the scene classes + player (blue) / boss (red) capsules shaded from the capsule segments |
|
| 112 |
| `{frame}.json` | Per-frame metadata: camera pose, `world_to_view`, `projection`, `world_to_clip`, `fov_x_deg` / `ortho_width_cm`, actors (role, state, health, position, velocity, bones with pixel positions), `action`, `episode`, `camera_variant`, `v9` (look, capsules) |
|
| 113 |
|
| 114 |
+
#### Semantic classes
|
| 115 |
|
| 116 |
| id | class | id | class | id | class |
|
| 117 |
|---|---|---|---|---|---|
|
|
|
|
| 132 |
| boss | 0.9% | 1.1% |
|
| 133 |
| player | 0.7% | 0.9% |
|
| 134 |
|
| 135 |
+
### Index files per run
|
| 136 |
|
| 137 |
```
|
| 138 |
data/<subset>/<scene>/<run>/frames-000000.tar frames 0–1599 (WebDataset shard)
|
|
|
|
| 154 |
previews/ thumbs/ code/ preview reels, one thumbnail per run (RGB | semantic | condition), capture and post code
|
| 155 |
```
|
| 156 |
|
| 157 |
+
### Loading a clip
|
| 158 |
|
| 159 |
```python
|
| 160 |
import io, json, tarfile
|
|
|
|
| 186 |
act = blocks[s // 4 : s // 4 + 20] # (20,5) one prompt per 0.25 s
|
| 187 |
```
|
| 188 |
|
| 189 |
+
### `v10_real`: biomes and light
|
| 190 |
|
| 191 |
Every clip has its own biome variant and light preset (`look_name` = `photo|<light>|<biome>|pbr|no`).
|
| 192 |
|
|
|
|
| 216 |
| `storm` | 396 | 6.8% |
|
| 217 |
| `night` | 219 | 3.8% |
|
| 218 |
|
| 219 |
+
### `v9_stylized`: looks
|
| 220 |
|
| 221 |
`look_name` = `<post style>|<materials>|<render tier>|<mip bias>|<outline>`.
|
| 222 |
|
|
|
|
| 248 |
| `unlit` | 737 | 10.5% |
|
| 249 |
| `noshadow` | 712 | 10.2% |
|
| 250 |
|
| 251 |
+
### Behaviour
|
| 252 |
|
| 253 |
Share of frames by bot mode:
|
| 254 |
|
|
|
|
| 284 |
|
| 285 |
\* Share of frames in which the bot is fighting or retreating.
|
| 286 |
|
| 287 |
+
### Capture details
|
| 288 |
|
| 289 |
- Unreal Engine 5.8, the 10 GameCrafter scenes. Offline fixed-timestep simulation at 48 Hz, every 3rd step saved: 16 fps of game time independent of wall-clock speed.
|
| 290 |
- The bot plays through the player's own input path (WASD + attack), explores, seeks and fights the boss, dies and respawns (a new episode). Decisions are made every 4 frames.
|
| 291 |
- `v9_stylized` was captured on 2026-10-20, `v10_real` on 2026-10-22 (after a fix of the moss cover material; two earlier runs with a flat moss colour are not included).
|
| 292 |
|
| 293 |
+
### Known limitations
|
| 294 |
|
| 295 |
- **Same 10 host scenes and layouts.** `v10_real` replaces the set dressing and materials but keeps each scene's walkable ground and routes.
|
| 296 |
- **`v10_real` has no dynamic events**, and its semantic maps are dominated by terrain.
|
| 297 |
- **RGB-only stylisation in `v9_stylized`.** Styles, outlines and material swaps exist only in the RGB; the labels, whitebox and condition show the plain scene.
|
| 298 |
- **Frames between clips.** The 15 frames after each clip may contain a look switch; use `clips_81.json` instead of slicing runs freely.
|
| 299 |
|
| 300 |
+
## License and third-party content
|
| 301 |
|
| 302 |
+
Research use only. The recordings combine content under different terms, and this release does not relicense any third-party content:
|
| 303 |
|
| 304 |
+
- **Unreal Engine** and the UE template content in the capture projects are Epic Games content, used under the Unreal Engine EULA.
|
| 305 |
+
- **Scenes** are the [GameCrafter](https://huggingface.co/datasets/teawhite/GameCrafter) worlds; their generated meshes and images follow their providers' terms.
|
| 306 |
+
- **Player and boss character models** follow the terms of their sources.
|
| 307 |
+
- **Photoreal biomes** (`v10_real`) re-scatter CC0 photo-scanned assets and materials from Poly Haven.
|
| 308 |
|
| 309 |
If you are a rights holder and want something removed, please open a discussion on this repository.
|
| 310 |
+
|
| 311 |
+
## Citation
|
| 312 |
+
|
| 313 |
+
```bibtex
|
| 314 |
+
@misc{maliang2026,
|
| 315 |
+
title = {MaLiang: Painting Playable Game Worlds from Numbers},
|
| 316 |
+
author = {Deng, Zhiyang and Xu, Shushan and Jin, Yeying},
|
| 317 |
+
year = {2026},
|
| 318 |
+
url = {https://github.com/YeyingLab/MaLiang}
|
| 319 |
+
}
|
| 320 |
+
```
|