mignonjia commited on
Commit
6cc7778
·
verified ·
1 Parent(s): 332528d

Add multi3d_games dataset card

Browse files
Files changed (1) hide show
  1. README.md +150 -0
README.md ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ ---
4
+
5
+ # multi3d_games Latent Dataset
6
+
7
+ Partial Multi3D games latent dataset uploaded to
8
+ `mignonjia/multi3d_games`.
9
+
10
+ This dataset uses the expanded parquet layout rather than tar archive shards.
11
+ It contains latent/video-conditioning rows for four gameplay videos from
12
+ Horizon Forbidden West, Dark Souls Remastered, and Code Vein.
13
+
14
+ ## Layout
15
+
16
+ ```text
17
+ README.md
18
+ map_style_cache/file_info.pkl
19
+ action_latent/node1/manifest.jsonl
20
+ action_latent/node1/manifest.rankNNN.jsonl
21
+ action_latent/node1/dist_merged.ok
22
+ action_latent/node1/dist_done/rankNNN.done
23
+ action_latent/node1/combined_parquet_dataset/rankNNN/worker_0/*.parquet
24
+ ```
25
+
26
+ The uploaded repo contains one node (`node1`) split across 8 ranks:
27
+ `rank000` through `rank007`.
28
+
29
+ ## Size and Counts
30
+
31
+ - Total uploaded data size: about 224.7 GB
32
+ - Uploaded files: 1,715 data files plus `README.md` and `.gitattributes`
33
+ - Parquet files: 1,696
34
+ - Parquet rows / samples: 13,551
35
+ - Manifest rows:
36
+ - `manifest.jsonl`: 13,551 rows
37
+ - rank manifests: 13,551 rows total
38
+ - Rank parquet layout:
39
+ - `rank000`: 212 parquet files, 1,694 rows, 26.17 GiB
40
+ - `rank001`: 212 parquet files, 1,694 rows, 26.13 GiB
41
+ - `rank002`: 212 parquet files, 1,694 rows, 26.14 GiB
42
+ - `rank003`: 212 parquet files, 1,694 rows, 26.16 GiB
43
+ - `rank004`: 212 parquet files, 1,694 rows, 26.15 GiB
44
+ - `rank005`: 212 parquet files, 1,694 rows, 26.17 GiB
45
+ - `rank006`: 212 parquet files, 1,694 rows, 26.16 GiB
46
+ - `rank007`: 212 parquet files, 1,693 rows, 26.16 GiB
47
+
48
+ ## Source Videos
49
+
50
+ The rows come from four source videos:
51
+
52
+ | idx | video_id | game | rows | shard |
53
+ | --- | --- | --- | ---: | --- |
54
+ | 2246 | `KchWtQyuyvU` | Horizon Forbidden West | 3,396 | `SHARD_0006` |
55
+ | 8224 | `d_lTaTapecI` | Dark Souls Remastered | 3,969 | `SHARD_0026` |
56
+ | 12601 | `m2Nt3DVfYqk` | Code Vein | 1,847 | `SHARD_0040` |
57
+ | 18529 | `soS-p5-Oh7A` | Dark Souls Remastered | 4,339 | `SHARD_0059` |
58
+
59
+ ## Parquet Schema
60
+
61
+ Each parquet row stores byte arrays plus explicit shape and dtype metadata.
62
+ The main fields are:
63
+
64
+ - `id`: sample id, matching manifest ids
65
+ - `vae_latent_bytes`, `vae_latent_shape`, `vae_latent_dtype`
66
+ - `clip_feature_bytes`, `clip_feature_shape`, `clip_feature_dtype`
67
+ - `first_frame_latent_bytes`, `first_frame_latent_shape`,
68
+ `first_frame_latent_dtype`
69
+ - `mouse_cond_bytes`, `mouse_cond_shape`, `mouse_cond_dtype`
70
+ - `keyboard_cond_bytes`, `keyboard_cond_shape`, `keyboard_cond_dtype`
71
+ - `pil_image_bytes`, `pil_image_shape`, `pil_image_dtype`
72
+ - `file_name`, `caption`, `media_type`, `width`, `height`, `num_frames`,
73
+ `duration_sec`, `fps`
74
+
75
+ Example row metadata:
76
+
77
+ - `vae_latent_shape`: `[16, 21, 60, 104]`, dtype `float32`
78
+ - `first_frame_latent_shape`: `[16, 21, 60, 104]`, dtype `float32`
79
+ - `clip_feature_shape`: `[257, 1280]`, dtype `float32`
80
+ - `mouse_cond_shape`: `[81, 2]`, dtype `float32`
81
+ - `keyboard_cond_shape`: `[81, 6]`, dtype `float32`
82
+ - `media_type`: `video`
83
+ - `width`: 480
84
+ - `height`: 832
85
+ - `num_frames`: 21
86
+ - `duration_sec`: 2.7
87
+ - `fps`: 30.0
88
+
89
+ ## Processing Notes
90
+
91
+ - Source local root before upload:
92
+ `/mnt/weka/home/hao.zhang/alex/wm-lab/datas/datasets/multi3d-partial`
93
+ - The dataset was uploaded directly with `hf upload-large-folder`, preserving
94
+ the expanded parquet paths.
95
+ - The original local upload command used 8 workers and committed all
96
+ 1,715 files successfully.
97
+ - Multi3D mouse up/down convention was corrected before upload by flipping
98
+ `mouse_cond[:, 0]`.
99
+ - The mouse flip was validated over all 1,696 parquet files and 13,551 rows.
100
+ The final scan showed the expected swapped axis-0 sign counts relative to the
101
+ pre-flip baseline.
102
+
103
+ ## Download
104
+
105
+ Download the full dataset:
106
+
107
+ ```bash
108
+ hf download mignonjia/multi3d_games --repo-type dataset --local-dir multi3d_games
109
+ ```
110
+
111
+ Download one rank only:
112
+
113
+ ```bash
114
+ hf download mignonjia/multi3d_games \
115
+ --repo-type dataset \
116
+ --include 'action_latent/node1/combined_parquet_dataset/rank000/**' \
117
+ --local-dir multi3d_games_rank000
118
+ ```
119
+
120
+ ## Reading Arrays
121
+
122
+ The array fields are stored as raw bytes. Reconstruct them using the matching
123
+ `*_shape` and `*_dtype` columns:
124
+
125
+ ```python
126
+ import numpy as np
127
+ import pandas as pd
128
+
129
+ df = pd.read_parquet("action_latent/node1/combined_parquet_dataset/rank000/worker_0/data_chunk_0.parquet")
130
+ row = df.iloc[0]
131
+
132
+ vae = np.frombuffer(row["vae_latent_bytes"], dtype=np.dtype(row["vae_latent_dtype"]))
133
+ vae = vae.reshape(tuple(row["vae_latent_shape"]))
134
+
135
+ mouse = np.frombuffer(row["mouse_cond_bytes"], dtype=np.dtype(row["mouse_cond_dtype"]))
136
+ mouse = mouse.reshape(tuple(row["mouse_cond_shape"]))
137
+
138
+ keyboard = np.frombuffer(row["keyboard_cond_bytes"], dtype=np.dtype(row["keyboard_cond_dtype"]))
139
+ keyboard = keyboard.reshape(tuple(row["keyboard_cond_shape"]))
140
+ ```
141
+
142
+ ## Verification
143
+
144
+ - Hugging Face repo after upload contained 1,716 files:
145
+ `.gitattributes` plus 1,715 uploaded dataset files.
146
+ - Upload log final state:
147
+ - hashed: 1,715 / 1,715
148
+ - pre-uploaded: 1,697 / 1,697
149
+ - committed: 1,715 / 1,715
150
+ - committed bytes: 224.7 GB / 224.7 GB