yuzhewu207 commited on
Commit
141e4af
·
verified ·
1 Parent(s): bf24764

code/: mirror of wizard27-clean (README)

Browse files
code/README.md CHANGED
@@ -2,51 +2,72 @@
2
 
3
  # Wizard: Manipulate Any World in Real Time via Agentic Control
4
 
5
- **Training and inference code for the Wizard video generator**
 
 
 
6
 
7
  [![arXiv](https://img.shields.io/badge/arXiv-2610.40339-b31b1b.svg)](https://arxiv.org/abs/2610.40339)
8
  [![Project Page](https://img.shields.io/badge/Project-Page-4b8bbe.svg)](https://wyzardwu.github.io/wizard/)
9
  [![Weights & Data](https://img.shields.io/badge/%F0%9F%A4%97-Weights%20%26%20Data-ffcc4d.svg)](https://huggingface.co/datasets/yuzhewu207/wizard)
10
  [![Pre-encoded data](https://img.shields.io/badge/%F0%9F%A4%97-Pre--encoded%20data-ffcc4d.svg)](https://huggingface.co/datasets/yuzhewu207/wizard-precoded)
11
- ![Python](https://img.shields.io/badge/python-3.12-blue.svg)
12
- ![PyTorch](https://img.shields.io/badge/PyTorch-2.11-ee4c2c.svg)
13
 
14
  <img src="assets/teaser.jpg" width="92%">
15
 
 
 
 
16
  </div>
17
 
18
- Wizard turns any scene image and any character references into a playable, real-time game world. An agent keeps the
19
- game state (scene geometry, character skeletons, combat logic) and renders it into a **visual proxy**; a video model
20
- built on [Wan2.2-TI2V-5B](https://github.com/Wan-Video/Wan2.2) turns the proxy into game frames, streaming at
21
- **24 FPS with 2 denoising steps**.
 
22
 
23
- This repository contains the **video generator**: the four-stage training pipeline (bidirectional teacher → causal
24
- teacher → consistency distillation → DMD) and the three inference modes, including online world maintenance.
 
 
 
 
 
 
 
25
 
26
  ## Highlights
27
 
28
  - **Proxy-driven control.** Scene geometry and articulated skeletons are rendered into one condition video and
29
- concatenated with the video latents on the channels: precise camera and motion control, zero-shot to new scenes,
30
- characters and motions.
31
- - **Identity binding.** Each reference image is visible only inside its character's skeleton box.
32
  - **Geometry you can trust.** The proxy marks every pixel as *exact*, *coarse* or *unknown*; the model follows exact
33
- geometry and invents unknown regions.
34
- - **Spatial memory.** World-coordinate tokens and retrieved memory frames let the model redraw a place it has seen
35
- when the camera comes back.
36
- - **Real time.** A causal 2-step student with a KV cache (20-frame window + attention sink), distilled with history
37
- self-augmentation and DMD; the world is maintained online on a second GPU without blocking generation.
 
 
 
 
 
38
 
39
- ## What is new compared with the paper
40
 
41
- | | Paper (arXiv v1) | This release |
42
- |---|---|---|
43
- | Visual proxy | height / depth, G = 0 | + per-pixel tier (sky / unknown / coarse / exact) with normal shading, outlined skeletons, weapons, shields |
44
- | World tokens | – | world coordinates + tier, added to every video and memory token |
45
- | Memory | – | per-chunk retrieved memory frames, all characters hidden |
46
- | Causal training | teacher forcing → CD → DMD | + history self-augmentation; memory and world tokens in every stage |
47
- | Beyond the first view | invented terrain | marked *unknown*, then filled online from the generated frames |
48
 
49
- <div align="center"><img src="assets/architecture.jpg" width="100%"></div>
 
 
 
 
 
 
50
 
51
  ## Installation
52
 
@@ -56,84 +77,123 @@ conda create -n wizard python=3.12 -y && conda activate wizard
56
  pip install torch==2.11.0 torchvision --index-url https://download.pytorch.org/whl/cu128
57
  pip install -r requirements.txt
58
  pip install -e .
59
- ```
60
 
61
- `ffmpeg` must be on the `PATH`. Download the official [Wan2.2-TI2V-5B](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B)
62
- weights (VAE, T5 and tokenizer are used as-is) and point `WAN_CKPT` at the folder.
 
63
 
64
- Online world maintenance additionally needs [MapAnything](https://github.com/facebookresearch/map-anything); it can live
65
- in its own environment (see [docs/INFERENCE.md](docs/INFERENCE.md)).
 
66
 
67
  ## Quick start
68
 
69
  ```bash
70
- export WAN_CKPT=/path/to/Wan2.2-TI2V-5B
71
-
72
- # weights and three ready-made cases (first frame, proxy video, reference images, our outputs)
73
  huggingface-cli download yuzhewu207/wizard --repo-type dataset \
74
  --include "weights/causal_dmd/*" "examples/*" --local-dir hf_wizard
75
  C=hf_wizard/examples/fight_character_strikes_player
76
 
77
- # real-time 2-step student
78
  FRAMES=121 bash scripts/infer/run_case.sh causal hf_wizard/weights/causal_dmd/ema_step480.safetensors $C out.mp4 \
79
  --ref1 $C/ref_a.png --ref2 $C/ref_b.png --ref-slots 2,3
80
 
81
- # with an online-maintained 3D world (needs world_px.npz in the case); FAST=1 runs the maintenance on the second GPU
82
  CUDA_VISIBLE_DEVICES=0,1 FAST=1 bash scripts/infer/run_case.sh world <dit> <case> out.mp4
 
 
 
83
  ```
84
 
85
- Each run writes `out.mp4` (generation | proxy) and `out_gen.mp4` (generation only). The case format is described in
86
- [docs/DATA.md](docs/DATA.md).
87
 
88
- ## Training
89
 
90
- | Stage | Module | Script |
 
 
 
91
  |---|---|---|
92
- | 1. Bidirectional teacher | `wizard.train.bidirectional` | `scripts/train/1_bidirectional.sh` |
93
- | 2. Causal teacher (teacher forcing + history self-augmentation) | `wizard.train.causal_selfaug` | `scripts/train/2_causal.sh` |
94
- | 3. Consistency distillation | `wizard.distill.consistency_selfaug_future` | `scripts/train/3_consistency.sh` |
95
- | 4. Distribution matching distillation | `wizard.distill.dmd` | `scripts/train/4_dmd.sh` |
 
96
 
97
- Commands, hyper-parameters and the data layout: [docs/TRAINING.md](docs/TRAINING.md) and [docs/DATA.md](docs/DATA.md).
 
98
 
99
- ## Checkpoints
 
 
 
 
100
 
101
- All weights are DiT checkpoints fine-tuned from Wan2.2-TI2V-5B (the VAE and T5 are the official ones), in the `weights/` folder of [`yuzhewu207/wizard`](https://huggingface.co/datasets/yuzhewu207/wizard):
102
 
103
- | File | Model | Sampling |
104
- |---|---|---|
105
- | `causal_dmd/ema_step480.safetensors` | real-time 2-step student (stage 4, DMD), distilled from `bidirectional_main` (an earlier run of the chain; the student trained with the scripts below from `bidirectional` will replace it) | `causal` / `world`, 2 steps |
106
- | `causal_cd/ema_step10000.safetensors` | consistency-distilled student (stage 3) of that earlier run, the starting point of its DMD | `causal` / `world`, 2 steps |
107
- | `causal_teacher/dit_step11000.safetensors` | causal teacher (stage 2) | teacher of stage 3 |
108
- | `bidirectional_main/dit_step35000.safetensors` | bidirectional teacher (stage 1), the model of the paper's main table | `bidirectional`, 30 steps, CFG 3 |
109
- | `bidirectional/dit_step35000.safetensors` | bidirectional teacher trained with the world-edit clips as well | `bidirectional`, 30 steps, CFG 3 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
  ```bash
112
- huggingface-cli download yuzhewu207/wizard --repo-type dataset --include "weights/causal_dmd/*" --local-dir hf_wizard
 
 
 
 
113
  ```
114
 
115
- **Other base models.** The approach is not tied to Wan: the visual proxy, the reference binding and the training recipe carry over to other video backbones. We also trained it on [LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) (22B) as a LoRA; the weights are in [`weights/ltx25_lora/`](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/ltx25_lora) (an earlier proxy format without tiers or memory; its inference code, a modified LTX-2 pipeline with the reference-image conditioning, is not part of this repository).
116
-
117
- ## Data
 
 
 
118
 
119
- - **Pre-encoded training data** (the exact files the models were trained on): [`yuzhewu207/wizard-precoded`](https://huggingface.co/datasets/yuzhewu207/wizard-precoded), restored with `scripts/data/restore_precoded.py`; see [docs/DATA.md](docs/DATA.md).
120
- - **Raw training data** (videos, proxy videos, geometry, memory banks, reference images): [`yuzhewu207/wizard`](https://huggingface.co/datasets/yuzhewu207/wizard).
121
- - **WildWorld**: about half of the training windows come from [WildWorld](https://huggingface.co/datasets/AlayaLab/WildWorld), which cannot be redistributed; [`ww_index`](https://huggingface.co/datasets/yuzhewu207/wizard-precoded/tree/main/ww_index) lists the windows and the scripts to rebuild them from the upstream dataset.
122
 
123
  ## Repository structure
124
 
125
  ```
126
  wizard/
127
  ├── models/ DiT, flow-matching scheduler, proxy and reference injection, world tokens and memory
128
- ├── data/ proxy encoding, G-buffer, video I/O
129
  ├── memory/ memory retrieval (shared by training and inference)
130
- ├── train/ stages 1, 2 and 2b
131
  ├── distill/ stages 3 and 4
132
  ├── inference/ bidirectional, causal and causal + world maintenance; KV-cache streams
133
  ├── world/ online world maintenance (point cache, meshes, reconstruction workers)
134
  └── vendor/wan/ Wan2.2 VAE and T5 encoder
135
  configs/ accelerate / FSDP configs
136
- scripts/ training, inference and data-restore (scripts/data/restore_precoded.py) entry points
137
  tools/ case utilities
138
  docs/ data, training and inference guides
139
  ```
@@ -142,7 +202,8 @@ docs/ data, training and inference guides
142
 
143
  This code was reorganised from our research code and checked against it on the same inputs and seeds: all three
144
  inference modes produce bit-identical videos, and every training stage produces the same loss on its first step (later
145
- steps differ only by the run-to-run nondeterminism of the GPU backward pass, which the original code shows as well).
 
146
 
147
  ## Citation
148
 
@@ -158,11 +219,16 @@ steps differ only by the run-to-run nondeterminism of the GPU backward pass, whi
158
  ## Acknowledgements
159
 
160
  We build on [Wan2.2](https://github.com/Wan-Video/Wan2.2) (the VAE and T5 encoder in `wizard/vendor/wan` are taken
161
- from it) and [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio) (flow-matching scheduler). The causal adaptation and distillation follow
162
- Causal Forcing++, [CausVid](https://github.com/tianweiy/CausVid), [Self-Forcing](https://github.com/guandeh17/Self-Forcing)
163
- and [DMD2](https://github.com/tianweiy/DMD2); world maintenance follows [GEN3C](https://github.com/nv-tlabs/GEN3C) and
164
- uses [MapAnything](https://github.com/facebookresearch/map-anything).
165
-
166
- ## Licence
167
-
168
- Non-commercial research use only; see [LICENSE.md](LICENSE.md).
 
 
 
 
 
 
2
 
3
  # Wizard: Manipulate Any World in Real Time via Agentic Control
4
 
5
+ [Yuzhe Wu](https://github.com/wyzardWu)<sup>1,2,\*</sup> · [Zijun Lin](https://jimntu.github.io/)<sup>1,3,\*</sup> · [Yeying Jin](https://jinyeying.github.io/)<sup>1,2,♢</sup>
6
+
7
+ <sup>1</sup>Tencent · <sup>2</sup>National University of Singapore · <sup>3</sup>Nanyang Technological University
8
+ <br><sup>\*</sup>Equal contribution · <sup>♢</sup>Corresponding author and project leader
9
 
10
  [![arXiv](https://img.shields.io/badge/arXiv-2610.40339-b31b1b.svg)](https://arxiv.org/abs/2610.40339)
11
  [![Project Page](https://img.shields.io/badge/Project-Page-4b8bbe.svg)](https://wyzardwu.github.io/wizard/)
12
  [![Weights & Data](https://img.shields.io/badge/%F0%9F%A4%97-Weights%20%26%20Data-ffcc4d.svg)](https://huggingface.co/datasets/yuzhewu207/wizard)
13
  [![Pre-encoded data](https://img.shields.io/badge/%F0%9F%A4%97-Pre--encoded%20data-ffcc4d.svg)](https://huggingface.co/datasets/yuzhewu207/wizard-precoded)
14
+ [![License](https://img.shields.io/badge/license-research%20only-lightgrey.svg)](LICENSE.md)
 
15
 
16
  <img src="assets/teaser.jpg" width="92%">
17
 
18
+ **Change the world as you play.** Wizard keeps the game state explicit and lets a real-time video model paint it.<br>
19
+ Watch the trailer and the interactive demos on the [project page](https://wyzardwu.github.io/wizard/).
20
+
21
  </div>
22
 
23
+ ## News
24
+
25
+ - **2026-11** Training and inference code, model weights, the raw training data and the pre-encoded training data are released.
26
+
27
+ ## Overview
28
 
29
+ Game world models can generate interactive video in real time, but a game needs more than walking around: a boss that
30
+ appears and fights by its own rules, a creature that turns into another, ground that splits or rises on command.
31
+ Wizard keeps the game state explicit: scene geometry for the world, an articulated skeleton for every character, and
32
+ rules for the fight. Agents edit that state from one image, a typed instruction or a key press, and render it into a
33
+ **visual proxy**; a causal video model built on [Wan2.2-TI2V-5B](https://github.com/Wan-Video/Wan2.2) turns the proxy
34
+ into game frames at **20 FPS with two denoising steps**. Every scene and character shown on the project page is new to
35
+ the model.
36
+
37
+ <div align="center"><img src="assets/overview.webp" width="100%"><br><em>Four ways to play, built on fine-grained control, zero-shot generalization and mechanics-consistent gameplay.</em></div>
38
 
39
  ## Highlights
40
 
41
  - **Proxy-driven control.** Scene geometry and articulated skeletons are rendered into one condition video and
42
+ concatenated with the video latents: precise camera and motion control, zero-shot to new scenes, characters and motions.
 
 
43
  - **Geometry you can trust.** The proxy marks every pixel as *exact*, *coarse* or *unknown*; the model follows exact
44
+ geometry and invents unknown regions, which are then filled online from the generated frames.
45
+ - **Character-aware adaptive masking.** Each reference image may attend only to its own character's skeleton-derived
46
+ region (expanded by 25%). The masks follow the characters and reduce appearance leakage; on a transformation they block
47
+ the old identity's cached tokens.
48
+ - **World-anchored spatial conditioning.** An explicit scene map is projected into the memory frames and the current proxy
49
+ as per-pixel world coordinates, kept only where the scene has been seen. Revisited places are re-rendered from the new
50
+ view rather than copied (copy bias 6.61 → 2.84), while unexplored regions stay free to generate.
51
+ - **Real time.** Following Causal Forcing++: teacher forcing with history self-augmentation, consistency distillation
52
+ with a 20-latent-frame window and a first-frame sink, then DMD on the student's own rollouts. Online world maintenance
53
+ runs on a second GPU without blocking generation.
54
 
55
+ ## Method
56
 
57
+ A setup stage of under five minutes reconstructs the scene and characters, rigs skeletons and builds each character's
58
+ motion set. During play, the agents update motion, geometry and combat state, and the generator renders them.
59
+
60
+ <div align="center"><img src="assets/pipeline.webp" width="100%"><br><em>Inference pipeline: (a) character animation, (b) scene manipulation, (c) state-aware combat, (d) real-time generation with spatial memory.</em></div>
61
+
62
+ <br>
 
63
 
64
+ <div align="center"><img src="assets/generator.webp" width="100%"><br><em>Generator with (a) character-aware adaptive masking and (b) world-anchored spatial conditioning.</em></div>
65
+
66
+ **This repository contains the video generator** (d): the four-stage training pipeline and the three inference modes,
67
+ including online world maintenance. The agents that build and drive the proxy (rigging, motion retargeting, combat
68
+ simulation, the world agent and the interactive front end) are not part of this release; the
69
+ [examples](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/examples) provide ready-made proxies to run the
70
+ generator on.
71
 
72
  ## Installation
73
 
 
77
  pip install torch==2.11.0 torchvision --index-url https://download.pytorch.org/whl/cu128
78
  pip install -r requirements.txt
79
  pip install -e .
 
80
 
81
+ huggingface-cli download Wan-AI/Wan2.2-TI2V-5B --local-dir checkpoints/Wan2.2-TI2V-5B
82
+ export WAN_CKPT=$PWD/checkpoints/Wan2.2-TI2V-5B # the VAE, T5 and tokenizer are used as-is
83
+ ```
84
 
85
+ `ffmpeg` must be on the `PATH`. Online world maintenance additionally needs
86
+ [MapAnything](https://github.com/facebookresearch/map-anything), which can live in its own environment (see
87
+ [docs/INFERENCE.md](docs/INFERENCE.md)). Tested with Python 3.12 and PyTorch 2.11 (CUDA 12.8) on H200 GPUs.
88
 
89
  ## Quick start
90
 
91
  ```bash
92
+ # the real-time model and three ready-made cases (first frame, proxy video, reference images, our outputs)
 
 
93
  huggingface-cli download yuzhewu207/wizard --repo-type dataset \
94
  --include "weights/causal_dmd/*" "examples/*" --local-dir hf_wizard
95
  C=hf_wizard/examples/fight_character_strikes_player
96
 
97
+ # real-time 2-step causal student
98
  FRAMES=121 bash scripts/infer/run_case.sh causal hf_wizard/weights/causal_dmd/ema_step480.safetensors $C out.mp4 \
99
  --ref1 $C/ref_a.png --ref2 $C/ref_b.png --ref-slots 2,3
100
 
101
+ # the same with an online-maintained 3D world (the case needs world_px.npz); FAST=1 runs the maintenance on the second GPU
102
  CUDA_VISIBLE_DEVICES=0,1 FAST=1 bash scripts/infer/run_case.sh world <dit> <case> out.mp4
103
+
104
+ # the bidirectional teacher (30 steps, CFG 3)
105
+ bash scripts/infer/run_case.sh bidirectional <bidirectional dit> <case> out.mp4
106
  ```
107
 
108
+ Each run writes `out.mp4` (generation | proxy side by side) and `out_gen.mp4` (generation only). The case format is
109
+ described in [docs/DATA.md](docs/DATA.md).
110
 
111
+ ## Model zoo
112
 
113
+ DiT checkpoints fine-tuned from Wan2.2-TI2V-5B, in the `weights/` folder of
114
+ [`yuzhewu207/wizard`](https://huggingface.co/datasets/yuzhewu207/wizard):
115
+
116
+ | Checkpoint | Stage | Sampling |
117
  |---|---|---|
118
+ | `causal_dmd/ema_step480.safetensors` | 4 · real-time causal student (DMD) | `causal` / `world`, 2 steps |
119
+ | `causal_cd/ema_step10000.safetensors` | 3 · consistency-distilled causal student | `causal` / `world`, 2 steps |
120
+ | `causal_teacher/dit_step11000.safetensors` | 2 · causal teacher | teacher of stage 3 |
121
+ | `bidirectional/dit_step35000.safetensors` | 1 · bidirectional teacher, all data incl. world-edit clips | `bidirectional`, 30 steps, CFG 3 |
122
+ | `bidirectional_main/dit_step35000.safetensors` | 1 · bidirectional teacher of the paper's main table | `bidirectional`, 30 steps, CFG 3 |
123
 
124
+ The released `causal_cd` / `causal_dmd` come from an earlier run of the chain started from `bidirectional_main`; the
125
+ students distilled from `bidirectional` with the scripts below will replace them.
126
 
127
+ **Other base models.** The approach is not tied to Wan: the visual proxy, the reference binding and the training recipe
128
+ carry over to other video backbones. We also trained it on [LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) (22B)
129
+ as a LoRA: [`weights/ltx25_lora/`](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/ltx25_lora)
130
+ (an earlier proxy format without tiers or memory; its inference code, a modified LTX-2 pipeline with the
131
+ reference-image conditioning, is not part of this repository).
132
 
133
+ ## Data
134
 
135
+ 56.1 hours of proxy–video pairs from four sources, each adding what the others lack: 805 scenes and 178 characters.
136
+
137
+ | Source | Adds | Hours |
138
+ |---|---|---:|
139
+ | Public datasets | WildWorld + SceneFly: diverse creature bodies and scenes, with skeleton and depth | 29.2 |
140
+ | Gameplay recordings | Elden Ring: 11 regions, 20+ outfits, six bosses | 12.6 |
141
+ | Synthetic | 162 characters, 742 scenes; entry, coexistence, re-appearance, rapid turns | 11.0 |
142
+ | UE simulations | scripted boss fights with exact proxies | 3.3 |
143
+
144
+ <div align="center"><img src="assets/data.webp" width="100%"><br><em>Dataset overview and processing pipeline.</em></div>
145
+
146
+ - **Pre-encoded training data**: the exact files the models were trained on,
147
+ [`yuzhewu207/wizard-precoded`](https://huggingface.co/datasets/yuzhewu207/wizard-precoded) (804 GiB).
148
+ ```bash
149
+ python scripts/data/restore_precoded.py --root /path/to/wizard_data --verify # download, extract, fix paths, check sha256
150
+ export WIZARD_DATA=/path/to/wizard_data
151
+ ```
152
+ - **Raw training data**: videos, proxy videos, geometry, memory banks and reference images,
153
+ [`yuzhewu207/wizard`](https://huggingface.co/datasets/yuzhewu207/wizard).
154
+ - **WildWorld**: about half of the training windows come from [WildWorld](https://huggingface.co/datasets/AlayaLab/WildWorld),
155
+ which cannot be redistributed;
156
+ [`ww_index`](https://huggingface.co/datasets/yuzhewu207/wizard-precoded/tree/main/ww_index) lists the windows and the
157
+ scripts to rebuild them from the upstream dataset.
158
+
159
+ Layout, groups and the proxy encoding: [docs/DATA.md](docs/DATA.md).
160
+
161
+ ## Training
162
+
163
+ All stages run on 8 GPUs with FSDP (one 121-frame window per GPU) and reproduce the settings of our runs:
164
 
165
  ```bash
166
+ bash scripts/train/1_bidirectional.sh runs/bidirectional # stage 1, 35k steps
167
+ bash scripts/train/2_causal.sh runs/bidirectional/dits/dit_step35000.safetensors runs/causal # stage 2, 11k steps
168
+ bash scripts/train/3_consistency.sh runs/causal/dits/dit_step11000.safetensors runs/cd # stage 3, 10k steps
169
+ bash scripts/train/4_dmd.sh runs/cd/ema/ema_step10000.safetensors \
170
+ runs/bidirectional/dits/dit_step35000.safetensors runs/dmd # stage 4, 500 steps
171
  ```
172
 
173
+ | Stage | Module | Script |
174
+ |---|---|---|
175
+ | 1 · bidirectional teacher | `wizard.train.bidirectional` | `scripts/train/1_bidirectional.sh` |
176
+ | 2 · causal teacher (teacher forcing + history self-augmentation) | `wizard.train.causal_selfaug` | `scripts/train/2_causal.sh` |
177
+ | 3 · consistency distillation | `wizard.distill.consistency_selfaug_future` | `scripts/train/3_consistency.sh` |
178
+ | 4 · distribution matching distillation | `wizard.distill.dmd` | `scripts/train/4_dmd.sh` |
179
 
180
+ Every stage can start from the released checkpoint of the previous one. Hyper-parameters, resuming and environment
181
+ switches: [docs/TRAINING.md](docs/TRAINING.md).
 
182
 
183
  ## Repository structure
184
 
185
  ```
186
  wizard/
187
  ├── models/ DiT, flow-matching scheduler, proxy and reference injection, world tokens and memory
188
+ ├── data/ proxy encoding, G-buffer, depth completion, video I/O
189
  ├── memory/ memory retrieval (shared by training and inference)
190
+ ├── train/ stages 1 and 2
191
  ├── distill/ stages 3 and 4
192
  ├── inference/ bidirectional, causal and causal + world maintenance; KV-cache streams
193
  ├── world/ online world maintenance (point cache, meshes, reconstruction workers)
194
  └── vendor/wan/ Wan2.2 VAE and T5 encoder
195
  configs/ accelerate / FSDP configs
196
+ scripts/ training, inference and data-restore entry points
197
  tools/ case utilities
198
  docs/ data, training and inference guides
199
  ```
 
202
 
203
  This code was reorganised from our research code and checked against it on the same inputs and seeds: all three
204
  inference modes produce bit-identical videos, and every training stage produces the same loss on its first step (later
205
+ steps differ only by the run-to-run nondeterminism of the GPU backward pass, which the original code shows as well). The
206
+ data loaders of every stage read the released data with the same row counts as our training logs.
207
 
208
  ## Citation
209
 
 
219
  ## Acknowledgements
220
 
221
  We build on [Wan2.2](https://github.com/Wan-Video/Wan2.2) (the VAE and T5 encoder in `wizard/vendor/wan` are taken
222
+ from it) and [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio) (flow-matching scheduler). The causal
223
+ adaptation and distillation follow Causal Forcing++, [CausVid](https://github.com/tianweiy/CausVid),
224
+ [Self-Forcing](https://github.com/guandeh17/Self-Forcing) and [DMD2](https://github.com/tianweiy/DMD2); world maintenance
225
+ follows [GEN3C](https://github.com/nv-tlabs/GEN3C) and uses [MapAnything](https://github.com/facebookresearch/map-anything).
226
+ The proxy pipeline uses [Qwen3-VL](https://github.com/QwenLM/Qwen3-VL), [SAM 2](https://github.com/facebookresearch/sam2),
227
+ [TripoSG](https://github.com/VAST-AI-Research/TripoSG), [UniRig](https://github.com/VAST-AI-Research/UniRig) and
228
+ [MoGe-2](https://github.com/microsoft/MoGe); the training data includes [WildWorld](https://huggingface.co/datasets/AlayaLab/WildWorld),
229
+ [SceneFly](https://huggingface.co/datasets/Orange-3DV-Team/SceneFly) and CombatMotion.
230
+
231
+ ## License
232
+
233
+ The code is released for non-commercial research use only; see [LICENSE.md](LICENSE.md). The weights and data on
234
+ HuggingFace are for research use only under their own terms.
code/assets/{architecture.jpg → data.webp} RENAMED
File without changes
code/assets/generator.webp ADDED

Git LFS Details

  • SHA256: c68d57ded6783da4b708a37329bd20a5d888d4687e287ea403c05551e2bbb11c
  • Pointer size: 131 Bytes
  • Size of remote file: 275 kB
code/assets/overview.webp ADDED

Git LFS Details

  • SHA256: d7eab2bd353527b57c8044361a7e053377250c73a952c310f224b19c3fd5d629
  • Pointer size: 131 Bytes
  • Size of remote file: 663 kB
code/assets/pipeline.webp ADDED

Git LFS Details

  • SHA256: 1840500ef14dde705f7b3239026be03a63312ffd5c9206435af2006f8443e95d
  • Pointer size: 131 Bytes
  • Size of remote file: 521 kB