JK Easy KSampler (Context)
A context-driven sampler with A1111-style seed variation
- ctx
- LATENT
- JK_CONTEXT
This is a KSampler that gets almost everything it needs from one bundled wire instead of five or six separate inputs. Feed it a JK_CONTEXT - built with JKLilContext or JKBigContext - and it pulls model, positive, negative, and the working latent from there, leaving you to set only the sampling-specific knobs directly on this node.
The extra thing this node does that a stock KSampler doesn't: A1111-style seed variation. If you've used the "Variation seed" and "Variation strength" fields in A1111's extras, this is that feature, ported over as widgets.
The inputs and outputs that matter
- ctx (JK_CONTEXT) - required, supplies model, conditioning, and latent from upstream.
- denoise (default 1, full strength) - how much of the input latent gets overwritten. Leave at 1 for a first pass from empty latent; lower it if you're refining an existing image.
- noise_mode (
GPU(=A1111)/CPU) - which noise generation path to use. GPU-generated noise is what A1111 defaults to and doesn't reproduce identically under ComfyUI's own default (CPU) noise; this toggle exists to get you closer to an A1111-style result on the same seed. - variation_seed and variation_strength (default 0, meaning off) - a second seed you blend into the main one. At
variation_strengthabove 0, the output becomes a mix of what your main seed would produce and whatvariation_seedwould produce, weighted by that strength. This is the standard way to nudge a good image slightly without a full reroll - push it up gradually and you get a family of related variations rather than a completely different image. - Optional variation_method (
linear/slerp) - how the two seeds' noise gets blended. Linear is a straightforward interpolation; slerp (spherical linear interpolation) blends along the noise's natural geometry and tends to be the better-behaved choice for noise blending specifically, which is why tools that offer both usually default people toward slerp for this kind of use. - Optional bleh_sampler_override - a hook into the separate ComfyUI-bleh pack's sampler presets; leave on
disabledunless you've set those up.
Two outputs: LATENT (the sampled result - decode it normally) and JK_CONTEXT, the context passed back through, so you can chain straight into EasyHRFix_Context or another context-flavored node without rebuilding the bundle.
Installing it
Part of kostenickj/jk-comfyui-helpers, already present on comfy.icu, or cd ComfyUI/custom_nodes && git clone https://github.com/kostenickj/jk-comfyui-helpers.git and restart for a self-hosted install. This node's own functionality needs nothing beyond the pack - no extra model downloads. If you use bleh_sampler_override, that's the one place a separate pack (ComfyUI-bleh) comes into play, and only if you've configured presets in it. As with the rest of this pack, expect a thin README and no real community discussion to fall back on if something's unclear - it's a small personal toolkit, not a widely-adopted pack.
Common issues
- ctx missing a required field. If your upstream context builder didn't populate model, positive, negative, or latent, this node has nothing to sample with - check what actually made it into the context before it reaches here.
- Variation strength set but nothing visibly changes. At low strength the effect is genuinely subtle by design - that's the point, small nudges rather than reshuffles. Push it higher if you want a more obvious shift, or check
variation_seedisn't accidentally the same as your main seed. - Expecting steps/cfg/sampler/scheduler here. They're not on this node - they live in the context if you're using JKBigContext, or you're expected to have set them upstream. This node is deliberately narrow: sampling mechanics only.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| ctx | JK_CONTEXT | — | |
| denoise | FLOAT | 1.000–1 | — |
| noise_mode | COMBO | GPU(=A1111) | 2 options: GPU(=A1111), CPU |
| variation_seed | INT | 00–18446744073709550000 | — |
| variation_strength | FLOAT | 0.000–1 | — |
| bleh_sampler_overrideopt | COMBO | disabled | optional bleh sampler preset override |
| variation_methodopt | COMBO | 2 options: linear, slerp |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| LATENT | LATENT | — |
| JK_CONTEXT | JK_CONTEXT | — |