15y6u87 commited on
Commit
0a4e911
·
verified ·
1 Parent(s): cec843c

Dataset card: concise GameCrafter-style layout, scene image

Browse files
Files changed (1) hide show
  1. README.md +20 -143
README.md CHANGED
@@ -47,17 +47,17 @@ configs:
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
- ![Data overview](https://huggingface.co/datasets/15y6u87/MaLiang-Data/resolve/main/assets/overview.jpg)
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
 
@@ -72,32 +72,7 @@ hf download 15y6u87/MaLiang-Data --repo-type dataset --local-dir MaLiang-Data
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).
81
- 3. **Closer camera.** The frame is 900–1600 cm wide at the player (12% of views 2000–3000 cm). In `v10_real` the player always stays in the centre of the image and the boss may leave the frame; in `v9_stylized` the camera eases towards the player–boss midpoint during fights, and `clips_81.json` marks the clips whose camera never left the player (`centered`).
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
- |---|---|---|
89
- | Runs | 116 × 5 min (4,800 frames) | 140 × 5 min (4,800 frames) |
90
- | Frames / game time | 556,800 / 9.67 h | 672,000 / 11.67 h |
91
- | 81-frame clips (frames inside clips) | 5,800 (8.16 h) | 7,000 (9.84 h) |
92
- | Camera | perspective telephoto, FOV 22–40° | isometric orthographic |
93
- | Looks | a new biome / light / camera every 6 s (one per clip) | 6–12 per run, one per camera variant |
94
- | Dynamic events | none | 6,096 (spawn / replace / delete) |
95
- | Clips with the player centred on every frame | 5,800 | 4,305 |
96
- | Episodes | 925 | 1,124 |
97
- | Label check | 0 invalid semantic pixels | 0 invalid semantic pixels |
98
- | Resolution | 1280 × 704 | 1280 × 704 |
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
 
@@ -109,7 +84,7 @@ Each frame is one WebDataset sample inside a tar shard; the key is the 6-digit f
109
  | `{frame}.ids.png` | Semantic id map, single-channel uint8, lossless, pixel-aligned with the RGB; player / boss as capsules |
110
  | `{frame}.whitebox.jpg` | Whitebox render: structural scene geometry plus the articulated character capsules |
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
 
@@ -131,7 +106,13 @@ Pixel share (6 frames per run):
131
  | prop | 3.0% | 0.0% |
132
  | boss | 0.9% | 1.1% |
133
  | player | 0.7% | 0.9% |
 
134
 
 
 
 
 
 
135
  ### Index files per run
136
 
137
  ```
@@ -145,16 +126,16 @@ data/<subset>/<scene>/<run>/index/
145
  actions.csv per-frame actions, bot mode, player / boss state and HP, character model and scale
146
  frames.jsonl compact per-frame metadata
147
  clips_81.json the 50 cut-grid clips: start, end (exclusive), episode, camera_variant, look, look_name, events
148
- clips_81_v9.json the capture's own clip list (end inclusive)
149
  events.json dynamic events of the run (v9_stylized only)
150
- meta.json run statistics (looks, behaviour, characters, v10 biome variants)
151
  capture_result.json capture settings and the per-look log
152
  scene_actors.json static-mesh inventory of the host scene
153
  summary_v10.csv / summary_v10.json every run and the totals of both subsets
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,116 +167,12 @@ ids = np.stack([np.asarray(Image.open(io.BytesIO(f["ids.png"]))) for f in clip]
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
-
193
- | Biome variant | Clips | Share |
194
- |---|---|---|
195
- | `rain_wetland` | 500 | 8.6% |
196
- | `dry_savanna` | 495 | 8.5% |
197
- | `rocky_coast` | 495 | 8.5% |
198
- | `sand_beach` | 487 | 8.4% |
199
- | `snow_alpine` | 486 | 8.4% |
200
- | `spring_meadow` | 485 | 8.4% |
201
- | `semi_desert` | 480 | 8.3% |
202
- | `red_canyon` | 479 | 8.3% |
203
- | `conifer_forest` | 474 | 8.2% |
204
- | `rock_badlands` | 474 | 8.2% |
205
- | `autumn_wood` | 473 | 8.2% |
206
- | `mossy_oldwood` | 472 | 8.1% |
207
-
208
- | Light preset | Clips | Share |
209
- |---|---|---|
210
- | `overcast` | 997 | 17.2% |
211
- | `golden` | 989 | 17.1% |
212
- | `dusk` | 840 | 14.5% |
213
- | `backlit` | 821 | 14.2% |
214
- | `noon` | 777 | 13.4% |
215
- | `mist` | 761 | 13.1% |
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
-
223
- | Post-process style | Clips | Share |
224
- |---|---|---|
225
- | `none` | 2,565 | 36.6% |
226
- | `sketch` | 578 | 8.3% |
227
- | `pixel` | 564 | 8.1% |
228
- | `comic` | 520 | 7.4% |
229
- | `toon` | 508 | 7.3% |
230
- | `duotone` | 487 | 7.0% |
231
- | `soft` | 477 | 6.8% |
232
- | `paint` | 466 | 6.7% |
233
- | `dither` | 419 | 6.0% |
234
- | `hue` | 416 | 5.9% |
235
-
236
- | Materials | Clips | Share |
237
- |---|---|---|
238
- | `orig` | 3,331 | 47.6% |
239
- | `tex` | 1,261 | 18.0% |
240
- | `flat` | 876 | 12.5% |
241
- | `mixed` | 838 | 12.0% |
242
- | `shuffle` | 694 | 9.9% |
243
-
244
- | Render tier | Clips | Share |
245
- |---|---|---|
246
- | `full` | 4,239 | 60.6% |
247
- | `nogi` | 1,312 | 18.7% |
248
- | `unlit` | 737 | 10.5% |
249
- | `noshadow` | 712 | 10.2% |
250
-
251
- ### Behaviour
252
-
253
- Share of frames by bot mode:
254
-
255
- | Bot mode | `v9_stylized` | `v10_real` |
256
- |---|---|---|
257
- | explore | 36.3% | 43.2% |
258
- | fight | 15.9% | 18.4% |
259
- | seek_boss | 13.1% | 9.1% |
260
- | dead | 9.1% | 10.0% |
261
- | pause | 5.3% | 5.5% |
262
- | unstick | 6.3% | 1.6% |
263
- | detour | 3.8% | 4.0% |
264
- | retreat | 3.3% | 4.0% |
265
- | backtrack | 2.8% | 2.7% |
266
- | wallhug | 2.0% | 0.2% |
267
- | disengage | 0.9% | 1.3% |
268
- | push_obstacle | 1.0% | 0.1% |
269
-
270
- Frames with no key held: 22.5% (`v9_stylized`), 24.2% (`v10_real`).
271
-
272
- | Scene | `v9` runs | `v9` clips | `v10_real` runs | `v10_real` clips | `v10_real` fight share* |
273
- |---|---|---|---|---|---|
274
- | 01 Sunlit Mediterranean Courtyard | 15 | 750 | 12 | 600 | 17.1% |
275
- | 02 Autumn Woodland Shrine | 15 | 750 | 12 | 600 | 17.5% |
276
- | 03 Desert Caravanserai | 14 | 700 | 12 | 600 | 42.9% |
277
- | 04 Snowbound Mountain Outpost | 14 | 700 | 12 | 600 | 19.8% |
278
- | 05 Japanese Spring Sanctuary | 14 | 700 | 12 | 600 | 16.2% |
279
- | 06 Overgrown Tropical Water Temple | 14 | 700 | 12 | 600 | 21.9% |
280
- | 07 Steampunk Foundry District | 14 | 700 | 11 | 550 | 17.4% |
281
- | 08 Gothic Cathedral Quarter | 14 | 700 | 11 | 550 | 13.6% |
282
- | 09 Dense Cyberpunk Neon District | 14 | 700 | 11 | 550 | 28.5% |
283
- | 10 Underwater Research Habitat | 12 | 600 | 11 | 550 | 28.1% |
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
 
 
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
+ ![Ten scenes, two looks](https://huggingface.co/datasets/15y6u87/MaLiang-Data/resolve/main/assets/scenes.jpg)
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 with a random rendering style per camera view (sketch, comic, pixel, toon and more) | 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, and `previews/` shows two clips of one run per scene. 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
 
 
72
 
73
  Then follow *Data* in the [code README](https://github.com/YeyingLab/MaLiang#-data) to build the training cache.
74
 
75
+ ## What each run contains
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
  ### Per-frame contents
78
 
 
84
  | `{frame}.ids.png` | Semantic id map, single-channel uint8, lossless, pixel-aligned with the RGB; player / boss as capsules |
85
  | `{frame}.whitebox.jpg` | Whitebox render: structural scene geometry plus the articulated character capsules |
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`, look and character capsules |
88
 
