SonarResizedNoiseAdv
Resized noise, but with a real sizing system
- custom_noise
- SONAR_CUSTOM_NOISE
SonarResizedNoiseAdv is the advanced sibling of SonarResizedNoise: same job - resize a noise item before it reaches the sampler - but with a proper sizing system instead of one hard-coded interpretation of width and height. If you only ever resize noise for SD 1.5 or SDXL, the basic version is fine. If you're working with models that don't follow the classic 8x spatial compression - or you want to think in percentages and padding instead of absolute pixels - this is the one.
What the "Adv" buys you
spatial_mode(relative / percentage / absolute) - the core difference. In relative mode, width/height behave as padding around the source noise. In percentage mode, values are fractions of the original size: 1.0 = 100%, 0.5 = 50%. In absolute mode, they're exact sizes.spatial_compression(default 8) - in absolute mode, your width/height get multiplied by this to reach latent space, because most image models use 8x spatial compression. This is the knob that makes the node friendlier to unusual models: a model with different compression needs a different value here, and it's ignored in percentage mode. The changelog specifically calls out ACE-Steps as a case where absolute sizes are what you want.width/height(default 32) - interpreted perspatial_mode. In absolute mode, remember the tip that carries over from the basic node: set them higher than the image you're actually sampling and let cropping do the work.
Everything else matches the basic node: downscale_strategy (leave on crop for normal workflows), crop_mode with nine positions, crop_offset_horizontal / crop_offset_vertical for nudging the window, upscale_mode / downscale_mode for resampling, plus factor, normalize, and the custom_noise input. Output is the standard SONAR_CUSTOM_NOISE that feeds a Sonar sampler, SamplerConfigOverride, or NoisyLatentLike.
When to reach for it
Use the basic version unless you have a specific reason: a non-8x model, or a workflow where you want to reason in percentages ("give me noise at 50% of the latent, then let the chain crop it"). The percentage mode is genuinely handy for experimentation because you can build a chain that self-adjusts to whatever resolution the sampler happens to use - no manual resizing when you swap between SDXL and a video model.
Installing
Ships with the ComfyUI-sonar pack. Install via ComfyUI Manager (search "ComfyUI-sonar"), or clone it:
cd ComfyUI/custom_nodes
git clone https://github.com/blepping/ComfyUI-sonar
Restart ComfyUI and look under advanced/noise. Pure Python, no extra packages, no model files. One pack-level note: the README's disclaimer about things "changing fairly frequently" applies double to the Advanced nodes - the absolute/percentage system is newer territory for the author, so don't be surprised if a future update renames or reinterprets a mode.
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| factor | FLOAT | 1.000-10000–10000 | Scaling factor for the generated noise of this type. |
| width | FLOAT | 32.0000–10000 | Note: In absolute mode, this should almost always be set to a higher value than the image you're actually sampling. |
| height | FLOAT | 32.0000–10000 | Note: In absolute mode, this should almost always be set to a higher value than the image you're actually sampling. |
| spatial_mode | COMBO | relative | In relative mode, the sizes control padding. In percentage mode, the values will be interpreted as percentages of the origal size where 1.0 would be 100%, 0.5 would be 50% and so on. In absolute mode, this controls the absolute size. |
| spatial_compression | INT | 81–10000 | Most image models use 8x spatial compression. When spatial mode is absolute, the sizes will be multiplied by this value. It is ignored in percentage mode. |
| 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-10000–10000 | 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-10000–10000 | 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. |