Diffusers-in-ComfyUI

Diffusers-in-ComfyUI
★ 7

Diffusers集成SDXL支持ControlNet兼容LoRA/B-LoRA支持
在ComfyUI中用模块化节点直接调用Diffusers各类pipeline,支持SDXL、ControlNet、LoRA/B-LoRA与低显存模式。
💡 快速在ComfyUI中构建支持SDXL与ControlNet的图像生成流程。
🍴 5 Forks💻 Python🔄 2026-01-17
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/a1f1f564f19c
📦 requirements.txt
absl-py==2.1.0
accelerate==0.33.0
aiohttp==3.9.5
aiosignal==1.3.1
antlr4-python3-runtime==4.9.3
async-timeout==4.0.3
attrs==23.2.0
bitsandbytes==0.43.1
certifi==2024.7.4
cffi==1.16.0
charset-normalizer==3.3.2
colorama==0.4.6
diffusers
@
git+https://github.com/huggingface/diffusers@3bb1fd6fc05917ce2fc577fcda2163391c5bdcc0
einops==0.8.0
filelock==3.15.4
frozenlist==1.4.1
fsspec==2024.6.1
ftfy==6.2.0
grpcio==1.65.1
huggingface-hub==0.24.1
idna==3.7
importlib_metadata==8.1.0
intel-openmp==2021.4.0
Jinja2==3.1.4
kornia==0.7.3
kornia_rs==0.1.5
Markdown==3.6
MarkupSafe==2.1.5
mkl==2021.4.0
mpmath==1.3.0
multidict==6.0.5
networkx==3.2.1
numpy==1.26.4
omegaconf==2.3.0
opencv-python==4.10.0.84
packaging==24.1
peft==0.11.1
pillow==10.4.0
protobuf==4.25.3
psutil==6.0.0
pycparser==2.22
PyYAML==6.0.1
regex==2024.5.15
requests==2.32.3
safetensors==0.4.3
scipy==1.13.1
sentencepiece==0.2.0
six==1.16.0
soundfile==0.12.1
spandrel==0.3.4
sympy==1.13.1
tbb==2021.13.0
tensorboard==2.17.0
tensorboard-data-server==0.7.2
tokenizers==0.19.1
torch==2.3.1+cu121
torchaudio==2.3.1+cu121
torchsde==0.2.6
torchvision==0.18.1
tqdm==4.66.4
trampoline==0.1.2
transformers==4.43.0
typing_extensions==4.12.2
urllib3==2.2.2
wcwidth==0.2.13
Werkzeug==3.0.3
xformers==0.0.27
yarl==1.9.4
zipp==3.19.2
Txt2Image Workflow
Inpainting Workflow
Img2Img Workflow
LoRA Workflow
BLoRA Workflow
📄 README

🎨 Diffusers in ComfyUI

Bring the full power of Hugging Face Diffusers pipelines directly into ComfyUI

