ComfyUI_Patches_ll icon indicating copy to clipboard operation
ComfyUI_Patches_ll copied to clipboard

WAN 2.1 I2V/T2V. I tested the rel L1 thresh values of 0.12, 0.25, and 0.3, but none of them could accelerate the process. However, setting FirstBlockCache to 0.1 can double the speed, but the quality drops significantly.

Open zaitaxiang2012 opened this issue 9 months ago • 14 comments

WAN 2.1 I2V/T2V. I tested the rel L1 thresh values of 0.12, 0.25, and 0.3, but none of them could accelerate the process. However, setting FirstBlockCache to 0.1 can double the speed, but the quality drops significantly.

Image

zaitaxiang2012 avatar Mar 04 '25 02:03 zaitaxiang2012

Image

https://github.com/lldacing/ComfyUI_Patches_ll/issues/7

lldacing avatar Mar 04 '25 02:03 lldacing

Image

Image

Image

There are obvious quality issues with TeaCache, and FirstBlockCache didn't improve the speed.

zaitaxiang2012 avatar Mar 04 '25 02:03 zaitaxiang2012

Image

Image

Image

There are obvious quality issues with TeaCache, and FirstBlockCache didn't improve the speed.

Did you try using the "ApplyTeaCachePatchAdvanced" node?

Image

I don't know what value to set "start_at" but I assume the quality drop is caused when the value is set to 0 or a not high enough number, because kijai nodes come with start_at set to "6".

shiraishi-png avatar Mar 04 '25 03:03 shiraishi-png

try add steps to 30.

lldacing avatar Mar 04 '25 03:03 lldacing

start_at and end_at is range in 0-1, like control's start_percent and end_percent

lldacing avatar Mar 04 '25 03:03 lldacing

For i2v, it seems like the width and the height of the node WanImageToVideo will effect quality of the TeaCache in my test.

lldacing avatar Mar 04 '25 10:03 lldacing

This node is still unusable with Wan, Kijai's version of teacache remains the most efficient for the time being.

Djanghost avatar Mar 04 '25 15:03 Djanghost

This node is still unusable with Wan, Kijai's version of teacache remains the most efficient for the time being.

It seems like kj used another way of TeaCache, I will try it tomorrow.

lldacing avatar Mar 04 '25 16:03 lldacing

https://github.com/ali-vilab/TeaCache/tree/main/TeaCache4Wan2.1 Can author take a look at its implementation method?"

kakaxixx avatar Mar 05 '25 11:03 kakaxixx

https://github.com/ali-vilab/TeaCache/tree/main/TeaCache4Wan2.1 Can author take a look at its implementation method?"

thks, I will check it later.

lldacing avatar Mar 05 '25 14:03 lldacing

Submitted, please update the latest version.

lldacing avatar Mar 06 '25 10:03 lldacing

Thank you. I will provide the latest test results.

zaitaxiang2012 avatar Mar 06 '25 12:03 zaitaxiang2012

First of all, thank you for your efforts. However, after testing, the video quality still cannot be satisfactory.

zaitaxiang2012 avatar Mar 08 '25 12:03 zaitaxiang2012

First of all, thank you for your efforts. However, after testing, the video quality still cannot be satisfactory.

Did you try change wan_coeffiecents?

lldacing avatar Mar 08 '25 16:03 lldacing