Skip to content

Commit c30e0ec

Browse files
committed
fix
1 parent af449b3 commit c30e0ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/maxdiffusion/models/ltx2/ltx2_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def load_vae_weights(
292292

293293
if name == "resnets":
294294
pt_list.append("resnets")
295-
pt_list.append(str(idx))
295+
resnet_index = idx
296296
elif name == "upsamplers":
297297
pt_list.append("upsampler")
298298
elif name in ["down_blocks", "up_blocks", "downsamplers"]:
@@ -302,7 +302,7 @@ def load_vae_weights(
302302
pt_list.append(part)
303303
elif part == "upsampler":
304304
pt_list.append("upsampler")
305-
elif part in ["conv1", "conv2", "conv"]:
305+
elif part in ["conv1", "conv2", "conv", "conv_in", "conv_out"]:
306306
pt_list.append(part)
307307
if i + 1 < len(pt_tuple_key) and pt_tuple_key[i+1] == "conv":
308308
pass

0 commit comments

Comments
 (0)