Tan Scheduler
A tangent-shaped noise schedule you can bend
- SIGMAS
Tan Scheduler builds a sigma schedule from a tangent curve. In ComfyUI terms, it's a scheduler node - it produces the SIGMAS that decide how much noise comes off at each step - and its shape is driven by the tan function, which gives you a curve you can make gentle or steep by turning a few dials. Its output plugs into any sampler that takes a sigmas input, RES4LYF's SharkSampler included.
Why another scheduler? Because on flow-matching models the noise schedule is one of the levers that genuinely moves quality, and the pack's whole thesis is giving you finer control over that curve than the stock dropdown's fixed options. Where beta57 is a preset, Tan Scheduler is a parametric curve: you decide where the schedule starts, where it ends, and how sharply it bends in between.
How it works
The node evaluates a tangent-based function across your step count to produce descending sigma values. The slope, offset, start, and end parameters reshape and reposition that curve - steepening it, shifting it, or clamping its range - so you can concentrate denoising effort early (more composition) or late (more detail) depending on how you set them. It's a build-it-yourself schedule rather than a named preset.
The inputs that matter
- steps (
INT, default 20) - how many sigma values, i.e. your step count. This is the one that behaves like every other scheduler's steps. - slope (
FLOAT) - how sharply the curve bends. This is the main character dial; small changes reshape where the effort lands. - start / end (
FLOAT) - the ends of the schedule's range, defining where the curve begins and finishes. - offset (
FLOAT) - shifts the curve along, moving the concentration of denoising work. - sgm (
BOOLEAN) and pad (BOOLEAN) - toggles for SGM-style handling of the final sigma and for padding the schedule; leave both off unless a specific model or workflow calls for them.
The single output is SIGMAS - wire it into your sampler's sigmas input.
Installing it
ComfyUI Manager: search RES4LYF, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/ClownsharkBatwing/RES4LYF/
cd RES4LYF
pip install -r requirements.txt
pip install in the venv or portable Python, restart, hard-refresh (F5). No downloads.
Where people get tripped up
The honest problem with Tan Scheduler is the same one the community keeps flagging about the whole pack: it hands you a lot of control and almost no guidance on what the numbers should be. All four of the curve dials default to 20, which is a starting point, not a recommendation, and there's no model card telling you the "right" slope. Treat it as a search space - change one dial, preview the curve, look at the output - not a set-and-forget.
That makes the pairing rule non-negotiable: run the output through a sigma-preview node so you can see the schedule before you sample. Reshaping a noise curve blind is how you get a mystery quality regression you can't explain. And the usual flow-matching caveat holds - this belongs on Flux, Wan, Z-Image and friends; on SD 1.5 or SDXL a reshaped schedule like this fights the architecture rather than helping it.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| steps | INT | 200–100000 | — |
| offset | FLOAT | 20.00–100000 | — |
| slope | FLOAT | 20.0-100000–100000 | — |
| start | FLOAT | 20.0-100000–100000 | — |
| end | FLOAT | 20.0-100000–100000 | — |
| sgm | BOOLEAN | false | — |
| pad | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| SIGMAS | SIGMAS | — |