Home

Awesome

ComfyUI-TCD

<p align="center"> <a href="./README.md">English</a> | <a href="./README.zh-CN.md">简体中文</a> </p>

If my work helps you, consider giving it a star.

This repository is the ComfyUI custom node implementation of TCD Sampler mentioned in the TCD paper.

TCD, inspired by Consistency Models, is a novel distillation technology that enables the distillation of knowledge from pre-trained diffusion models into a few-step sampler. It is well known LCM has some problems in generating clear and detailed images. TCD significantly improves image quality than LCM, also with fewer steps. And TCD allows for adjusting the level of random noise in the samples, producing results with varying degrees of detail.

That is:

Some of my other projects that may help you.

:star2: Changelog

Example workflows

The examples directory has workflow example. There are images generated with TCD and LCM in the assets folder.

tcd

tcd_with_low_NFEs

TCD maintains superior generative quality at high NFEs (steps).

tcd_with_high_NFEs

TCD resultLCM result
low NFEs
high NFEs

[!NOTE]
Except for cfg, step, and sampler, other parameters remain the same.

ddim 30 stepdpmpp_2m 30 stepTCD 4 stepLCM 4 step
<img src="./assets/ori_ddim_step30.png" width="150"/><img src="./assets/ori_dpmpp_2m_step30.png" width="150"/><img src="./assets/tcd_step4.png" width="150"/><img src="./assets/lcm_ste4.png" width="150"/>

The above comparison results show that TCD can produce better results than LCM details, no longer so blurry and bland.

LoRAs

Some LoRAs available on TCD.

TCD LoRAs from TCD Team.

Hyper-SD 1-Step Unified LoRAs from ByteDance Team.

INSTALL

git clone https://github.com/JettHu/ComfyUI-TCD

# Or use ComfyUI-Manager

Nodes reference

TCD Model Sampling Discrete

Inputs

Configuration parameters