dikdimon's picture
Upload extensions using SD-Hub extension
3dabe4a verified

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