Image-to-Video
Wan2.2
video-generation
world-model
causal-video-generation
real-time
agentic-control
research-only
Instructions to use YeyingLab/Wizard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Wan2.2
How to use YeyingLab/Wizard with Wan2.2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Align Wizard model card layout with SCOPE
Browse files
README.md
CHANGED
|
@@ -18,19 +18,15 @@ tags:
|
|
| 18 |
|
| 19 |
# Wizard: Manipulate Any World in Real Time via Agentic Control
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
| 22 |
|
| 23 |
## Teaser
|
| 24 |
|
| 25 |
[](https://wyzardwu.github.io/wizard/)
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
## Overview
|
| 30 |
-
|
| 31 |
-
Wizard is a controllable game world model that separates explicit game state from video rendering. Scene geometry, articulated character skeletons, and interaction rules are rendered into a visual proxy. A causal video generator built on [Wan2.2-TI2V-5B](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B) then turns the proxy into game frames.
|
| 32 |
-
|
| 33 |
-
This Model Repository contains the recommended inference checkpoint: the stage-4 causal DMD student. Training data, ready-made inference cases, and earlier checkpoints remain in the original [Wizard Dataset Repository](https://huggingface.co/datasets/yuzhewu207/wizard).
|
| 34 |
|
| 35 |
## Highlights
|
| 36 |
|
|
@@ -40,6 +36,12 @@ This Model Repository contains the recommended inference checkpoint: the stage-4
|
|
| 40 |
- **World-anchored spatial conditioning.** Per-pixel world coordinates support spatial memory and re-rendering from new viewpoints.
|
| 41 |
- **Two-step causal inference.** The released DMD student is used by the official `causal` and `world` inference modes with two consistency levels.
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
## Architecture
|
| 44 |
|
| 45 |
| Component | Description |
|
|
@@ -68,9 +70,15 @@ The recommended checkpoint is the interim step-300 release of the current traini
|
|
| 68 |
|
| 69 |
The earlier [LTX-2.5 LoRA](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/ltx25_lora) uses a different inference pipeline and cannot be loaded by the Wizard commands below.
|
| 70 |
|
| 71 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
-
|
| 74 |
|
| 75 |
```bash
|
| 76 |
git clone https://github.com/YeyingLab/Wizard.git && cd Wizard
|
|
@@ -81,11 +89,9 @@ pip install -e .
|
|
| 81 |
pip install --upgrade huggingface_hub
|
| 82 |
```
|
| 83 |
|
| 84 |
-
|
| 85 |
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
Wizard uses the upstream Wan2.2 VAE, UMT5-XXL text encoder, and tokenizer as-is. Download them from the official base-model repository and keep its directory layout unchanged:
|
| 89 |
|
| 90 |
```bash
|
| 91 |
hf download Wan-AI/Wan2.2-TI2V-5B \
|
|
@@ -94,20 +100,9 @@ hf download Wan-AI/Wan2.2-TI2V-5B \
|
|
| 94 |
export WAN_CKPT="$PWD/checkpoints/Wan2.2-TI2V-5B"
|
| 95 |
```
|
| 96 |
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
- `Wan2.2_VAE.pth`
|
| 100 |
-
- `models_t5_umt5-xxl-enc-bf16.pth`
|
| 101 |
-
- `google/umt5-xxl/`
|
| 102 |
-
|
| 103 |
-
These third-party components are not duplicated in this repository. Keeping them in the upstream repository preserves their Apache-2.0 licensing and the directory structure expected by the official code, while the Wizard checkpoint remains under the Wizard research-only license.
|
| 104 |
-
|
| 105 |
-
## Download Weights
|
| 106 |
-
|
| 107 |
-
Sign in with an account that can access this private repository, then download the recommended Wizard checkpoint and its inference settings:
|
| 108 |
|
| 109 |
```bash
|
| 110 |
-
hf auth login
|
| 111 |
hf download yuzhewu207/Wizard \
|
| 112 |
config.json weights/causal_dmd/ema_step300.safetensors \
|
| 113 |
--local-dir hf_wizard_model
|
|
@@ -115,7 +110,7 @@ hf download yuzhewu207/Wizard \
|
|
| 115 |
|
| 116 |
[`config.json`](config.json) documents the recommended inference defaults from the official Wizard wrapper. The wrapper takes its settings from the command line and environment, so it does not load this file at runtime.
|
| 117 |
|
| 118 |
-
Download the
|
| 119 |
|
| 120 |
```bash
|
| 121 |
hf download yuzhewu207/wizard --repo-type dataset \
|
|
@@ -123,19 +118,19 @@ hf download yuzhewu207/wizard --repo-type dataset \
|
|
| 123 |
--local-dir hf_wizard_data
|
| 124 |
```
|
| 125 |
|
| 126 |
-
##
|
| 127 |
|
| 128 |
Run the recommended two-step causal DMD model with the official wrapper script:
|
| 129 |
|
| 130 |
```bash
|
| 131 |
W=hf_wizard_model/weights/causal_dmd/ema_step300.safetensors
|
| 132 |
|
| 133 |
-
#
|
| 134 |
C=hf_wizard_data/examples/duel_bull_character
|
| 135 |
bash scripts/infer/run_case.sh causal "$W" "$C" duel.mp4 \
|
| 136 |
--ref1 "$C/ref_a.png" --ref-slots 2,0
|
| 137 |
|
| 138 |
-
#
|
| 139 |
C=hf_wizard_data/examples/world_edit_stairs
|
| 140 |
bash scripts/infer/run_case.sh causal "$W" "$C" stairs.mp4 --ref-slots 0,0
|
| 141 |
```
|
|
@@ -149,6 +144,14 @@ CUDA_VISIBLE_DEVICES=0,1 FAST=1 \
|
|
| 149 |
|
| 150 |
Each run writes the named MP4 (generation and proxy side by side) and a companion `*_gen.mp4` (generation only). The case format is documented in [docs/DATA.md](https://github.com/YeyingLab/Wizard/blob/main/docs/DATA.md).
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
## Datasets
|
| 153 |
|
| 154 |
Wizard was trained on 56.1 hours of proxy-video pairs spanning 805 scenes and 178 characters. The release describes four sources: public datasets (WildWorld and SceneFly), Elden Ring gameplay recordings, synthetic data, and Unreal Engine simulations.
|
|
|
|
| 18 |
|
| 19 |
# Wizard: Manipulate Any World in Real Time via Agentic Control
|
| 20 |
|
| 21 |
+
Yuzhe Wu 路 Zijun Lin 路 Yeying Jin
|
| 22 |
+
|
| 23 |
+
[Project Page](https://wyzardwu.github.io/wizard/) 路 [Paper](https://arxiv.org/abs/2610.40339) 路 [Code](https://github.com/YeyingLab/Wizard) 路 [Dataset](https://huggingface.co/datasets/yuzhewu207/wizard)
|
| 24 |
|
| 25 |
## Teaser
|
| 26 |
|
| 27 |
[](https://wyzardwu.github.io/wizard/)
|
| 28 |
|
| 29 |
+
Wizard turns visual proxies of scene geometry and character motion into controllable gameplay video.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## Highlights
|
| 32 |
|
|
|
|
| 36 |
- **World-anchored spatial conditioning.** Per-pixel world coordinates support spatial memory and re-rendering from new viewpoints.
|
| 37 |
- **Two-step causal inference.** The released DMD student is used by the official `causal` and `world` inference modes with two consistency levels.
|
| 38 |
|
| 39 |
+
## Model Overview
|
| 40 |
+
|
| 41 |
+
Wizard separates explicit game state from video rendering. Scene geometry, articulated character skeletons, and interaction rules are rendered into a visual proxy. A causal video generator built on Wan2.2-TI2V-5B turns that proxy into game frames.
|
| 42 |
+
|
| 43 |
+
This repository contains the recommended stage-4 causal DMD student. The original dataset repository hosts training data, ready-made inference cases, and earlier checkpoints. [Base model](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B) 路 [Wizard dataset](https://huggingface.co/datasets/yuzhewu207/wizard)
|
| 44 |
+
|
| 45 |
## Architecture
|
| 46 |
|
| 47 |
| Component | Description |
|
|
|
|
| 70 |
|
| 71 |
The earlier [LTX-2.5 LoRA](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/ltx25_lora) uses a different inference pipeline and cannot be loaded by the Wizard commands below.
|
| 72 |
|
| 73 |
+
## Quick Start
|
| 74 |
+
|
| 75 |
+
### Requirements
|
| 76 |
+
|
| 77 |
+
- An NVIDIA GPU with CUDA. The official release was tested on H200 GPUs with Python 3.12 and PyTorch 2.11 (CUDA 12.8).
|
| 78 |
+
- `ffmpeg` on `PATH`.
|
| 79 |
+
- MapAnything for online world maintenance. [Official inference guide](https://github.com/YeyingLab/Wizard/blob/main/docs/INFERENCE.md)
|
| 80 |
|
| 81 |
+
### Installation
|
| 82 |
|
| 83 |
```bash
|
| 84 |
git clone https://github.com/YeyingLab/Wizard.git && cd Wizard
|
|
|
|
| 89 |
pip install --upgrade huggingface_hub
|
| 90 |
```
|
| 91 |
|
| 92 |
+
### Download Weights
|
| 93 |
|
| 94 |
+
**Wan2.2 dependencies.** Download the VAE, UMT5-XXL text encoder, and tokenizer from the upstream base model.
|
|
|
|
|
|
|
| 95 |
|
| 96 |
```bash
|
| 97 |
hf download Wan-AI/Wan2.2-TI2V-5B \
|
|
|
|
| 100 |
export WAN_CKPT="$PWD/checkpoints/Wan2.2-TI2V-5B"
|
| 101 |
```
|
| 102 |
|
| 103 |
+
**Wizard checkpoint.** Download the recommended checkpoint and the inference settings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
```bash
|
|
|
|
| 106 |
hf download yuzhewu207/Wizard \
|
| 107 |
config.json weights/causal_dmd/ema_step300.safetensors \
|
| 108 |
--local-dir hf_wizard_model
|
|
|
|
| 110 |
|
| 111 |
[`config.json`](config.json) documents the recommended inference defaults from the official Wizard wrapper. The wrapper takes its settings from the command line and environment, so it does not load this file at runtime.
|
| 112 |
|
| 113 |
+
**Example inputs.** Download the prepared cases from the original dataset repository.
|
| 114 |
|
| 115 |
```bash
|
| 116 |
hf download yuzhewu207/wizard --repo-type dataset \
|
|
|
|
| 118 |
--local-dir hf_wizard_data
|
| 119 |
```
|
| 120 |
|
| 121 |
+
### Inference
|
| 122 |
|
| 123 |
Run the recommended two-step causal DMD model with the official wrapper script:
|
| 124 |
|
| 125 |
```bash
|
| 126 |
W=hf_wizard_model/weights/causal_dmd/ema_step300.safetensors
|
| 127 |
|
| 128 |
+
# Character duel with a reference image.
|
| 129 |
C=hf_wizard_data/examples/duel_bull_character
|
| 130 |
bash scripts/infer/run_case.sh causal "$W" "$C" duel.mp4 \
|
| 131 |
--ref1 "$C/ref_a.png" --ref-slots 2,0
|
| 132 |
|
| 133 |
+
# Staircase world edit.
|
| 134 |
C=hf_wizard_data/examples/world_edit_stairs
|
| 135 |
bash scripts/infer/run_case.sh causal "$W" "$C" stairs.mp4 --ref-slots 0,0
|
| 136 |
```
|
|
|
|
| 144 |
|
| 145 |
Each run writes the named MP4 (generation and proxy side by side) and a companion `*_gen.mp4` (generation only). The case format is documented in [docs/DATA.md](https://github.com/YeyingLab/Wizard/blob/main/docs/DATA.md).
|
| 146 |
|
| 147 |
+
## Repository Contents
|
| 148 |
+
|
| 149 |
+
| File | Purpose |
|
| 150 |
+
|---|---|
|
| 151 |
+
| [`weights/causal_dmd/ema_step300.safetensors`](weights/causal_dmd/ema_step300.safetensors) | Recommended Wizard DiT checkpoint (10.02 GB) |
|
| 152 |
+
| [`config.json`](config.json) | Recommended causal inference settings |
|
| 153 |
+
| [`LICENSE.md`](LICENSE.md) | Research-only terms for the Wizard checkpoint |
|
| 154 |
+
|
| 155 |
## Datasets
|
| 156 |
|
| 157 |
Wizard was trained on 56.1 hours of proxy-video pairs spanning 805 scenes and 178 characters. The release describes four sources: public datasets (WildWorld and SceneFly), Elden Ring gameplay recordings, synthetic data, and Unreal Engine simulations.
|