Nodes/RES4LYF/Legacy_ClownSampler
ComfyUI Node Runs on cloud

Legacy_ClownSampler

The standalone SAMPLER version of RES4LYF's solver, kept for old workflows

By ClownsharkBatwing·Created 2 years ago·Updated 18 days ago· 1,222
Legacy_ClownSampler
  • latent_guide
  • latent_guide_inv
  • latent_guide_mask
  • latent_guide_weights
  • sigmas_override
  • SAMPLER
eta0.25
eta_var0.00
s_noise1.00
d_noise1.00
noise_modehard
noise_sampler_typebrownian
alpha0.0
k1
noise_seed-1
rk_typeres_2m
exp_modefalse
multistepfalse
implicit_steps0
cfgpp0.00
latent_guide_weight0.00
guide_modemean
rescale_floortrue

RES4LYF went through a rewrite, and rather than break every workflow that used the old nodes, the pack kept the previous generation around with "Legacy" prepended to their names. Legacy_ClownSampler is one of those: the standalone SAMPLER-producing node from before the current all-in-one ClownsharKSampler. If you opened someone's older saved workflow and found this node instead of the modern one, that's exactly why - it still works, it's just not what you'd start a new workflow with today.

Where the current ClownsharKSampler bundles model, latent, guides, and scheduler into one node, this legacy version does one job: it outputs a SAMPLER object you plug into a regular ComfyUI KSampler (or KSampler Advanced), the same way you'd plug in any stock sampler.

How it works

This is RES4LYF's core solver engine - 69 samplers is a pack-wide figure, and this node exposes the pieces of that system directly. eta controls how much noise gets added after each SDE step; noise_mode sets how that amount scales (hard/hard_sq/soft/softer in increasing gentleness, or exp for values well above 1.0). noise_sampler_type picks the texture of that injected noise - fractal, gaussian, pyramid variants, and more. rk_type is the actual solver: names ending in "m" (multistep, like res_2m) reuse previous steps as estimates and run at Euler speed; names ending in "s" (substep, like res_2s) cost one model call per digit in the name but buy real accuracy, especially with noise. The res family are the pack's headline refinements of the dpmpp lineage. multistep and implicit_steps layer refinement passes on top (diminishing returns past 2-3), and the latent_guide*/guide_mode group adds optional img2img-style steering toward a reference latent.

The inputs and outputs that matter

  • rk_type - the solver itself. res_2m is a solid, fast default; the s-suffixed variants (res_2s, res_3s) trade speed for accuracy.
  • eta / noise_mode / noise_sampler_type - SDE noise strength, its scaling curve, and its texture. eta at 0 disables SDE injection entirely (pure ODE).
  • noise_seed (default -1 increments the last seed used).
  • latent_guide / latent_guide_inv / latent_guide_mask / latent_guide_weight / guide_mode - optional guidance toward a reference latent, useful for img2img-style work.
  • sigmas_override - feed a custom sigma schedule here to bypass whatever scheduler your KSampler is using.
  • Output: SAMPLER - wire this into a SamplerCustom-style node's sampler slot, the same place any stock sampler object would go.

How to install it

Via ComfyUI Manager: search "RES4LYF" and install. Manually, from ComfyUI/custom_nodes:

git clone https://github.com/ClownsharkBatwing/RES4LYF/
cd RES4LYF
pip install -r requirements.txt

Activate your venv first if you use one; on portable installs, use python_embedded\Scripts\pip.exe in place of pip. Restart ComfyUI afterward. If you also want the newer nested sampler-picker menu (not needed for this legacy node to function, but useful if you're comparing against the current one), install rgthree-comfy too and enable "Auto Nest Subdirectories" in its settings.

Common issues & troubleshooting

Should you actually be using this? Only if you're loading an old saved workflow that already has it. For anything new, the current ClownsharKSampler is the maintained, documented path - this node is a compatibility shim, not the recommended starting point.

Generation is much slower than expected. Check rk_type - anything ending in a high digit-s suffix (res_5s, for instance) costs that many model calls per step. That's the accuracy/speed trade-off working as intended, not a bug.

Results look flat or over-smoothed. Try a nonzero eta with noise_mode on soft or softer - pure ODE sampling (eta = 0) can look duller than SDE sampling on some solvers, and this pack's whole premise is that controlled noise injection helps.

CategoryRES4LYF/legacy/samplers

Inputs (22)

NameTypeDefaultDescription
etaFLOAT0.25-100–100Calculated noise amount to be added, then removed, after each step.
eta_varFLOAT0.00-100–100Calculate variance-corrected noise amount (overrides eta/noise_mode settings). Cannot be used at very low sigma values; reverts to eta/noise_mode for final steps.
s_noiseFLOAT1.00-100–100Ratio of calculated noise amount actually added after each step. >1.0 will leave extra noise behind, <1.0 will remove more noise than it adds.
d_noiseFLOAT1.00-100–100Ratio of calculated noise amount actually added after each step. >1.0 will leave extra noise behind, <1.0 will remove more noise than it adds.
noise_modeCOMBOhardHow noise scales with the sigma schedule. Hard is the most aggressive, the others start strong and drop rapidly.
noise_sampler_typeCOMBObrownian17 options: fractal, gaussian, gaussian_backwards, uniform, pyramid-cascade_B, pyramid-interpolated, +11
alphaFLOAT0.0-10000–10000Fractal noise mode: <0 = extra high frequency noise, >0 = extra low frequency noise, 0 = white noise.
kFLOAT1-10000–10000Fractal noise mode: all that matters is positive vs. negative. Effect unclear.
noise_seedINT-1-1–18446744073709550000Seed for the SDE noise that is added after each step if eta or eta_var are non-zero. If set to -1, it will use the increment the seed most recently used by the workflow.
rk_typeCOMBOres_2m29 options: res_2m, res_3m, res_2s, res_3s, rk_exp_5s, deis_2m, +23
exp_modeBOOLEANfalseConvert linear RK methods to exponential form.
multistepBOOLEANfalseFor samplers ending in S only. Reduces cost by one model call per step by reusing the previous step as the current predictor step.
implicit_stepsINT00–100Number of implicit Runge-Kutta refinement steps to run after each explicit step.
cfgppFLOAT0.00-10000–10000CFG++ scale. Use in place of, or with, CFG. Currently only working with RES, DPMPP, and DDIM samplers.
latent_guide_weightFLOAT0.00-100–100
guide_modeCOMBOmeanThe mode used. noise_mean and inversion are currently for test purposes only.
rescale_floorBOOLEANtrueLatent_guide_weight(s) control the minimum value for the latent_guide_mask. If false, they control the maximum value.
latent_guideoptLATENT
latent_guide_invoptLATENT
latent_guide_maskoptMASK
latent_guide_weightsoptSIGMAS
sigmas_overrideoptSIGMAS

Outputs (1)

NameTypeDescription
SAMPLERSAMPLER