KSampler (Advanced)
π§ What Is This Node?β
The KSampler (Advanced) node is the fully loaded variant of the standard KSampler. Think of it as the same car, but now with a turbocharged engine, racing suspension, and a dashboard full of extra switches you may or may not understand yet.
It gives you precise control over every major sampling parameter β steps, CFG scale, sampler type, scheduler, denoise strength, and more β making it the go-to choice when you need consistent, high-quality, repeatable results or want to experiment with workflow tuning at a granular level.
If the standard KSampler is βgood enoughβ for most tasks, KSampler (Advanced) is what you use when you want to push boundaries, run controlled experiments, or debug exactly why your AI thinks a cat should have three tails.
π§© Real-World Use-Casesβ
- High-control text-to-image workflows with reproducible results
- Image-to-image refinement where denoise strength determines how much the original is preserved
- Prompt A/B testing with locked seed values
- Testing sampler/scheduler compatibility for optimal style results
- Multi-stage workflows where latents are passed through various transformations before decoding
π Inputsβ
model (Required)β
- What it is: The diffusion model to use for generation.
- Why it matters: Different models have different strengths; the wrong choice here is like asking a watercolor artist to carve marble.
- Requirements: Must be a valid model loaded into ComfyUI.
seed (Integer)β
- Default:
0
- Range:
0
to0xffffffffffffffff
- What it does: Initializes the random number generator for reproducibility. Same seed + same parameters = identical result every time.
- Tips:
- Lock it to iterate on prompt changes consistently.
- Randomize for variety.
- Caution: Changing the seed by just 1 can produce a completely different image.
steps (Integer)β
- Default:
20
- Range:
1
to10,000
(but donβt β unless you enjoy watching progress bars more than making art) - Function: Number of sampling iterations. Higher values generally = better quality, but diminishing returns past ~30β50 for most models.
cfg (Float)β
- Default:
8.0
- Range:
0.0
to100.0
(increments of0.1
) - Function: Classifier-Free Guidance scale β how closely the model follows the positive conditioning.
- Low (<5): Loose, interpretive
- Medium (7β12): Balanced adherence
- High (>15): Strict adherence, risk of harsh outlines or unrealistic detail
- Tip: Start around 7β9 and adjust.
sampler name (Dropdown)β
- Function: The algorithm that drives the sampling process.
- Impact: Can drastically change detail sharpness, style, and rendering speed.
- Examples:
euler
,dpmpp_2m
,heun
,ddim
,lcm
- Note: Some samplers perform better with certain schedulers β choose wisely.
scheduler (Dropdown)β
- Function: Determines how noise is scheduled over the steps.
- Impact: Affects smoothness, contrast, and convergence speed.
- Examples:
normal
,karras
,exponential
,sgm_uniform
- Tip:
karras
often yields smoother high-quality results.
positive (Conditioning Input, Required)β
- What it is: The βdo thisβ list for your model. Usually comes from CLIP text encoding.
- Tip: Keep it clear and concise β overloading with too many descriptors can muddy results.
negative (Conditioning Input, Optional but Highly Recommended)β
- What it is: The βdonβt you dareβ list for your model.
- Purpose: Suppresses unwanted traits (e.g., blurry, watermark, extra limbs).
latent image (Required)β
- Function: The starting point in latent space β either random noise (text-to-image) or an encoded image (image-to-image).
- Caution: With denoise=1.0, it will ignore any structure from the latent and start fresh.
denoise (Float)β
- Default:
1.0
- Range:
0.0
to1.0
(increments of0.01
) - Function: Controls how much of the starting latent is preserved.
1.0
β Full redraw from scratch0.5
β Half preserved, half new0.1
β Light refinements
- Pro Tip: For subtle edits, keep this low; for wild reimaginings, crank it up.
π€ Outputsβ
LATENTβ
The refined latent representation of the generated image, ready for decoding or further processing.
π‘ Usage Tipsβ
- Seed discipline: Lock seeds when testing prompts; change seeds to explore variety.
- Steps efficiency: Avoid going overboard β most gains happen under 50 steps.
- CFG sweet spot: 7β12 works for most models without forcing unnatural detail.
- Sampler/scheduler pairing: Experiment, but check known compatibility first.
- Denoise control: Low for polishing, high for creative chaos.
π₯ What-Not-To-Do-Unless-You-Want-a-Fireβ
- Steps = 10,000. Your GPU will hate you.
- CFG = 100. Enjoy your crunchy, overbaked AI noodles.
- Denoise = 1.0 on a refined image you actually liked.
- Mismatched sampler/scheduler combos without testing.
β οΈ Known Issuesβ
- Incompatible sampler/scheduler combos can yield flat or noisy results.
- Extremely high CFG can cause oversharpening, harsh outlines, or strange artifacts.
- Very high step counts waste time with minimal visible improvement.
- Some models react badly to extreme denoise settings.
π Final Notesβ
The KSampler (Advanced) node is where you stop being a passenger and start piloting the generation process yourself. Itβs more powerful, more configurable, and less forgiving than the standard KSampler β but in the right hands, itβs the difference between βpretty goodβ and βwow, how did you do that?β