Nodes/comfyui-timesaver/TS Langevin Inpaint
ComfyUI Node

TS Langevin Inpaint

Inpaint sampler that spends inner Langevin steps at every noise level so the repainted region agrees with the pixels around it. Works with any model family; feed it a latent carrying a noise mask.

By AlexYez·Created 2 years ago·Updated 3 days ago· 11
TS Langevin Inpaint
  • model
  • positive
  • negative
  • latent_image
  • LATENT
seed0
steps20
cfg1.0
sampler_name
scheduler
denoise1.00
think_steps5
guidance16.0
step_size0.20
beta1.0
friction15.0
CategoryTS/Image/Retouch

Inputs (15)

NameTypeDefaultDescription
modelMODEL
positiveCONDITIONING
negativeCONDITIONING
latent_imageLATENTLatent with a noise mask (white = repaint).
seedINT00–18446744073709550000
stepsINT201–200
cfgFLOAT1.00–100
sampler_nameCOMBO45 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +39
schedulerCOMBO11 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +5
denoiseFLOAT1.000–1
think_stepsINT50–20Inner Langevin steps per noise level. 0 disables the refinement and leaves an ordinary masked sample.
guidanceFLOAT16.00.1–50How hard the masked region is pulled towards agreement with the known pixels. Higher binds tighter, too high can oscillate.
step_sizeFLOAT0.200.001–1Langevin step size. Larger converges faster, less stably.
betaFLOAT1.00.01–5Time-step ratio of the masked branch. Lower it to compensate a high guidance value.
frictionFLOAT15.00–50Damping of the inertial dynamics. Lower converges faster and is less stable.

Outputs (1)

NameTypeDescription
LATENTLATENT