Nodes/ComfyUI-sonar/SonarResizedNoise
ComfyUI Node

SonarResizedNoise

Custom noise type that allows resizing another noise item.

By blepping·Created 3 years ago·Updated about a month ago· 49
SonarResizedNoise
  • custom_noise
  • SONAR_CUSTOM_NOISE
factor1.000
width1152
height1152
downscale_strategycrop
initial_referenceprefer_crop
crop_modecenter
crop_offset_horizontal0
crop_offset_vertical0
upscale_modenearest-exact
downscale_modenearest-exact
normalizedefault
Categoryadvanced/noise

Inputs (12)

NameTypeDefaultDescription
factorFLOAT1.000-10000–10000Scaling factor for the generated noise of this type.
widthINT115216–1073741824Note: This should almost always be set to a higher value than the image you're actually sampling.
heightINT115216–1073741824Note: This should almost always be set to a higher value than the image you're actually sampling.
downscale_strategyCOMBOcropScaling noise is something you'd pretty much only use to create weird effects. For normal workflows, leave this on crop.
initial_referenceCOMBOprefer_cropThe initial latent the noise sampler uses as a reference may not match the requested width/height. This setting controls whether to crop or scale. Note: Cropping can only occur when the initial reference is larger than width/height in both dimensions which is unlikely (and not recommended).
crop_modeCOMBOcenterNote: Crops will have a bias toward the lower number when the size isn't divisible by two. For example, a center crop of size 3 from (0, 1, 2, 3, 4, 5) will result in (1, 2, 3).
crop_offset_horizontalINT0-8000–8000This offsets the cropped view by the specified size. Positive values will move it toward the right, negative values will move it toward the left. The offsets will be adjusted to to fit in the available space. For example, if you have crop_mode set to top_right then setting a positive offset isn't going to do anything: it's already as far right as it can go.
crop_offset_verticalINT0-8000–8000This offsets the cropped view by the specified size. Positive values will move it toward the bottom, negative values will move it toward the top. The offsets will be adjusted to to fit in the available space. For example, if you have crop_mode set to bottom_right then setting a positive offset isn't going to do anything: it's already as far down as it can go.
upscale_modeCOMBOnearest-exactAllows setting the scaling mode when width/height is smaller than the requested size.
downscale_modeCOMBOnearest-exactAllows setting the scaling mode when width/height is larger than the requested size and downscale_strategy is set to 'scale'.
normalizeCOMBOdefaultControls whether the generated noise is normalized to 1.0 strength.
custom_noiseSONAR_CUSTOM_NOISE,OCS_NOISEAllows connecting a custom noise chain. The following input types are supported: SONAR_CUSTOM_NOISE, OCS_NOISE

Outputs (1)

NameTypeDescription
SONAR_CUSTOM_NOISESONAR_CUSTOM_NOISEA custom noise chain.