Nodes/ComfyUI-sonar/SonarNoiseImage
ComfyUI Node

SonarNoiseImage

Allows adding noise to an image or generating images full of noise.

By blepping·Created 3 years ago·Updated 4 days ago· 49
SonarNoiseImage
  • image
  • custom_noise_opt
  • IMAGE
noise_typegaussian
seed0
noise_min0.000
noise_max1.000
noise_multiplier0.500
channel_modeRGB
blend_modesimple_add
blend_strength0.500
overflow_modeclamp
greyscale_modefalse
pure_noise_modefalse
dtypedefault
cpu_noisetrue
normalizetrue
Categoryimage

Inputs (16)

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
imageIMAGEImage noise will be added to.
noise_minFLOAT0.000-10000–10000Generated noise will be normalized to have values between noise_min and noise_max. If you set them both to the same value then this disables normalization.
noise_maxFLOAT1.000-10000–10000Generated noise will be normalized to have values between noise_min and noise_max. If you set them both to the same value then this disables normalization.
noise_multiplierFLOAT0.500-10000–10000Multiplier for the strength of the generated noise. This is performed after noise_min/max scaling.
channel_modeCOMBORGBRGBA will also add noise to the alpha channel as well if it exists. Only used for 3 or 4 channel images, for other numbers of channels (i.e. one channel) then all channels will be targeted.
blend_modeCOMBOsimple_addControls how the generated noise is combined with the image. simple_add just adds it and blend_strength is ignored in that case.
blend_strengthFLOAT0.500-10000–10000Multiplier for the strength of the generated noise.
overflow_modeCOMBOclampWhen set to clamp, values above/below 0, 1 will be set to those values. When set to rescale, the image values will be rescaled such that the minimum value is 0 and the maximum is 1.
greyscale_modeBOOLEANfalseWhen set to clamp, values above/below 0, 1 will be set to those values. When set to rescale, the image values will be rescaled such that the minimum value is 0 and the maximum is 1.
pure_noise_modeBOOLEANfalseWhen enabled, the original image is only used for its shape and you will be adding noise to an image full of zeros (black), suitable for creating pure noise images.
dtypeCOMBOdefaultWhen set to default it will use the same type as the input tensor (probably float32). You can manually set the dtype if you want, though it likely isn't going to matter. Using dtypes with limited range (float16, bfloat16) isn't recommended.
cpu_noiseBOOLEANtrueControls whether noise will be generated on GPU or CPU.
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. When connected, noise_type has no effect. The following input types are supported: SONAR_CUSTOM_NOISE, OCS_NOISE

Outputs (1)

NameTypeDescription
IMAGEIMAGE