# stable-diffusion-webui-daam **Repository Path**: dbscholar0/stable-diffusion-webui-daam ## Basic Information - **Project Name**: stable-diffusion-webui-daam - **Description**: DAAM 代表 Diffusion Attentive Attribution Maps。输入注意文本(必须是包含在提示中的字符串)并运行。将生成具有每个注意力热图的重叠图像以及原始图像。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-08 - **Last Updated**: 2023-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DAAM Extension for Stable Diffusion Web UI This is a port of [DAAM](https://github.com/castorini/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.