SonarResizedNoise
Stretch, crop, and reposition your noise
- custom_noise
- SONAR_CUSTOM_NOISE
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.cropis the normal default.crop_mode- nine positions (center, corners, edges) pluscrop_offset_horizontal/crop_offset_verticalto nudge the window around. Offsets are clamped into the available space, so atop_rightcrop 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-exactis the default;areaandbislerpare 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. Defaultprefer_cropis fine; the note says cropping usually isn't possible anyway.factorandnormalize- 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.
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| factor | FLOAT | 1.000-10000–10000 | Scaling factor for the generated noise of this type. |
| width | INT | 115216–1073741824 | Note: This should almost always be set to a higher value than the image you're actually sampling. |
| height | INT | 115216–1073741824 | Note: This should almost always be set to a higher value than the image you're actually sampling. |
| downscale_strategy | COMBO | crop | Scaling noise is something you'd pretty much only use to create weird effects. For normal workflows, leave this on crop. |
| initial_reference | COMBO | prefer_crop | The 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_mode | COMBO | center | Note: 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_horizontal | INT | 0-8000–8000 | This 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_vertical | INT | 0-8000–8000 | This 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_mode | COMBO | nearest-exact | Allows setting the scaling mode when width/height is smaller than the requested size. |
| downscale_mode | COMBO | nearest-exact | Allows setting the scaling mode when width/height is larger than the requested size and downscale_strategy is set to 'scale'. |
| normalize | COMBO | default | Controls whether the generated noise is normalized to 1.0 strength. |
| custom_noise | SONAR_CUSTOM_NOISE,OCS_NOISE | Allows connecting a custom noise chain. The following input types are supported: SONAR_CUSTOM_NOISE, OCS_NOISE |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| SONAR_CUSTOM_NOISE | SONAR_CUSTOM_NOISE | A custom noise chain. |