File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/diffusers/pipelines/easyanimate Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ def encode_prompt(
484484
485485 text_input_ids = text_inputs .input_ids
486486 negative_prompt_attention_mask = text_inputs .attention_mask
487- if self .transformer . config . enable_text_attention_mask :
487+ if self .enable_text_attention_mask :
488488 # Inference: Generation of the output
489489 negative_prompt_embeds = self .text_encoder (
490490 input_ids = text_input_ids ,
@@ -496,7 +496,6 @@ def encode_prompt(
496496 negative_prompt_attention_mask = negative_prompt_attention_mask .repeat (num_images_per_prompt , 1 )
497497
498498 if do_classifier_free_guidance :
499- breakpoint ()
500499 # duplicate unconditional embeddings for each generation per prompt, using mps friendly method
501500 seq_len = negative_prompt_embeds .shape [1 ]
502501
Original file line number Diff line number Diff line change @@ -526,7 +526,7 @@ def encode_prompt(
526526
527527 text_input_ids = text_inputs .input_ids
528528 negative_prompt_attention_mask = text_inputs .attention_mask
529- if self .transformer . config . enable_text_attention_mask :
529+ if self .enable_text_attention_mask :
530530 # Inference: Generation of the output
531531 negative_prompt_embeds = self .text_encoder (
532532 input_ids = text_input_ids ,
@@ -538,7 +538,6 @@ def encode_prompt(
538538 negative_prompt_attention_mask = negative_prompt_attention_mask .repeat (num_images_per_prompt , 1 )
539539
540540 if do_classifier_free_guidance :
541- breakpoint ()
542541 # duplicate unconditional embeddings for each generation per prompt, using mps friendly method
543542 seq_len = negative_prompt_embeds .shape [1 ]
544543
You can’t perform that action at this time.
0 commit comments