Skip to content

Commit 3807a4e

Browse files
committed
change for use_prompt_embedding param
1 parent 6a7e50c commit 3807a4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maxdiffusion/models/ltx2/transformer_ltx2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ def __call__(
10951095
temb_audio = temb_audio.reshape(batch_size, -1, temb_audio.shape[-1])
10961096
audio_embedded_timestep = audio_embedded_timestep.reshape(batch_size, -1, audio_embedded_timestep.shape[-1])
10971097

1098-
if self.use_prompt_embeddings and sigma is not None:
1098+
if self.cross_attn_mod and sigma is not None:
10991099
audio_sigma = audio_sigma if audio_sigma is not None else sigma
11001100
temb_prompt, _ = self.prompt_adaln(
11011101
sigma.flatten(),

0 commit comments

Comments
 (0)