Nodes/RES4LYF/ClownOptions Momentum
ComfyUI Node Runs on cloud

ClownOptions Momentum

Add momentum to the RES4LYF sampling trajectory

By ClownsharkBatwing·Created 2 years ago·Updated 22 days ago· 1,222
ClownOptions Momentum
  • options
  • options
momentum0.00

This one borrows an idea from optimizers. If you've ever tuned momentum on an SGD training run, it's the same intuition: instead of each denoising step being decided purely by the current model prediction, a little of the previous step's direction carries forward. It smooths the path the latent takes toward the final image.

It's a niche, taste-level knob - one of RES4LYF's many "sigma, latent, and noise manipulation" tweaks aimed at shaping the sampling trajectory rather than the prompt. You will not need it to get good results, and most workflows leave it off. But when a generation feels slightly jittery or a solver is overshooting fine detail, a touch of momentum can settle it.

How it works

The node produces an OPTIONS object carrying a single momentum value, which the sampler applies while it integrates. Positive momentum reinforces the running direction (smoother, more continuous motion through latent space); negative momentum pushes against it (a damping / anti-overshoot effect). The magnitude is small by nature - this is a nudge, not a lever.

The input and output

  • momentum (default 0) - the whole node. At 0 it does nothing, which is the honest default. Nudge it slightly positive (think small fractions, not whole numbers) to smooth the trajectory; go slightly negative to dampen. Because the range is enormous on paper, resist the urge to type a big number - large values here distort rather than refine.

There's an optional options input so you can chain this onto other ClownOptions nodes, and the single options (OPTIONS) output that carries the stacked settings onward to the sampler.

Installing RES4LYF

ComfyUI Manager: search RES4LYF, install, restart. Manual:

cd ComfyUI/custom_nodes
git clone https://github.com/ClownsharkBatwing/RES4LYF
pip install -r RES4LYF/requirements.txt

Portable ComfyUI: use the embedded pip at python_embedded/Scripts/pip.exe. Restart, then hard-refresh with F5. Nothing to download - RES4LYF ships code, not weights.

Common issues

No effect at the default. Momentum defaults to 0, which is intentionally a pass-through. You have to dial in a nonzero value to see anything.

Big values wreck the image. The parameter accepts a wild range, but useful territory is small. If a value melts your output, you overshot by an order of magnitude - back off hard.

It's doing nothing because the sampler never sees it. Like every ClownOptions node, this only matters once its options output reaches a RES4LYF sampler's options input, directly or through a chain. Left dangling, it changes nothing.

You probably don't need it. Genuinely - this is deep in experimental-tweak territory that the pack itself calls "subject to further changes." Get your sampler, scheduler, steps and eta right first. Momentum is a fine-tuning afterthought, not a fix for a bad base setup.

CategoryRES4LYF/sampler_options

Inputs (2)

NameTypeDefaultDescription
momentumFLOAT0.00-10000–10000Accelerate convergence with positive values when sampling, negative values when unsampling.
optionsoptOPTIONS

Outputs (1)

NameTypeDescription
optionsOPTIONS