Non-native a/AttentionDistillation for ComfyUI. Official ComfyUI demo for the paper AttentionDistillation, implemented as an extension of ComfyUI. Note that this extension incorporates AttentionDistillation using diffusers.
Non-native AttentionDistillation for ComfyUI.
Official ComfyUI demo for the paper AttentionDistillation, implemented as an extension of ComfyUI. Note that this extension incorporates AttentionDistillation using diffusers
.
The official code for AttentionDistillation can be found here.
Download or git clone
this repository into the ComfyUI/custom_nodes/
directory, or use the Manager for a streamlined setup.
cd custom_nodes
git clone ...
cd custom_nodes/ComfyUI-AttentionDistillation
pip install -r requirements.txt
This implementation utilizes checkpoints for diffusers
. Download the required models and place them in the ComfyUI/models/diffusers
directory:
|Model|Model Name and Link|
|:---:|:---:|
| Stable Diffusion (v1.5, v2.1) | stable-diffusion-v1-5/stable-diffusion-v1-5 <br> stabilityai/stable-diffusion-2-1 |
| SDXL | stabilityai/stable-diffusion-xl-base-1.0 |
| Flux (dev) | black-forest-labs/FLUX.1-dev |
~~Note: Currently, only Stable Diffusion v1.5 is required.~~
Workflows for various tasks are available in ComfyUI/custom_nodes/Comfy-Attention-Distillation/workflows
. Simply load them to get started. Additionally, we've included usage examples in the Examples section for your reference.
style_t2i_generation_sd15.json
style_t2i_generation_sdxl.json
style_t2i_generation_flux.json
(beta)
style_transfer_sd15.json