Skip to content

Pyurah/stable-diffusion-webui-daam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DAAM Extension for Stable Diffusion Web UI

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

Setup and Running

Clone this repository to extension folder.

How to use

Select "Daam script" from the script drop-down. Enter the 'attention text' (must be a string contained in the prompt ) and run. An overlapping image with a heatmap 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 photo of a cute cat wearing sunglasses relaxing on a beach"

attention text: "cat, sunglasses, beach"

output images: orginal, cat, sunglasses, beach

Notice

At the moment, this works well with the Stable Diffusion 1.5 model. However, in the Stable Diffusion 2.0 model this seems to be working a little less well.

About

DAAM for Stable Diffusion Web UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%