Skip to content

Commit 543888d

Browse files
Fix lowvram issue with hunyuan image vae. (#9794)
1 parent 70fc042 commit 543888d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

comfy/ldm/hunyuan_video/vae.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, in_channels, z_channels, block_out_channels, num_res_blocks,
6565
self.mid.attn_1 = AttnBlock(ch, conv_op=ops.Conv2d)
6666
self.mid.block_2 = ResnetBlock(in_channels=ch, out_channels=ch, temb_channels=0, conv_op=ops.Conv2d)
6767

68-
self.norm_out = nn.GroupNorm(32, ch, 1e-6, True)
68+
self.norm_out = ops.GroupNorm(32, ch, 1e-6, True)
6969
self.conv_out = ops.Conv2d(ch, z_channels << 1, 3, 1, 1)
7070

7171
def forward(self, x):
@@ -120,7 +120,7 @@ def __init__(self, z_channels, out_channels, block_out_channels, num_res_blocks,
120120
ch = nxt
121121
self.up.append(stage)
122122

123-
self.norm_out = nn.GroupNorm(32, ch, 1e-6, True)
123+
self.norm_out = ops.GroupNorm(32, ch, 1e-6, True)
124124
self.conv_out = ops.Conv2d(ch, out_channels, 3, 1, 1)
125125

126126
def forward(self, z):

0 commit comments

Comments
 (0)