Nodes/TBG’s ComfyUI Development Takeaways/TBG KSampler Advanced (Inpaint Split Aware)
ComfyUI Node

TBG KSampler Advanced (Inpaint Split Aware)

A ComfyUI node in TBG/Sampler with 19 inputs and 2 outputs.

By Ltamann·Created about a year ago·Updated 7 months ago· 19
TBG KSampler Advanced (Inpaint Split Aware)
  • model
  • positive
  • negative
  • latent_image
  • sampler_state
  • LATENT
  • sampler_state
add_noisetrue
noise_seed0
steps20
cfg1.00
sampler_name
scheduler
denoise1.00
start_at_step0
end_at_step10000
inpaint_start0
inpaint_end10000
smoother_sharper0.00
detail_enhancer0.00
return_with_leftover_noisefalse
CategoryTBG/Sampler

Inputs (19)

NameTypeDefaultDescription
modelMODEL
add_noiseBOOLEANtrueEnable: add random noise (first sampler). Disable: no noise added (sampler chaining/img2img). Use 'enable' for first sampler, 'disable' for subsequent ones.
noise_seedINT00–18446744073709550000
stepsINT201–10000
cfgFLOAT1.000–100
sampler_nameCOMBO44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38
schedulerCOMBO9 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +3
denoiseFLOAT1.000–1
positiveCONDITIONING
negativeCONDITIONING
latent_imageLATENT
start_at_stepINT00–10000
end_at_stepINT100000–10000
inpaint_startINT00–10000Step number where inpainting injection begins. Inpainting blends the original latent with the denoised latent within the masked area. Set to 0 to start inpainting from the first step. Higher values delay inpainting, allowing more creative freedom before preserving masked regions.
inpaint_endINT100000–10000Step number where inpainting injection ends. Set to a high value (e.g., 1000) to inpaint through all steps. Lower values allow later steps to refine without mask constraints. Works with inpaint_start to define the inpainting window.
smoother_sharperFLOAT0.00-1–1Dual-stage adaptive sharpening. At high sigma (early steps), adds structured noise for detail invention. At low sigma (late steps), applies high-pass edge sharpening. Positive values sharpen and add details. Negative values soften and blur. Zero disables sharpening. Higher absolute values create stronger effects.
detail_enhancerFLOAT0.00-1–1Substep evaluation for detail control. Positive values (0.1-1.0): lookahead to next sigma, adds coherent details and refinement, reduces variation. Negative values (-0.1 to -1.0): lookback to previous sigma, adds creative variation and texture complexity. Zero = disabled (single pass, fastest). Performance cost: 2x slower on affected steps.
return_with_leftover_noiseBOOLEANfalseEnable: keeps noise for sampler chaining. Disable: fully denoise output. Use 'enable' for split workflows, 'disable' for final step.
sampler_stateoptsampler_stateChain state from previous sampler. Leave empty for first sampler, connect for subsequent samplers in multi-pass workflows.

Outputs (2)

NameTypeDescription
LATENTLATENT
sampler_statesampler_state