|
Download examples/README.md from yuzhewu207/wizard: direct link, hf CLI and curl.
- Browser
- Download file 3.43 kB
-
https://huggingface.co/datasets/yuzhewu207/wizard/resolve/main/examples/README.md
- Command line
-
hf download hf://datasets/yuzhewu207/wizard/examples/README.md
-
curl -L -o README.md https://huggingface.co/datasets/yuzhewu207/wizard/resolve/main/examples/README.md
3.43 kB
| # Example cases | |
| Five ready-to-run cases with our outputs. Each folder is a *case* as the inference code expects it: | |
| | file | content | | |
| |---|---| | |
| | `first_frame.png` | the first frame | | |
| | `proxy.mkv` | proxy video (R height, B depth, G geometry tier / character facing, skeletons on top) | | |
| | `cond.mp4` | the same proxy in the earlier colour coding; only the character layer is read from it | | |
| | `tier.npy`, `gbuf.npz` | geometry tier per cell; depth and cameras | | |
| | `slots.npz` | image region of each character per frame | | |
| | `ref_a.png`, `ref_b.png` | reference images of the characters (slots 2 and 3 in the entry / fight cases; slot 2 = the bull in `duel_bull_character`) | | |
| | `prompt.txt` | text prompt (Chinese, as in training) | | |
| | `output.mp4` | **our result**: the three entry / fight cases with the bidirectional model (30 steps, guidance 3, seed 0; the two fight cases were made with an earlier bidirectional model, so a rerun with `weights/bidirectional` looks close but not identical); the two real-time cases with `weights/causal_dmd` (2 steps, streaming) | | |
| | case | what happens | weights to run it with | | |
| |---|---|---| | |
| | `fight_character_strikes_player/` | two characters enter from the sides; at 1.6 s character 1 (purple panther) strikes the player, who is knocked down and stays down | `weights/bidirectional/dit_step35000.safetensors` | | |
| | `fight_player_attacks_character/` | two characters enter; at 1.6 s the player attacks character 2 (clockwork titan), which flinches from the hit | `weights/bidirectional/dit_step35000.safetensors` | | |
| | `entry_two_characters/` | two characters with the *same skeleton* and different reference images enter one after the other; only the references tell them apart | `weights/bidirectional/dit_step35000.safetensors` | | |
| | `duel_bull_character/` | 8 s duel with a character that is already in the first frame (a golden bull); the player is knocked down and gets up, the bull keeps its identity through the reference image | `weights/causal_dmd/ema_step300.safetensors` (real time) | | |
| | `world_edit_stairs/` | 8 s world edit: the player walks through a pine forest and stone steps rise out of the ground one by one in the proxy; the player climbs them | `weights/causal_dmd/ema_step300.safetensors` (real time) | | |
| Run one with the code from [YeyingLab/Wizard](https://github.com/YeyingLab/Wizard) (setup in its README): | |
| ```bash | |
| C=examples/fight_character_strikes_player | |
| FRAMES=121 bash scripts/infer/run_case.sh bidirectional weights/bidirectional/dit_step35000.safetensors $C out.mp4 \ | |
| --ref1 $C/ref_a.png --ref2 $C/ref_b.png --ref-slots 2,3 --seed 0 | |
| ``` | |
| The two real-time cases (241 frames): | |
| ```bash | |
| C=examples/duel_bull_character | |
| bash scripts/infer/run_case.sh causal weights/causal_dmd/ema_step300.safetensors $C out.mp4 --ref1 $C/ref_a.png --ref-slots 2,0 | |
| C=examples/world_edit_stairs | |
| bash scripts/infer/run_case.sh causal weights/causal_dmd/ema_step300.safetensors $C out.mp4 --ref-slots 0,0 | |
| ``` | |
| This writes `out.mp4` (result next to the proxy) and `out_gen.mp4` (result only); `out_gen.mp4` should match `output.mp4`. A bidirectional case takes about 4 minutes on one H200; a real-time case about 2 minutes including model loading. | |
| The first frames of the three entry / fight cases come from the WBench benchmark and their reference images were generated with Qwen-Image; the first frames and the reference image of the two real-time cases were generated by us. | |