89
  #### Semantic classes
90
 
 
106
  | prop | 3.0% | 0.0% |
107
  | boss | 0.9% | 1.1% |
108
  | player | 0.7% | 0.9% |
109
+ ### Semantic classes
110
 
111
+ | id | class | id | class | id | class |
112
+ |---|---|---|---|---|---|
113
+ | 0 | sky / background | 3 | architecture | 6 | prop |
114
+ | 1 | terrain (incl. grass, debris) | 4 | rock | 10 | player |
115
+ | 2 | paving (roads, floors) | 5 | vegetation (plants, trees, logs) | 11 | boss |
116
  ### Index files per run
117
 
118
  ```
 
126
  actions.csv per-frame actions, bot mode, player / boss state and HP, character model and scale
127
  frames.jsonl compact per-frame metadata
128
  clips_81.json the 50 cut-grid clips: start, end (exclusive), episode, camera_variant, look, look_name, events
129
+ clips_81_v9.json the capture's clip list (end inclusive)
130
  events.json dynamic events of the run (v9_stylized only)
131
+ meta.json run statistics (looks, behaviour, characters, biome variants)
132
  capture_result.json capture settings and the per-look log
133
  scene_actors.json static-mesh inventory of the host scene
134
  summary_v10.csv / summary_v10.json every run and the totals of both subsets
135
+ previews/ code/ preview reels (RGB | condition), capture and post-processing code
136
  ```
137
 
138
+ ## Loading a clip
139
 
140
  ```python
141
  import io, json, tarfile
 
167
  act = blocks[s // 4 : s // 4 + 20] # (20,5) one prompt per 0.25 s
168
  ```
169
 
170
+ ## Notes
171
 
172
+ - **Capture.** Unreal Engine 5.8, the ten GameCrafter scenes, fixed-timestep simulation at 48 Hz with every third step saved (16 fps of game time). A bot plays through the player's own input path (W A S D + attack): it explores, seeks and fights the boss, dies and respawns as a new episode.
173
+ - **Clean clips.** Looks, cameras and episodes change only between clips, so no 81-frame clip contains a style, camera or episode switch (`clips_81.json`). Use the clip list rather than slicing runs freely.
174
+ - **Characters in the labels.** The player (class 10) and the boss (class 11), with their weapons, are drawn as articulated capsules; the capsule segments are stored per frame, so the condition can be redrawn by code without Unreal.
175
+ - **Labels follow the plain scene.** In the stylised subset styles, outlines and material swaps exist only in the RGB; the photoreal subset replaces set dressing and materials but keeps each scene's walkable ground and routes.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
  ## License and third-party content
178