SLAPaper / sd-webui-pag

Perturbed-Attention Guidance for Automatic1111 WebUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sd-webui-pag

simplified version of original repo to only contain the PAG algorithm

COMPATIBILITY NOTICE

For stable-diffusion-webui-forge and ComfyUI, checkout sd-perturbed-attention


Perturbed Attention Guidance

Arxiv page

An alternative/complementary method to CFG (Classifier-Free Guidance) that increases sampling quality.

Controls

  • PAG Scale: Controls the intensity of effect of PAG on the generated image. It's recommended to set to around 3, but other values are also possible.

Results

Prompt: "a puppy and a kitten on the moon"

  • SD 1.5
    image

  • SD XL
    image

Also check out the paper authors' official project page

About

Perturbed-Attention Guidance for Automatic1111 WebUI.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%