Universal KSampler (Nukun)
A KSampler that lets you swap in colored noise without rebuilding your graph
- model
- positive
- negative
- latent_image
- output
- denoised_output
- seed
You've got a working KSampler and you're happy with it. The last thing you want is to rewire the whole sampling section just to try a different kind of noise. Universal KSampler (Nukun) is the node that lets you skip the rewiring: it looks and behaves like a stock KSampler, but the noise inside is a Nukun noise profile instead of plain Gaussian.
It's one node in a small personal pack by OnekoSL (Nukun_ComfyUI_Nodes). Don't come here expecting a huge community footprint - it's a utility drawer, and this is the drawer's friendliest knob.
How it works
A normal KSampler hides the machinery: it builds a CFG guider from your model and conditionings, picks the sampler object, computes a sigma schedule, and generates initial noise. Nukun Universal KSampler does all of that internally too - reading the source, it literally constructs CFGGuider, the sampler, and the sigmas for you. The difference is the noise step. Instead of calling ComfyUI's stock random noise, it hands your noise_profile to Nukun's own generator.
That's the whole pitch: you keep your KSampler-shaped graph, and gaussian + auto + 1.0 is a drop-in, ComfyUI-core-like baseline. Change nothing, get the same result as a stock KSampler. Then, when you're curious, flip noise_profile to pink, pyramid, or one of the fancier composites and rerun on the same seed to see how the starting texture changes the image. These expanded profiles are Sonar-inspired but implemented right in the pack - no separate ComfyUI-sonar install needed.
The inputs that actually matter
Most of the inputs are the ones you already know from KSampler: model, positive, negative, latent_image, steps, cfg, sampler_name, scheduler, denoise, seed. The interesting ones are:
noise_profile- 29 options. Basic types likegaussian,uniform,pink,brown,blue,violet,pyramid,perlin, plus compositeillustrious_*andpony_v7_*recipes.noise_strength- a multiplier on the generated noise.1.0is the faithful default; strong experimental profiles likegreen_testorrainbow_intenseare much easier to control at lower strengths.detail_bias- only affects composite profiles. Lower emphasizes larger forms, higher emphasizes detail.noise_device-autouses CPU for reproducibility,cudaif you want GPU noise (falls back to CPU).add_noise- uncheck to sample with zero noise.
Three outputs come out: output (the latent you VAE-decode), denoised_output (the direct denoise result, handy for comparisons), and seed - the actual noise seed used, which is nice for filenames.
One honest caution
cfg defaults to 7, which is an SD 1.5/SDXL number. If you're sampling a flow-matching model (Flux, Wan, Z-Image), that default will burn your image - check what your model actually wants before you blame the noise profile.
Installing it
Easiest is ComfyUI Manager - search "Nukun". Or clone it:
cd ComfyUI/custom_nodes
git clone https://github.com/OnekoSL/Nukun_ComfyUI_Nodes
Restart ComfyUI. Runtime deps are just numpy, Pillow, scipy, and PyWavelets - no model downloads for this node.
If your output suddenly looks different after switching from a stock KSampler, your noise_profile or noise_strength is doing something. gaussian + auto + 1.0 is always the "did I break it?" reset.
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| positive | CONDITIONING | — | |
| negative | CONDITIONING | — | |
| latent_image | LATENT | — | |
| seed | INT | 00–18446744073709550000 | Seed used for the selected Nukun noise profile. |
| steps | INT | 201–10000 | Number of denoising steps. |
| cfg | FLOAT | 7.00–100 | Classifier-free guidance scale. |
| sampler_name | COMBO | Sampling algorithm. | |
| scheduler | COMBO | Sigma scheduler. | |
| denoise | FLOAT | 1.000–1 | Lower values keep more of the input latent. |
| add_noise | BOOLEAN | true | Generate noise from the selected Nukun profile. Disable this to sample with zero noise. |
| noise_device | COMBO | auto | auto uses CPU for ComfyUI-core-like reproducibility. cuda falls back to CPU when unavailable. |
| noise_profile | COMBO | gaussian | Basic noise type or composite Nukun profile. |
| noise_strength | FLOAT | 1.000–5 | Final noise multiplier. For gaussian + auto, 1.0 keeps ComfyUI-core-like behavior. |
| detail_bias | FLOAT | 0.350–1 | Only affects composite profiles. Lower values emphasize larger forms; higher values emphasize details. |
| preview_method | COMBO | default | Per-node latent preview override. For low memory, latent2rgb gives an early lightweight preview; none disables previews. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| output | LATENT | — |
| denoised_output | LATENT | — |
| seed | INT | — |