Add example cases with outputs
Browse files- .gitattributes +3 -0
- examples/README.md +33 -0
- examples/entry_two_characters/cond.mp4 +3 -0
- examples/entry_two_characters/cond_v7.mkv +3 -0
- examples/entry_two_characters/first_frame.png +3 -0
- examples/entry_two_characters/gbuf.npz +3 -0
- examples/entry_two_characters/output.mp4 +3 -0
- examples/entry_two_characters/prompt.txt +3 -0
- examples/entry_two_characters/ref_a.png +3 -0
- examples/entry_two_characters/ref_b.png +3 -0
- examples/entry_two_characters/slots.npz +3 -0
- examples/entry_two_characters/tier7.npy +3 -0
- examples/fight_character_strikes_player/cond.mp4 +3 -0
- examples/fight_character_strikes_player/cond_v7.mkv +3 -0
- examples/fight_character_strikes_player/first_frame.png +3 -0
- examples/fight_character_strikes_player/gbuf.npz +3 -0
- examples/fight_character_strikes_player/output.mp4 +3 -0
- examples/fight_character_strikes_player/prompt.txt +3 -0
- examples/fight_character_strikes_player/ref_a.png +3 -0
- examples/fight_character_strikes_player/ref_b.png +3 -0
- examples/fight_character_strikes_player/slots.npz +3 -0
- examples/fight_character_strikes_player/tier7.npy +3 -0
- examples/fight_player_attacks_character/cond.mp4 +3 -0
- examples/fight_player_attacks_character/cond_v7.mkv +3 -0
- examples/fight_player_attacks_character/first_frame.png +3 -0
- examples/fight_player_attacks_character/gbuf.npz +3 -0
- examples/fight_player_attacks_character/output.mp4 +3 -0
- examples/fight_player_attacks_character/prompt.txt +3 -0
- examples/fight_player_attacks_character/ref_a.png +3 -0
- examples/fight_player_attacks_character/ref_b.png +3 -0
- examples/fight_player_attacks_character/slots.npz +3 -0
- examples/fight_player_attacks_character/tier7.npy +3 -0
.gitattributes
CHANGED
|
@@ -59,3 +59,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
eldenring_combat/windows.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
eldenring_combat/windows.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
examples/entry_two_characters/cond_v7.mkv filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
examples/fight_character_strikes_player/cond_v7.mkv filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
examples/fight_player_attacks_character/cond_v7.mkv filter=lfs diff=lfs merge=lfs -text
|
examples/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Example cases
|
| 2 |
+
|
| 3 |
+
Three ready-to-run cases with our outputs. Each folder is a *case* as the inference code expects it:
|
| 4 |
+
|
| 5 |
+
| file | content |
|
| 6 |
+
|---|---|
|
| 7 |
+
| `first_frame.png` | the first frame |
|
| 8 |
+
| `cond_v7.mkv` | proxy video (R height, B depth, G geometry tier / character facing, skeletons on top) |
|
| 9 |
+
| `cond.mp4` | the same proxy in the earlier colour coding; only the character layer is read from it |
|
| 10 |
+
| `tier7.npy`, `gbuf.npz` | geometry tier per cell; depth and cameras |
|
| 11 |
+
| `slots.npz` | image region of each character per frame |
|
| 12 |
+
| `ref_a.png`, `ref_b.png` | reference images of the two entering characters (slots 2 and 3) |
|
| 13 |
+
| `prompt.txt` | text prompt (Chinese, as in training) |
|
| 14 |
+
| `output.mp4` | **our result** (bidirectional model, 30 steps, guidance 3, seed 0) |
|
| 15 |
+
|
| 16 |
+
| case | what happens | weights used for `output.mp4` |
|
| 17 |
+
|---|---|---|
|
| 18 |
+
| `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_v7co2/dit_step35000.safetensors` |
|
| 19 |
+
| `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_v7co2/dit_step35000.safetensors` |
|
| 20 |
+
| `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` |
|
| 21 |
+
|
| 22 |
+
Run one (from `code/`, see `code/README.md` for the setup):
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
C=../examples/fight_character_strikes_player
|
| 26 |
+
INF_UNK_NOCOORD=1 python -m wizard.inference.bidirectional \
|
| 27 |
+
--dit ../weights/bidirectional_v7co2/dit_step35000.safetensors --case $C --frames 121 \
|
| 28 |
+
--ref1 $C/ref_a.png --ref2 $C/ref_b.png --ref-slots 2,3 --seed 0 --out out.mp4
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
This writes `out.mp4` (result next to the proxy) and `out_gen.mp4` (result only); `out_gen.mp4` should match `output.mp4`. One case takes about 4 minutes on one H200.
|
| 32 |
+
|
| 33 |
+
The first frames come from the WBench benchmark; the reference images were generated with Qwen-Image.
|
examples/entry_two_characters/cond.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:053bc137132d853f56a0737e10a1898d268f1b1d568f8d90e819050e2fd64644
|
| 3 |
+
size 737208
|
examples/entry_two_characters/cond_v7.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9a6c971b3dabbc61c090af211191013724db8660072da083d60628e2fec1f2d
|
| 3 |
+
size 12183898
|
examples/entry_two_characters/first_frame.png
ADDED
|
Git LFS Details
|
examples/entry_two_characters/gbuf.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47c1561b8d9047eccc4bd4b58293b2606bc36e6d7f4f933b57abdafc81b5d638
|
| 3 |
+
size 8115867
|
examples/entry_two_characters/output.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67b5455a88a134c5f2c0137092e3608e42bc7f446ee4ffb26424119fa97356f7
|
| 3 |
+
size 2303170
|
examples/entry_two_characters/prompt.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
几何条件画面:粉紫色是场景粗几何(颜色编码高度与深度),火柴人与棍状线条是玩家和两个 BOSS 的骨架,线条的绿色深浅表示角色朝向(越亮越朝向镜头,越暗越背对镜头),完整呈现三名角色的动作、朝向与相对远近。两个 BOSS 的外观分别与各自的参考图完全一致;BOSS 从画面外进入。
|
| 2 |
+
玩家角色外观:玩家角色身着红色连帽冲锋衣与配套红色雪裤,背着黑色登山背包,双手戴黑色手套,脚穿黑色登山靴,体型中等,发型被帽子遮挡,面向前方雪坡站立。
|
| 3 |
+
背景描述:雪山之巅,积雪覆盖的陡峭山脊蜿蜒延伸,远处连绵山脉隐现于云海之上,晴朗蓝天之下阳光普照。
|
examples/entry_two_characters/ref_a.png
ADDED
|
Git LFS Details
|
examples/entry_two_characters/ref_b.png
ADDED
|
Git LFS Details
|
examples/entry_two_characters/slots.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0af471444552295fff0fe80f5a7cc3910d3e0ec76e2eef4069dd536a7f0e4390
|
| 3 |
+
size 96959
|
examples/entry_two_characters/tier7.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87d05af72a43040723d34038f6c7f7b5022c1d318c51f64699e017ad1a6b80a7
|
| 3 |
+
size 755168
|
examples/fight_character_strikes_player/cond.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90fbd99c29e9e01ec250e202a32bffbbe57b1e4d4f029a313344cd6aae2ced48
|
| 3 |
+
size 1382651
|
examples/fight_character_strikes_player/cond_v7.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19bbeb3bdf0ea6e77a938726e90bf7af76894da7fa9bce261c13d6414d76f681
|
| 3 |
+
size 9622483
|
examples/fight_character_strikes_player/first_frame.png
ADDED
|
Git LFS Details
|
examples/fight_character_strikes_player/gbuf.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6632112212b1e28fb959dd6d02181724b25f80caa2cdbc70866969e16b9e49a
|
| 3 |
+
size 9220533
|
examples/fight_character_strikes_player/output.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bf666ddba0edc9d7ec8b65d8cd337f9e90206df00a8d2af7081ec688658e95f
|
| 3 |
+
size 2880988
|
examples/fight_character_strikes_player/prompt.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
几何条件画面:粉紫色是场景粗几何(颜色编码高度与深度),火柴人与棍状线条是玩家和两个 BOSS 的骨架,线条的绿色深浅表示角色朝向(越亮越朝向镜头,越暗越背对镜头),完整呈现三名角色的动作、朝向与相对远近。两个 BOSS 的外观分别与各自的参考图完全一致;BOSS 从画面外进入。
|
| 2 |
+
玩家角色外观:玩家角色背对镜头,体型中等,留着短发,身穿一件深灰色长款风衣,未佩戴护甲,未手持武器。
|
| 3 |
+
背景描述:地铁站台,白色瓷砖墙面,灰色水泥地面,轨道旁有红白警示条,远处列车驶来,顶部荧光灯照明,无天空。
|
examples/fight_character_strikes_player/ref_a.png
ADDED
|
Git LFS Details
|
examples/fight_character_strikes_player/ref_b.png
ADDED
|
Git LFS Details
|
examples/fight_character_strikes_player/slots.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7906e24ba85749c95794d37bbbab619b79f8551905d95b10c71159a80a5a3192
|
| 3 |
+
size 124184
|
examples/fight_character_strikes_player/tier7.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48715755430dacf79aa31755a1aeac412de7e9f9632fe74c866c00027dbab4d6
|
| 3 |
+
size 755168
|
examples/fight_player_attacks_character/cond.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6663a35a2e1cb420c6e1a15c5b76418f0e1a0a75fb7593815d1a1ed5d8d9154f
|
| 3 |
+
size 1131391
|
examples/fight_player_attacks_character/cond_v7.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5bfade8b343cd0fd81997f23d5567de58330251355a10198c4778377ff1a2e19
|
| 3 |
+
size 11622068
|
examples/fight_player_attacks_character/first_frame.png
ADDED
|
Git LFS Details
|
examples/fight_player_attacks_character/gbuf.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c26527fa1951d6f44039f0f7fdb6eac520692602ee52697506180bcb6372e21
|
| 3 |
+
size 8599799
|
examples/fight_player_attacks_character/output.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00655a16cb5b79a88dabc155d1bdd77f4247a12f9a516feeaaea0fabb9d4391d
|
| 3 |
+
size 3778520
|
examples/fight_player_attacks_character/prompt.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
几何条件画面:粉紫色是场景粗几何(颜色编码高度与深度),火柴人与棍状线条是玩家和两个 BOSS 的骨架,线条的绿色深浅表示角色朝向(越亮越朝向镜头,越暗越背对镜头),完整呈现三名角色的动作、朝向与相对远近。两个 BOSS 的外观分别与各自的参考图完全一致;BOSS 从画面外进入。
|
| 2 |
+
玩家角色外观:玩家角色背对镜头,身着红色羽绒服、黑色长裤、白色针织帽和黑色手套,脚穿冰鞋,未持任何武器。
|
| 3 |
+
背景描述:在白雪覆盖的针叶林环绕的冰封湖面上,远处是连绵的雪山,天空阴沉,光线柔和均匀。
|
examples/fight_player_attacks_character/ref_a.png
ADDED
|
Git LFS Details
|
examples/fight_player_attacks_character/ref_b.png
ADDED
|
Git LFS Details
|
examples/fight_player_attacks_character/slots.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57dc8bc85f40952204a9890cafb806eb7ad05635b84fd6cf0ecdd9c252623ec1
|
| 3 |
+
size 136431
|
examples/fight_player_attacks_character/tier7.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:163ff87d5b2f5c0c400b3541e731fbbe49c74b26b4c8ccd07adfcb7291437437
|
| 3 |
+
size 755168
|