Nodes/RES4LYF/ClownOptions Latent Normalize
ComfyUI Node Runs on cloud

ClownOptions Latent Normalize

Rescale the latent during RES4LYF sampling

By ClownsharkBatwing·Created 2 years ago·Updated 22 days ago· 1,222
ClownOptions Latent Normalize
  • options
  • options
latent_idx_01.0
latent_idx_11.0

This is one of RES4LYF's latent-manipulation options - the pack ships "a wide variety of sigma, latent, and noise manipulation nodes," and this is the latent side of that. It applies normalization/scaling factors to the latent as the sampler works, which is a low-level lever on the image's overall contrast, brightness range, and how "hot" the latent runs during denoising. It's a deep cut. You won't need it for a normal generation, and if you're new to the pack, leave it alone until you have a specific reason.

Where it can pay off: rescaling a latent can counter drift toward washed-out or blown-out results, or nudge the dynamic range of the output. It's the kind of correction people reach for when a particular model/sampler combination consistently pushes contrast in a direction they don't want.

How it works

It packages a couple of per-index scaling factors into an OPTIONS object the sampler applies to the latent during sampling. The two values are entered as text fields defaulting to 1.0 - 1.0 being neutral (no change). Numbers above 1 amplify, below 1 attenuate. Because these are entered as strings, the node can accept more than a single number per field, which is how per-index or per-channel scaling gets expressed; but the safe starting point is a single value near 1.0.

The inputs and output

  • latent_idx_0 (default "1.0") - scaling factor for the first latent index. 1.0 = leave it alone.
  • latent_idx_1 (default "1.0") - scaling factor for the second. Same neutral point.

There's the usual optional options chain input and a single options (OPTIONS) output for the sampler. Both fields at 1.0 is effectively a no-op, which is the honest default.

Installing RES4LYF

ComfyUI Manager: search RES4LYF, install, restart. Or clone:

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

Portable ComfyUI: use the embedded pip under python_embedded/Scripts/. Restart, hard-refresh with F5. No models to download.

Common issues

Colors or contrast went haywire. That's the risk with this node - scaling a latent directly is blunt. If the image turned neon, muddy, or clipped, you moved too far from 1.0. Step back toward neutral in small increments and re-check on a fixed seed.

No effect. Both fields default to 1.0, which changes nothing. You have to enter non-neutral values to see anything.

Type it as a valid number. These are string fields, so a typo (a stray character, an empty box) can error or be read oddly. Keep the entries to clean numeric values.

Ignored downstream. Same rule as every ClownOptions node: the options output must reach a RES4LYF sampler's options input, directly or through a chain, or it does nothing. And honestly - get your sampler, scheduler, and CFG right before you start hand-scaling latents; this is a corrective tool, not a foundation.

CategoryRES4LYF/sampler_options

Inputs (3)

NameTypeDefaultDescription
latent_idx_0STRING1.0Normalization factor(s) for tensor index 0. Comma-separated for per-step (e.g., '1.0,1.0,0.8,0.5').
latent_idx_1STRING1.0Normalization factor(s) for tensor index 1. Comma-separated for per-step (e.g., '1.0,1.0,0.8,0.5').
optionsoptOPTIONS

Outputs (1)

NameTypeDescription
optionsOPTIONS