optimize VARM
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 38 KiB |
@@ -542,12 +542,12 @@ def teacache_wanmodel_forward_orig(
|
||||
self.previous_modulated_input = modulated_inp
|
||||
|
||||
if not should_calc:
|
||||
x += self.previous_residual
|
||||
x += self.previous_residual.to(x.device)
|
||||
else:
|
||||
ori_x = x.clone()
|
||||
for block in self.blocks:
|
||||
x = block(x, **kwargs)
|
||||
self.previous_residual = x - ori_x
|
||||
self.previous_residual = (x - ori_x).to(torch.device('cpu'))
|
||||
|
||||
# head
|
||||
x = self.head(x, e)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "teacache"
|
||||
description = "Unofficial implementation of [ali-vilab/TeaCache](https://github.com/ali-vilab/TeaCache) for ComfyUI"
|
||||
version = "1.4.0"
|
||||
version = "1.4.1"
|
||||
license = {file = "LICENSE"}
|
||||
|
||||
[project.urls]
|
||||
|
||||
Reference in New Issue
Block a user