- Install dependencies >> requirement.txt
- python sdxl_attn_visualizer_gradio.py
- Input the prompt and choose the path of sdxl model (format: .safetensors).
- Click "Run" button.
- Choose the layer and token_idx for visualization.
- The "group attn maps" means the attention maps in the same block.
- Clear button will clear both model and attention map cache.