Curated suite of specialized samplers, schedulers, and error-correction solvers for ComfyUI.
A consolidated custom node pack for ComfyUI bundling specialized samplers and schedulers from multiple community repositories into a single, clean extension.
This pack maintains full backward compatibility with workflows created using the original individual node packs.
- Sampler DPM++ 2M Sharp (
SamplerDPMPP_2M_Sharp):
An experimental variation of DPM++ 2M (originally distributed for Qwen Image 2.1) that progressively damps the 2nd-order latent history during sampling. Perceptually boosts texture and micro-contrast. Setsharpness = 0.0for stock DPM++ 2M behavior.- Technical Note: While branded as "sharpening," mathematically it applies global scalar attenuation to previous-step latent predictions rather than spatial frequency filtering.
- Restart Sampler Suite (
RestartSampler,KSampler With Restarts[Simple / Advanced / Custom]):
Implements the research paper "Restart Sampling for Improving Generative Processes". Periodically re-injects calibrated noise into the latent trajectory to climb back up sigmas and re-denoise, eliminating anatomical defects and artifacts. - Sampler TCD (
SamplerTCD):
Dedicated solver for Trajectory Consistency Distillation (TCD) models with an adjustablegammaparameter to modulate stochasticity. - Adaptive ODE Solver (
ODESolver/ODE Solver):
Integratestorchdiffeqsolvers (bosh3,fehlberg2,dopri5,adaptive_heun). Dynamically calculates local truncation error and adjusts step sizes automatically to user-defined tolerances (log_rtol,log_atol).
- FlowMatch Euler Discrete Scheduler (
FlowMatchEulerDiscreteScheduler):
Port of Diffusers' FlowMatch Euler Discrete scheduler (popularized by Z-Image Turbo, AI-Toolkit, and validation pipelines). Exposes granular controls over dynamic shifting, base/max sequence length scaling, and custom step ranges (start_at_step/end_at_step). Also registers directly into the defaultKSamplerscheduler dropdown. - Sigmoid Offset Scheduler (
SigmoidOffsetScheduler):
Computes sigma noise curves using an adjustable S-curve (sigmoid) distribution instead of standard linear/exponential decays. Optimized for Chroma and Flux models to concentrate sampling density where structural details solidify. - Restart Scheduler (
RestartScheduler):
Outputs tailored sigma curves with embedded restart segments inserted at specific timesteps/percentages for use withRestartSampler. - TCD Scheduler (
TCDScheduler):
Computes the optimal sigma trajectory for few-step distilled models (TCD LoRAs, Hyper-SD).
| Target Model / Goal | Recommended Sampler | Recommended Scheduler | Suggested Settings & Notes |
|---|---|---|---|
| Artifact / Anatomy Fixes | RestartSampler |
RestartScheduler |
20–30 steps. Set restart segment around t_min: 0.1, t_max: 1.0 to clean up distorted details without changing composition. |
| Z-Image Turbo / Z-Image | Standard Euler / Euler A |
FlowMatchEulerDiscreteScheduler |
8–9 steps. Replicates official diffusers pipeline behavior. |
| Flux.1 / Chroma | Euler or DPM++ 2M Sharp |
SigmoidOffsetScheduler |
square_k: 1.0, base_c: 0.5. Concentrates steps in structure-forming phases. |
| Ultra-Fast Speed (4–8 Steps) | SamplerTCD |
TCDScheduler |
For TCD LoRAs and Hyper-SD. Use gamma: 0.25 - 0.50 to retain fine texture. |
| Flow Models / SD3 (Adaptive) | ODE Solver (fehlberg2) |
sgm_uniform |
rtol: -3, atol: -4. Dynamically steps through velocity fields until error tolerance is met. |
| Qwen Image / DiTs | SamplerDPMPP_2M_Sharp |
Simple or Normal |
sharpness: 0.15 - 0.20. Counteracts multi-step smoothing. |
- In ComfyUI, open ComfyUI Manager → Install via Git URL.
- Paste:
https://github.com/RamonGuthrie/ComfyUI-RBG-Sampler-Scheduler-Extras.git - Restart ComfyUI.
- Open a terminal in your ComfyUI installation directory:
cd ComfyUI/custom_nodes/ - Clone this repository:
git clone https://github.com/RamonGuthrie/ComfyUI-RBG-Sampler-Scheduler-Extras.git
- Install dependencies:
- Portable ComfyUI (Windows):
..\..\python_embeded\python.exe -m pip install -r ComfyUI-RBG-Sampler-Scheduler-Extras/requirements.txt
- Standard Python / Virtual Environment:
pip install -r ComfyUI-RBG-Sampler-Scheduler-Extras/requirements.txt
- Portable ComfyUI (Windows):
- Restart ComfyUI.
Important
If you previously installed any of the standalone repositories (ComfyUI-EulerDiscreteScheduler, ComfyUI-DPMpp-2M-Sharp, ComfyUI_SigmoidOffsetScheduler, ComfyUI_restart_sampling, comfyui-tcd-scheduler, or ComfyUI-ODE), remove or disable them from your custom_nodes/ directory to avoid duplicate registration warnings.
- FlowMatch Euler Discrete: Available directly under the
schedulerdropdown selector in standardKSamplerandKSampler (Advanced)nodes. - KSampler With Restarts: Drop the
KSampler With Restartsnode on your canvas as a direct drop-in replacement for default KSampler.
For modular setups using SamplerCustom or SamplerCustomAdvanced:
- Connect any included sampler (
Sampler DPM++ 2M Sharp,RestartSampler,SamplerTCD, orODE Solver) to thesamplerinput port. - Connect the matching scheduler node (
FlowMatch Euler Discrete Scheduler,Sigmoid Offset Scheduler,RestartScheduler, orTCDScheduler) to thesigmasinput port.
torchdiffusers >= 0.30.0(required for FlowMatch Euler Discrete)torchdiffeq(required for Adaptive ODE Solvers)
Why is the ODE Solver failing to import?
The ODE solver depends ontorchdiffeq. Run pip install torchdiffeq in your ComfyUI Python environment and restart ComfyUI.
Why don't I see FlowMatchEulerDiscreteScheduler in the KSampler dropdown?
- Ensure
diffusers>=0.30.0is installed in the Python environment powering ComfyUI and check console logs for import errors. - If you have node packs that override ComfyUI core schedulers (such as
res4lyf), the dropdown registration may be overwritten. In this case, use the modular FlowMatch Euler Discrete Scheduler (Custom) node and plug itsSIGMASinto a SamplerCustom node.
Will this break existing workflows saved with the original nodes?
No. All internal node class identifiers are identical to upstream releases, ensuring complete backward compatibility with your saved workflows.This pack consolidates work from the following upstream projects and creators:
- ComfyUI-EulerDiscreteScheduler by erosDiffusion
- ComfyUI-DPMpp-2M-Sharp by envy-ai
- ComfyUI_SigmoidOffsetScheduler by silveroxides
- ComfyUI_restart_sampling by ssitu
- comfyui-tcd-scheduler by dfl
- ComfyUI-ODE by redhottensors
This repository is licensed under the GNU General Public License v3.0 (GPL-3.0), incorporating upstream components licensed under GPL-3.0, MIT, and Apache 2.0. See LICENSE for full legal text and third-party notices.