Nodes/ComfyUI-sonar/SonarResizedNoise
ComfyUI Node

SonarResizedNoise

Stretch, crop, and reposition your noise

By blepping·Created 3 years ago·Updated 8 days 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

Noise doesn't have to be generated at the exact size of your latent. SonarResizedNoise lets you take one noise item and resize it to a different width and height before it hits the sampler - which matters more than it sounds, because the size of your noise changes its character. Big noise is coarse and blobby; small noise is fine and grainy. This node is how you dial that in independently of your image resolution.

The author is refreshingly upfront about the use case: "Scaling noise is something you'd pretty much only use to create weird effects. For normal workflows, leave this on crop." So treat it as a deliberate tool, not a default.

The inputs that matter

  • custom_noise - the noise chain to resize.
  • width / height (default 1152) - the target size in latent pixels. The tooltip carries an important hint: "This should almost always be set to a higher value than the image you're actually sampling." Oversized noise that gets cropped down keeps more of its structure; undersized noise upscaled to fill the latent smears and looks mushy. Note one latent pixel ≈ eight image pixels for most models.
  • downscale_strategy (crop / scale) - what happens when the source is bigger than the target. crop is the normal default.
  • crop_mode - nine positions (center, corners, edges) plus crop_offset_horizontal / crop_offset_vertical to nudge the window around. Offsets are clamped into the available space, so a top_right crop with a positive horizontal offset does nothing - it's already as far right as it can go.
  • upscale_mode / downscale_mode - which resampling method to use (bilinear, nearest, bicubic, area, etc.). nearest-exact is the default; area and bislerp are worth a try when you want softer results.
  • initial_reference - when the sampler's reference latent isn't the same size as your requested width/height, whether to crop or scale to match. Default prefer_crop is fine; the note says cropping usually isn't possible anyway.
  • factor and normalize - strength and the standard rebalance control.

Output is a SONAR_CUSTOM_NOISE, feeding a Sonar sampler, SamplerConfigOverride, or NoisyLatentLike like any other chain item.

A practical pattern

Resized noise shines in the "weird effects" department the author mentions: generate a small, low-resolution noise (say 256x256 latent), upscale it with area or bislerp to your full latent size, and the sampling starts from soft, structured noise instead of white static - a low-frequency bias that can push compositions toward smoother, more abstract shapes. Combined with the pack's scheduling node, you can use it for the first N percent of sampling and fall back to Gaussian after, which is exactly how the pack's own examples mix extreme noise types.

Installing

Part of ComfyUI-sonar - install once via ComfyUI Manager (search "ComfyUI-sonar") or:

cd ComfyUI/custom_nodes
git clone https://github.com/blepping/ComfyUI-sonar

Restart ComfyUI, find it under advanced/noise. No extra dependencies or model downloads. And remember the pack-level caveat: inputs and internals have shifted between versions, so if a saved workflow breaks after an update, it's usually the pack changing, not you.

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.