Nodes/ComfyUI-sonar/NoisyLatentLike
ComfyUI Node

NoisyLatentLike

Allows generating noise (and optionally adding it) based on a reference latent. Note: For img2img workflows, you will generally want to enable add_to_latent as well as connecting the model and sigmas inputs.

By blepping·Created 3 years ago·Updated about a month ago· 49
NoisyLatentLike
  • latent
  • custom_noise_opt
  • mul_by_sigmas_opt
  • model_opt
  • LATENT
noise_typegaussian
seed0
multiplier1.000
add_to_latentfalse
repeat_batch1
cpu_noisetrue
normalizetrue
Categorylatent/noise

Inputs (11)

NameTypeDefaultDescription
noise_typeCOMBOgaussianSets the type of noise to generate. Has no effect when the custom_noise_opt input is connected.
seedINT00–18446744073709550000Seed to use for generated noise
latentLATENTLatent used as a reference for generating noise.
multiplierFLOAT1.000-10000–10000Multiplier for the strength of the generated noise. Performed after mul_by_sigmas_opt.
add_to_latentBOOLEANfalseAdd the generated noise to the reference latent rather than adding it to an empty latent. Generally should be enabled for img2img workflows.
repeat_batchINT11–10000Repeats the noise generation the specified number of times. For example, if set to two and your reference latent is also batch two you will get a batch of four as output.
cpu_noiseBOOLEANtrueControls whether noise will be generated on GPU or CPU. Only affects noise types that support GPU generation (maybe only Brownian).
normalizeBOOLEANtrueControls whether the generated noise is normalized to 1.0 strength before scaling. Generally should be left enabled.
custom_noise_optoptSONAR_CUSTOM_NOISE,OCS_NOISEAllows connecting a custom noise chain. The following input types are supported: SONAR_CUSTOM_NOISE, OCS_NOISE
mul_by_sigmas_optoptSIGMASWhen connected, will scale the generated noise by the first sigma. Must also connect model_opt to enable.
model_optoptMODELUsed when mul_by_sigmas_opt is connected, no effect otherwise.

Outputs (1)

NameTypeDescription
LATENTLATENTThe noisy latent image.