Skip to main content
The PerturbedAttentionGuidance node applies perturbed attention guidance to a diffusion model to enhance generation quality. It adjusts the model’s denoising process during sampling by comparing the normal conditional prediction with one made using a simplified attention mechanism that only uses value projections, then adds the scaled difference back to the result. When the scale is set to 0, the node has no effect.

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