ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

[BlockInfo] Wan

Open Haoming02 opened this issue 1 month ago • 1 comments

  1. Added 3 block informations to the transformer_options for Wan:
    • block_index - the index of the current block
    • total_blocks - the total amount of blocks of that type
    • block_type - single / double
  2. For Wan S2V, added the transformer_options to the forward functions
  3. New: Also added the block informations to Wan Animate

Haoming02 avatar Nov 23 '25 07:11 Haoming02

Wan block info works, have not tested S2V yet.

Kosinkadink avatar Nov 24 '25 18:11 Kosinkadink

For this, could you convert the block info back to using ints? torch.compile graph breaks should be largely mitigated now by https://github.com/comfyanonymous/ComfyUI/pull/11317

Kosinkadink avatar Dec 16 '25 00:12 Kosinkadink

Tested S2V, still works, so after the int change is made, I can immediately merge!

Kosinkadink avatar Dec 16 '25 01:12 Kosinkadink

perfect, thanks!

Kosinkadink avatar Dec 16 '25 01:12 Kosinkadink