mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-18 22:08:13 +00:00
fix: WanVAE2.2 decode error
This commit is contained in:
@@ -509,7 +509,7 @@ class Up_ResidualBlock(nn.Module):
|
||||
x_main, feat_cache, feat_idx = module(x_main, feat_cache, feat_idx)
|
||||
if self.avg_shortcut is not None:
|
||||
x_shortcut = self.avg_shortcut(x, first_chunk)
|
||||
return x_main + x_shortcut
|
||||
return x_main + x_shortcut, feat_cache, feat_idx
|
||||
else:
|
||||
return x_main, feat_cache, feat_idx
|
||||
|
||||
@@ -1336,6 +1336,7 @@ class VideoVAE38_(VideoVAE_):
|
||||
x = self.conv2(z)
|
||||
for i in range(iter_):
|
||||
self._conv_idx = [0]
|
||||
# breakpoint()
|
||||
if i == 0:
|
||||
out, self._feat_map, self._conv_idx = self.decoder(x[:, :, i:i + 1, :, :],
|
||||
feat_cache=self._feat_map,
|
||||
|
||||
Reference in New Issue
Block a user