ComfyUI Node

Sigmas Rebalance

Split a schedule without guessing sigma gaps

By nova452·Created 5 months ago·Updated 4 days ago· 555
Sigmas Rebalance
  • sigmas
  • model
  • sigmas_high
  • sigmas_low
◄step0.500►
◄bound0.0000►
◄steps0►
◄schedulerresample►
◄shift1.00►

Two-stage sampling normally goes like this: generate with model A, then hand the latent to model B on the second half of the schedule. The handoff is where it always gets mushy. How much noise is left when B takes over? Nobody knows, because you picked a split point and whatever sigma happened to be sitting there is the answer.

Sigmas Rebalance makes that a number you choose. Feed it a SIGMAS and it gives you two: sigmas_high for the first sampler, sigmas_low for the second, with a gap or an overlap between them that you specify in a scale that means the same thing at any step count and anywhere on the curve.

Why you'd reach for it

Three uses, in rough order of how often they come up.

A refiner or second model taking over mid-schedule. This is the node's stated purpose - split the sampling into two stages so a different model can pick up cleanly.

Detail recovery. A negative bound leaves a gap, so the second sampler is handed a latent still carrying the noise of the cut region - the classic "second pass adds texture" trick, as a dial instead of a guess.

How it works

step is where the split sits, as a fraction of the schedule - 0 is the first sigma, 1 the last, default 0.5. It's fractional, so it can fall inside a single step.

bound is the size of the cut, expressed as impact rather than raw sigma: the node converts the sigma at your split point into log signal-to-noise, applies the jump the bound describes, and converts back to positions. -0.01 is as strong as a 0.02 sigma gap at sigma 0.5, whatever the step count - so the same number behaves consistently across models and schedules instead of drifting.

Then it slices: sigmas_high runs from the start to the cut, sigmas_low from the cut to the end. Negative bound puts sigmas_low's first sigma below where sigmas_high ended - a gap. Positive puts it above - an overlap.

It handles flow models and epsilon/v models differently under the hood (sigma 1→0 versus sigmas well above 1), and it works this out from the schedule itself, so it isn't tied to the flow-model assumptions most new nodes bake in.

The other inputs

steps at 0 means "use the incoming sigmas as they are" - that's the honest default and what you want most of the time. Set it to 1 or more and the node rebuilds the schedule at that step count first.

scheduler only matters when steps is set. resample stretches the incoming curve to the new count, keeping the first and last sigma - whatever shape and shift you had survives without the node needing to know what they were, and shift is ignored. Pick any other scheduler (karras, beta, kl_optimal, …) and it rebuilds the steps between the same two end sigmas, like BasicScheduler would.

The optional model input is how those rebuilt schedules get the model's own sampling settings. Connect it and the model's shift and sigma range are used; leave it out and shift is the only thing steering.

Outputs: sigmas_high and sigmas_low, both SIGMAS. Wire them into two SamplerCustomAdvanced nodes, the second taking the first one's output latents.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/nova452/ComfyUI-ConditioningKrea2Rebalance
# restart ComfyUI

No dependencies and no model files. Manager users: search ComfyUI-Conditioning-Rebalance (the repo's old name is Rebalance-Pack; the README still says so). Category Rebalance-Pack/sampling.

Where people get burned

The sign. Negative is more noise in the second stage, positive is less. Everyone gets this backward once and concludes the node does nothing - change it by 0.05 and the difference is obvious.

shift doing nothing. Two reasons, both in the tooltip and neither obvious: it's ignored when scheduler is resample, and it's overridden entirely when a model is connected. If you're tuning shift and seeing no change, check those first.

Rebuilding a schedule you already liked. steps above 0 throws away the incoming curve's spacing. If your sigmas came from a tuned scheduler, setting steps to that same number is not a no-op.

Degenerate input. A schedule with fewer than two entries comes back as two clones, with no complaint.

Start at step 0.5, bound -0.01, steps 0. If you can't see a difference, your second sampler probably isn't reading the latents you think it is.

A note on the pack

Worth knowing who wrote this. The pack started life as a Krea 2 conditioning rebalance node published the same day Krea 2's weights dropped, and it's the one the community argued about - it strips refusals and costs some prompt adherence. That technique has since been vendored into other tools, with Image Oasis shipping it as an always-on quality fix. Point is: this is someone who thinks in signal-to-noise and schedule position. Small, precise nodes that assume you'll read the tooltips.

CategoryRebalance-Pack/sampling

Inputs (7)

NameTypeDefaultDescription
sigmasSIGMAS—
stepFLOAT0.5000–1Where the split sits in the schedule: 0 = first sigma, 1 = last sigma.
boundFLOAT0.0000-0.4999–0.4999Size of the cut by its impact (signal-to-noise change), so the same value has the same strength anywhere and at any step count: -0.01 is as strong as a 0.02 sigma gap at sigma 0.5. Negative: a gap between the halves. Positive: the halves overlap.
stepsINT00–100000 = use the incoming sigmas as they are. 1 or more = recalculate the schedule at this many steps before splitting.
schedulerCOMBOresampleUsed when steps is 1 or more. Both keep the incoming first and last sigma. resample: stretch the incoming curve to the new step count (shift is ignored). Any other: rebuild the steps between those two sigmas with that scheduler, using the connected model (or shift when no model is connected).
shiftFLOAT1.000.01–100Only used by a rebuilt schedule when no model is connected: flow shift (1.0 = none). With a model connected, its own sampling settings are used.
modeloptMODELOptional. Rebuilt schedules use this model's own sampling (shift, sigma range), exactly like BasicScheduler. Works for any model.

Outputs (2)

NameTypeDescription
sigmas_highSIGMAS—
sigmas_lowSIGMAS—