ComfyUI Node
SonarNoiseImage
Allows adding noise to an image or generating images full of noise.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| noise_type | COMBO | gaussian | Sets the type of noise to generate. Has no effect when the custom_noise_opt input is connected. |
| seed | INT | 00–18446744073709550000 | Seed to use for generated noise |
| image | IMAGE | Image noise will be added to. | |
| noise_min | FLOAT | 0.000-10000–10000 | Generated 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_max | FLOAT | 1.000-10000–10000 | Generated 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_multiplier | FLOAT | 0.500-10000–10000 | Multiplier for the strength of the generated noise. This is performed after noise_min/max scaling. |
| channel_mode | COMBO | RGB | RGBA 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_mode | COMBO | simple_add | Controls how the generated noise is combined with the image. simple_add just adds it and blend_strength is ignored in that case. |
| blend_strength | FLOAT | 0.500-10000–10000 | Multiplier for the strength of the generated noise. |
| overflow_mode | COMBO | clamp | When 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_mode | BOOLEAN | false | When 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_mode | BOOLEAN | false | When 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. |
| dtype | COMBO | default | When 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_noise | BOOLEAN | true | Controls whether noise will be generated on GPU or CPU. |
| normalize | BOOLEAN | true | Controls whether the generated noise is normalized to 1.0 strength before scaling. Generally should be left enabled. |
| custom_noise_optopt | SONAR_CUSTOM_NOISE,OCS_NOISE | Allows 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)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |