ComfyUI Extension: ComfyUI-Diffusers

Authored by Limitex

Created

Updated

129 stars

This extension enables the use of the diffuser pipeline in ComfyUI.

README

ComfyUI-Diffusers

This repository is a custom node in ComfyUI.

Overview

Workflow 1

This is a program that allows you to use Hugging Face Diffusers module with ComfyUI. Additionally, Stream Diffusion is also available.

Workflow

Workflow 2

In addition, real-time generation is possible by doing the following. When running, please enable Auto Queue in Extra options.

Workflow2

Workflow 3

In combination with VideoHelperSuite, you can also run vid2vid.

Workflow3

The execution looks like this:

Workflow3demo

Usage

Run the following command inside ComfyUI/custom_nodes.

git clone https://github.com/Limitex/ComfyUI-Diffusers.git
cd ComfyUI-Diffusers
pip install -r requirements.txt
git clone https://github.com/cumulo-autumn/StreamDiffusion.git
python -m streamdiffusion.tools.install-tensorrt

Recommended Custom Nodes

https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite.git

Node

Diffusers Pipeline Loader (DiffusersPipelineLoader)

Diffusers Vae Loader (DiffusersVaeLoader)

Diffusers Scheduler Loader (DiffusersSchedulerLoader)

Diffusers Model Makeup (DiffusersModelMakeup)

Diffusers Clip Text Encode (DiffusersClipTextEncode)

Diffusers Sampler (DiffusersSampler)

Create Int List (CreateIntListNode)

LcmLoraLoader (LcmLoraLoader)

StreamDiffusion Create Stream (StreamDiffusionCreateStream)

StreamDiffusion Sampler (StreamDiffusionSampler)

StreamDiffusion Warmup (StreamDiffusionWarmup)

StreamDiffusion Fast Sampler (StreamDiffusionFastSampler)

Reference

https://github.com/cumulo-autumn/StreamDiffusion