Skip to content

Commit 4491481

Browse files
ParagEkbotehlky
andauthored
Apply the suggestions from code review for lumina and auraflow
Co-authored-by: hlky <[email protected]>
1 parent 54ab894 commit 4491481

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,6 @@ def __call__(
594594

595595
latents = callback_outputs.pop("latents", latents)
596596
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
597-
negative_prompt_embeds = callback_outputs.pop("negative_prompt_embeds", negative_prompt_embeds)
598-
negative_pooled_prompt_embeds = callback_outputs.pop(
599-
"negative_pooled_prompt_embeds", negative_pooled_prompt_embeds
600-
)
601597

602598
# call the callback, if provided
603599
if i == len(timesteps) - 1 or ((i + 1) > num_warmup_steps and (i + 1) % self.scheduler.order == 0):

src/diffusers/pipelines/lumina/pipeline_lumina.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -905,10 +905,6 @@ def __call__(
905905

906906
latents = callback_outputs.pop("latents", latents)
907907
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
908-
negative_prompt_embeds = callback_outputs.pop("negative_prompt_embeds", negative_prompt_embeds)
909-
negative_pooled_prompt_embeds = callback_outputs.pop(
910-
"negative_pooled_prompt_embeds", negative_pooled_prompt_embeds
911-
)
912908

913909
if XLA_AVAILABLE:
914910
xm.mark_step()

0 commit comments

Comments
 (0)