File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/diffusers/pipelines/mochi Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments