Perturbed-Attention Guidance for SDXLThe original Perturb... | Perturbed-Attention Guidance for SDXLThe original Perturb...
Perturbed-Attention Guidance for SDXL
The original Perturbed-Attention Guidance for unconditional models and SD1.5
arameters
guidance_scale : guidance scale of CFG (ex: 7.5)

pag_scale : guidance scale of PAG (ex: 4.0)

pag_applied_layers: layer to apply perturbation (ex: ['mid'])

pag_applied_layers_index : index of the layers to apply perturbation (ex: ['m0', 'm1'])

Stable Diffusion XL Demo
Try it here