Skip to content

Commit f3fefae

Browse files
committed
update
1 parent 59c9f5d commit f3fefae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/mochi/pipeline_mochi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,11 +636,12 @@ def __call__(
636636
latents,
637637
)
638638
joint_attention_mask = self.prepare_joint_attention_mask(prompt_attention_mask, latents)
639-
negative_joint_attention_mask = self.prepare_joint_attention_mask(negative_prompt_attention_mask, latents)
640639

641640
if self.do_classifier_free_guidance:
642641
prompt_embeds = torch.cat([negative_prompt_embeds, prompt_embeds], dim=0)
643642
prompt_attention_mask = torch.cat([negative_prompt_attention_mask, prompt_attention_mask], dim=0)
643+
644+
negative_joint_attention_mask = self.prepare_joint_attention_mask(negative_prompt_attention_mask, latents)
644645
joint_attention_mask = torch.cat([negative_joint_attention_mask, joint_attention_mask], dim=0)
645646

646647
# 5. Prepare timestep

0 commit comments

Comments
 (0)