Unverified Commit 672bd495 authored by hlky's avatar hlky Committed by GitHub
Browse files

Use `t` instead of `timestep` in `_apply_perturbed_attention_guidance` (#10243)

parent ea893a9a
......@@ -840,7 +840,7 @@ class SanaPAGPipeline(DiffusionPipeline, PAGMixin):
# 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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment