We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d4546e commit 5e2b98dCopy full SHA for 5e2b98d
1 file changed
src/maxdiffusion/models/ltx2/ltx2_utils.py
@@ -40,6 +40,11 @@ def rename_for_ltx2_transformer(key):
40
"""
41
Renames Diffusers LTX-2 keys to MaxDiffusion Flax LTX-2 keys.
42
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
+
48
key = key.replace("patchify_proj", "proj_in")
49
key = key.replace("audio_patchify_proj", "audio_proj_in")
50
key = key.replace("norm_final", "norm_out")
0 commit comments