From d05bf73f6c5b6ca6360fb993010b294526567c00 Mon Sep 17 00:00:00 2001 From: hlky Date: Mon, 16 Dec 2024 16:35:32 +0000 Subject: [PATCH] Use `t` instead of `timestep` in `_apply_perturbed_attention_guidance` --- src/diffusers/pipelines/pag/pipeline_pag_sana.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/pipelines/pag/pipeline_pag_sana.py b/src/diffusers/pipelines/pag/pipeline_pag_sana.py index 081dbef21e5c..c6e7554e6b69 100644 --- a/src/diffusers/pipelines/pag/pipeline_pag_sana.py +++ b/src/diffusers/pipelines/pag/pipeline_pag_sana.py @@ -840,7 +840,7 @@ def __call__( # perform guidance if self.do_perturbed_attention_guidance: noise_pred = self._apply_perturbed_attention_guidance( - noise_pred, self.do_classifier_free_guidance, guidance_scale, timestep + noise_pred, self.do_classifier_free_guidance, guidance_scale, t ) elif self.do_classifier_free_guidance: noise_pred_uncond, noise_pred_text = noise_pred.chunk(2)