File tree Expand file tree Collapse file tree
src/maxdiffusion/models/ltx2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ def rename_for_ltx2_transformer(key):
9898 # Add missing mappings
9999 key = key .replace ("av_ca_video_scale_shift_adaln_single" , "av_cross_attn_video_scale_shift" )
100100 key = key .replace ("av_ca_a2v_gate_adaln_single" , "av_cross_attn_video_a2v_gate" )
101- key = key .replace ("adaln_single" , "time_embed" )
102101 key = key .replace ("av_ca_audio_scale_shift_adaln_single" , "av_cross_attn_audio_scale_shift" )
103102 key = key .replace ("av_ca_v2a_gate_adaln_single" , "av_cross_attn_audio_v2a_gate" )
104103 key = key .replace ("scale_shift_table_a2v_ca_video" , "video_a2v_cross_attn_scale_shift_table" )
@@ -118,6 +117,7 @@ def rename_for_ltx2_transformer(key):
118117 if "audio_text_proj_in" in key :
119118 key = key .replace ("audio_text_proj_in" , "feature_extractor.audio_linear" )
120119
120+ key = key .replace ("adaln_single" , "time_embed" )
121121 return key
122122
123123
You can’t perform that action at this time.
0 commit comments