Nodes/RyanOnTheInside/Flex Latent Noise βš‘πŸ…‘πŸ…žπŸ…£πŸ…˜
ComfyUI Node

Flex Latent Noise βš‘πŸ…‘πŸ…žπŸ…£πŸ…˜

Add controlled, reactive noise straight into a latent

By ryanontheinsideΒ·Created 2 years agoΒ·Updated 5 months agoΒ· 852
Flex Latent Noise βš‘πŸ…‘πŸ…žπŸ…£πŸ…˜
  • latents
  • opt_feature
  • LATENT
β—„strength1.00β–Ί
β—„feature_threshold0.00β–Ί
β—„feature_paramβ–Ύβ–Ί
β—„feature_moderelativeβ–Ί
β—„noise_level0.10β–Ί
β—„noise_typeGaussianβ–Ί

Usually you're trying to get noise out of a latent - that's what the sampler is for. Flex Latent Noise does the opposite on purpose: it injects a controlled amount of noise back in. That's a legitimate technique, not a mistake - a touch of reintroduced noise before a low-denoise pass can add texture and grain a completely clean latent won't have on its own, and because this is a Flex node, the amount of noise can react to an external signal instead of sitting at one fixed value the whole clip.

How it works

noise_type picks the distribution: Gaussian is the standard bell-curve noise diffusion models are actually trained around (the natural choice most of the time), and Uniform spreads values evenly across the range instead, which reads as flatter and grainier rather than "soft." noise_level sets how much gets mixed in. Feed it a FEATURE and set feature_param to noise_level, and the amount of noise can pulse with whatever's driving it - audio energy is the obvious one, giving you a latent that gets grainier or shimmers more intensely on a beat, with feature_mode controlling whether that's a push around your base level (relative) or a scale from zero up to it (absolute).

Inputs and outputs that matter

  • latents (required, LATENT) - the latent to add noise to.
  • noise_type - Gaussian or Uniform.
  • noise_level (default 0.1, 0–1) - how much noise gets mixed in.
  • opt_feature (optional, FEATURE) - wire this in to make noise_level react over time.
  • Output - a single LATENT.

Installing it

Via ComfyUI Manager: search "RyanOnTheInside," install, restart. By hand:

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

then restart ComfyUI. No models to download - it's tensor math, ready as soon as the dependencies are in.

Common issues & troubleshooting

Output looks broken or noisy after the sampler. noise_level is deceptively powerful - even modest values reintroduced right before a low-denoise pass can dominate the result, since the sampler has less room to "clean it up." Start well under the default and increase gradually rather than dialing it in from a high value downward.

No visible difference at all. Check where in your graph this sits relative to your sampler. Noise injected into a latent that then goes through a high-denoise pass gets mostly overwritten by the sampling process itself - this node reads best on a latent headed into a light, detail-preserving pass, not a from-scratch generation.

Feature-driven noise looks erratic rather than musical. A raw, unsmoothed audio feature will produce jumpy, inconsistent grain frame to frame. If you want the shimmer to read as pulsing rather than flickering, smooth the feature upstream before it reaches opt_feature here.

CategoryRyanOnTheInside/FlexFeatures/Targets/Latents

Inputs (8)

NameTypeDefaultDescription
strengthFLOAT1.000–1Overall strength of the effect (0.0 to 1.0) Higher values create more dramatic changes, while lower values are more subtle.
feature_thresholdFLOAT0.000–1Threshold for feature activation (0.0 to 1.0)
feature_paramCOMBOChoose which parameter of the effect to modulate Each effect type has different parameters you can control. Hover over each option to see what it does.
feature_modeCOMBOrelativeHow to apply the feature modulation: - relative: Changes are centered around the original value - absolute: Changes scale directly from zero to the maximum
latentsLATENTInput latent tensor to be processed (LATENT type)
noise_levelFLOAT0.100–1Amount of noise to add (0.0 to 1.0)
noise_typeCOMBOGaussianType of noise to generate ('Gaussian' or 'Uniform')
opt_featureoptFEATUREOptional feature input for modulation Connect any feature node here to control the effect. Features can come from audio, motion, color, or other sources.

Outputs (1)

NameTypeDescription
LATENTLATENTβ€”