[](https://github.com/ltdrdata/ComfyUI-Manager)

[](https://registry.comfy.org/)

[](https://github.com/maepopi/Diffusers-in-ComfyUI/stargazers)

[](https://opensource.org/licenses/MIT)


✨ Features

  • 🔥 Full Diffusers Pipeline Integration – Text2Img, Img2Img, and Inpainting pipelines
  • 🎯 SDXL Support – Works with both SD 1.5 and SDXL models
  • 🎨 ControlNet Compatible – Seamless ControlNet integration with any Hugging Face model
  • 🧩 LoRA & B-LoRA Support – Load LoRAs and advanced B-LoRAs for style/content separation
  • Low VRAM Mode – Optimized for limited GPU memory with CPU offloading
  • 🛠️ Modular Design – Clean, reusable nodes for flexible workflows
  • 📦 Easy Installation – Available via ComfyUI Manager and Comfy Registry

  • 🚀 Quick Start

    Option 1: Install via Comfy Registry (Recommended)

    comfy node registry-install diffusers-in-comfyui

    Option 2: Install via ComfyUI Manager

  • Launch ComfyUI
  • Open ComfyUI Manager
  • Search for “Diffusers in Comfy UI”
  • Click Install
  • Option 3: Manual Installation

    cd ComfyUI/custom_nodes/
    git clone https://github.com/maepopi/Diffusers-in-ComfyUI.git
    cd Diffusers-in-ComfyUI
    pip install -r requirements.txt

    After installation, you’ll find the nodes under “Diffusers-in-Comfy” in your node menu! 🎉


    📖 Usage

    Available Node Categories

    🔧 Pipeline Nodes (Diffusers-in-Comfy/Pipelines)

    Set up your generation pipeline with these nodes:

  • Text2ImgStableDiffusionPipeline – Generate images from text prompts
  • Img2ImgStableDiffusionPipeline – Transform existing images
  • InpaintingStableDiffusionPipeline – Fill masked regions
  • Pipeline Configuration Options:

  • ✅ SDXL support toggle
  • 🎨 Custom VAE (e.g., "stabilityai/sd-vae-ft-mse")
  • 🕹️ ControlNet integration (e.g., "XLabs-AI/flux-controlnet-canny")
  • 💾 Low VRAM mode for memory-constrained GPUs
  • 🎯 Inference Nodes (Diffusers-in-Comfy/Inference)

    Execute your generation with fine-tuned control:

  • GenerateTxt2Image – Text-to-image generation
  • GenerateImg2Image – Image-to-image transformation
  • GenerateInpaintImage – Inpainting with masks
  • Common Parameters:

  • Seed, Positive/Negative prompts
  • Inference steps, Width/Height
  • Guidance scale
  • ControlNet image & scale
  • 🛠️ Utils Nodes (Diffusers-in-Comfy/Utils)

    Image preprocessing utilities:

  • Make Canny – Convert images to Canny edge maps for ControlNet
  • Outputs: Processed image + Preview
  • 🧩 Component Nodes (Diffusers-in-Comfy/Components)

    Extend your pipelines with adapters:

  • LoraLoader – Load LoRA adapters with custom weights
  • BLoRA – Advanced style/content separation (SDXL only)
  • ⚠️ Note: B-LoRA works with ControlNet but not with standard LoRAs

  • 📸 Workflow Examples

    Text-to-Image (SD 1.5)

    Inpainting (SDXL)

    Image-to-Image (SD 1.5)

    LoRA Integration

    B-LoRA Style Transfer (SDXL)


    🎯 Advanced: B-LoRA Usage

    B-LoRA enables powerful style and content separation. Original paper

    Setup:

  • Place your B-LoRA file in ComfyUI/lora/ folder
  • In the BLoRA node, specify filename (e.g., vangogh.safetensors)
  • Ensure SDXL pipeline is loaded with is_sdxl=True
  • Important Notes:

  • ✅ Compatible with ControlNet
  • ❌ Cannot be combined with standard LoRAs
  • 🎨 SDXL models only

  • 🗺️ Roadmap

  • [ ] IPAdapter support
  • [ ] Automatic model architecture detection via ComfyAPI
  • [ ] Local & remote model loading with URL support
  • [ ] File browser for image selection (no manual paths)
  • [ ] Auto-strip quotes from input paths
  • [ ] Auto-detect B-LoRAs in lora folder
  • [ ] More research paper implementations 🔬

  • 🙏 Acknowledgments

    This project was inspired by ComfyUI-Diffusers. Special thanks to:

  • Comfy Registry team for platform inclusion
  • ltdrdata for ComfyUI Manager integration
  • The ComfyUI community for continuous feedback

  • 🤝 Contributing

    Contributions, issues, and feature requests are welcome!

    Feel free to check the issues page or submit PRs.


    📝 License

    This project is MIT licensed.


    💬 Contact & Support

  • 🐛 Report a bug
  • 💡 Request a feature
  • Star this repo if you find it useful!

  • Made with ❤️ for the ComfyUI community

    README documentation written with assistance from Claude AI