Nodes Browser

ComfyDeploy: How ComfyUI-TCD-scheduler works in ComfyUI?

What is ComfyUI-TCD-scheduler?

ComfyUI Custom Sampler nodes that implement Zheng et al.'s Trajectory Consistency Distillation based on [a/https://mhh0318.github.io/tcd](https://mhh0318.github.io/tcd)

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI-TCD-scheduler and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ComfyUI-TCD-scheduler

ComfyUI Custom Sampler nodes that implement Zheng et al.'s Trajectory Consistency Distillation based on https://mhh0318.github.io/tcd

This custom node repository adds TCDScheduler, SamplerTCD Euler A, and SamplerTCD nodes to the Custom Sampler category.

Just clone it into your custom_nodes folder and you can start using it as soon as you restart ComfyUI.

NOTE: SamplerTCD is a WIP and currently just operates as DDIM with no gamma parameter. Please use SamplerTCD Euler A for the time being.

LCMScheduler has one special parameter:

  • gamma, a parameter used to control the stochasticity in every step. When gamma = 0, it represents deterministic sampling, whereas gamma = 1 indicates full stochastic sampling. In a way it acts as a sort of a crossfade between Karras and Euler.

    The default value is 0.3, but it is recommend using a higher value when increasing the number of inference steps.

Thanks to @laksjdjf for their help with converting from sigmas to timestep and SamplerTCDEulerA.

BTW If you're curious about learning more about samplers and schedulers, check out this article: https://www.felixsanz.dev/articles/complete-guide-to-samplers-in-stable-diffusion