ComfyUI Node

Sampler Rebalance

The extra noise a sigma cut leaves behind, minus the cut

By nova452·Created 5 months ago·Updated 4 days ago· 555
Sampler Rebalance
  • sampler
  • SAMPLER
◄bound0.0000►
◄start0.000►
◄end1.000►
◄detail_size1.50►

Cutting a sigma schedule in half and running a second sampler is one of the oldest tricks in this hobby: you leave a gap between the two halves, the second sampler gets a latent carrying more noise than its label claims, and the image picks up detail it wouldn't otherwise have. It works. It's also fiddly - you're guessing a sigma gap, then guessing where to put it.

Sampler Rebalance takes that trick apart. It leaves your schedule exactly as it is, wraps your sampler, and between steps it boosts the noise the latent is already carrying. Same effect, no cut, and one number on a scale that means the same thing everywhere.

Why you'd reach for it

The README's headline use is specific and honest: MiniMax MOSS Image has a blur problem, and this is the pack's answer to it (there's a before/after comparison in the repo). Blurry output from a model that's otherwise doing what you asked is exactly the symptom of "the sampler is settling too early" - you want to keep pushing noise in at the small scale without re-rolling your whole composition.

It's also the safer alternative to a two-sampler setup when you don't actually want two samplers: one model, one sampler, one pass, extra detail.

How it works

The node takes a SAMPLER and returns a SAMPLER. It runs the wrapped sampler one step at a time and, between steps, splits the latent into the clean image the model just predicted plus the noise around it. Then it scales that noise up.

Because it's the latent's own noise being made stronger - not fresh random noise - the result is deterministic. Same seed, same output, which is not true of anything that reinjects noise blindly.

The maths keeps the signal-to-noise drop identical to what a sigma gap would have produced: on flow models the noise is multiplied by e^impact, on epsilon/v models by e^(impact/2). bound is the total impact, split evenly across the steps between start and end. Negative gives you more noise (roughly what a negative cut in Sigmas Rebalance does); positive gives you less. At bound = 0 it hands off to the wrapped sampler untouched - identical noise, identical multistep history.

detail_size is the part worth understanding. At the default 1.5, only noise finer than 1.5 latent pixels gets boosted; the noise is split into fine detail and a Gaussian-blurred large-scale remainder, and only the fine part is scaled. That's what stops the effect from rearranging your composition. Flux and MOSS use 16 image pixels per latent pixel, SD uses 8, so 1.5 latent pixels is a genuinely small feature. Set it to 0 and you boost the whole noise, layout included - usually not what you want.

The inputs

sampler (from KSamplerSelect or similar), bound (-0.4999 to 0.4999, default 0), start and end (schedule positions, 0 = first sigma, 1 = last), detail_size (default 1.5). Output is a single SAMPLER that goes into SamplerCustom / SamplerCustomAdvanced where your sampler used to be.

Start at bound = -0.01, start = 0.2, end = 0.8. That's a real effect without a visible one.

Install

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

No dependencies, no model files, nothing to pip. Manager users: search ComfyUI-Conditioning-Rebalance. Category is Rebalance-Pack/sampling.

Where people get burned

It refuses two samplers on purpose: dpm_fast and dpm_adaptive can't be stepped, and the node raises a plain error rather than pretending. Use something step-wise.

Because it steps the sampler itself, multistep samplers don't get to carry their history across the whole run the way a single call lets them - which is why bound = 0 is the "give me exactly what I had" setting and not just a neutral one.

And keep detail_size non-zero unless you've decided you want layout noise. The whole reason this node is safer than a raw sigma cut is that it leaves the big shapes alone; turning that protection off is a choice, not an upgrade.

Finally: this is a texture/detail dial, not a quality slider. If your image is blurry because the model is wrong for the job, or the LoRA is fighting it, more fine noise will just make it a noisy blur. It fixes a specific failure - detail loss from a sampler that's settling - and for that, it's the cleanest tool in the pack.

CategoryRebalance-Pack/sampling

Inputs (5)

NameTypeDefaultDescription
samplerSAMPLER—
boundFLOAT0.0000-0.4999–0.4999Total impact, the same scale as Sigmas Rebalance: -0.01 leaves as much extra noise in total as one Sigmas Rebalance cut at -0.01, but without cutting the schedule, split evenly over the steps between start and end. Negative: more noise. Positive: less. 0 = the sampler unchanged.
startFLOAT0.0000–1First schedule position (0 = first sigma, 1 = last) where noise is boosted.
endFLOAT1.0000–1Last schedule position where noise is boosted.
detail_sizeFLOAT1.500–16Only noise finer than this many latent pixels is boosted (MOSS / Flux: 1 latent pixel = 16 image pixels, SD: 8), so layout, pose and subject count are left alone. Bigger = coarser detail is boosted too. 0 = boost all of the noise.

Outputs (1)

NameTypeDescription
SAMPLERSAMPLER—