Skip to content

Commit f3fc4e2

Browse files
committed
decoder encoder mapping changed
1 parent ff13ea0 commit f3fc4e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/maxdiffusion/models/ltx2/ltx2_3_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ def load_vae_weights_2_3(
247247
if pt_key.startswith("vae."):
248248
pt_key = pt_key[len("vae."):]
249249

250+
if pt_key == "per_channel_statistics.mean-of-means":
251+
pt_key = "latents_mean"
252+
elif pt_key == "per_channel_statistics.std-of-means":
253+
pt_key = "latents_std"
254+
250255
renamed_pt_key = pt_key.replace("nin_shortcut", "conv_shortcut")
251256
renamed_pt_key = rename_key(renamed_pt_key)
252257

0 commit comments

Comments
 (0)