Attention map tool for Hugging Face Diffusers
Top 85.2% on sourcepulse
This repository provides tools for extracting and visualizing cross-attention maps from Hugging Face Diffusers pipelines, targeting researchers and developers working with diffusion models. It enables deeper understanding of how models interpret prompts by highlighting spatial relationships between text tokens and image features.
How It Works
The library injects hooks into compatible Diffusers pipelines to capture cross-attention map data during the generation process. It then processes these maps, allowing for saving and visualization based on specific timesteps and layers, offering granular insight into the diffusion model's internal workings.
Quick Start & Requirements
pip install attention_map_diffusers
or pip install -e .
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
6 months ago
Inactive