This is a port of DAAM for Stable Diffusion Web UI.
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.
prompt : "a photograph of a cool, fantastic, awesome woman wearing sunglasses leaning over an old fashioned jukebox"
attention text: "woman, sunglasses, old fashioned jukebox"
view of [16, 29, 39]
not working. Try changing the resolution. Please feel free to make a ticket with the error and resolution you were trying.2023-12-02 — SDXL now supported
Using ruff for linting and formatting. Tests using pytest.
Issues and PRs welcome.
@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