Skip to content

Commit e511864

Browse files
committed
make fix-copies
1 parent b4e73ba commit e511864

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)