Skip to content

Commit

Permalink
Use t instead of timestep in _apply_perturbed_attention_guidance (
Browse files Browse the repository at this point in the history
  • Loading branch information
hlky authored Dec 16, 2024
1 parent ea893a9 commit 672bd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/pipelines/pag/pipeline_pag_sana.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 672bd49

Please sign in to comment.