rockerBOO / sd-webui-daam

DAAM for Stable Diffusion Web UI
Other
6 stars 1 forks source link

DAAM Extension for Stable Diffusion Web UI

This is a port of DAAM for Stable Diffusion Web UI.

tmpp1ascudo

Setup

Screenshot 2023-12-01 at 21-59-10 Stable Diffusion

How to use

Screenshot 2023-12-01 at 22-03-24 Stable Diffusion

An overlapping image with a heat map for each attention will be generated along with the original image. Images will now be created in the default output directory.

Attention text is divided by commas, but multiple words without commas are recognized as a single sequence. If you type "cat" for attention text, then all the tokens matching "cat" will be retrieved and combined into attention. If you type "cute cat", only tokens with "cute" and "cat" in sequence will be retrieved and only their attention will be output.

Sample

prompt : "a photograph of a cool, fantastic, awesome woman wearing sunglasses leaning over an old fashioned jukebox"

attention text: "woman, sunglasses, old fashioned jukebox"

tmpwpx3s4ke

tmp1r00ktge

Known issues

Changelog

2023-12-02 — SDXL now supported

Development

Using ruff for linting and formatting. Tests using pytest.

Contributions

Issues and PRs welcome.

Credits

@IAMAl — https://github.com/IAMAl — For support in making the attention heatmaps work at different aspect ratios and overall supporting me. @kousw — https://github.com/kousw/stable-diffusion-webui-daam — For creating the initial extension @toriato — https://github.com/toriato/stable-diffusion-webui-daam — For adapting for aspect ratio and batch sizes @castorini — https://github.com/castorini/daam — For creating the DAAM attention heatmapping library