Commit b4fd384
committed
Fix batch size calculation in Wan VACE pipeline for precomputed embeddings
Derives `batch_size` from `len(prompt_embeds)` after prompt encoding
rather than `len(prompt)` beforehand. This resolves a `TypeError` crash
when running inference using only precomputed embeddings
(`prompt=None` and `prompt_embeds` provided)1 parent ad6391a commit b4fd384
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
566 | 565 | | |
567 | 566 | | |
568 | 567 | | |
| |||
573 | 572 | | |
574 | 573 | | |
575 | 574 | | |
| 575 | + | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| |||
0 commit comments