Skip to main content
The PerturbedAttentionGuidance node applies perturbed attention guidance to a diffusion model to improve generation quality. During sampling it makes an extra prediction in which the middle block’s self-attention is replaced by a simplified version that passes the value projections straight through, then adds the scaled difference between the normal conditional prediction and this perturbed prediction to the denoised result. Setting scale to 0 disables the effect entirely.

Inputs

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 1cf824486ae695a9e563c70a4798aaf4c9c067ae3b53172c9767e3c5093d0096