stable-diffusion-NPW/README.md

1.2 KiB

Negative Prompt Weight

This is a simple extension for the Stable Diffusion Web UI, which provides a weight parameter for the negative prompt.

Another example plot showing the effect of different weights Negative Prompt: Male

Another example plot showing the effect of different weights Negative Prompt: Female

Oh, and it writes the value to PNGinfo and supports XYZ Plot.

Usage

After installing, you can find the new slider called "Negative Prompt Weight" in the scripts section under NPW.

Screenshot of the slider provided by the extension in UI

Installation

For now, clone this repo in your extensions folder, or manually create a folder in there and call it what you want, then copy the scripts folder of this repo in there.

How It's Done

At runtime a new learned conditioning empty_uncond is made from an empty prompt. Then at every step, inside the denoiser callback, the scheduled uncond of the denoiser (which is based on whatever prompt hijinks were passed to the parser) is lerped with the empty_uncond.

Comparisons and Stuff

...soon