Skip to content

Commit 5e2b98d

Browse files
committed
missing keys fix
1 parent 8d4546e commit 5e2b98d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/maxdiffusion/models/ltx2/ltx2_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ def rename_for_ltx2_transformer(key):
4040
"""
4141
Renames Diffusers LTX-2 keys to MaxDiffusion Flax LTX-2 keys.
4242
"""
43+
if "caption_proj" in key and "caption_projection" not in key:
44+
key = key.replace("caption_proj", "caption_projection")
45+
if "audio_caption_proj" in key and "audio_caption_projection" not in key:
46+
key = key.replace("audio_caption_proj", "audio_caption_projection")
47+
4348
key = key.replace("patchify_proj", "proj_in")
4449
key = key.replace("audio_patchify_proj", "audio_proj_in")
4550
key = key.replace("norm_final", "norm_out")

0 commit comments

Comments
 (0)