ComfyUI Node
Gen2 LanPaint Soft Denoise Patch
Experimental clone-local LanPaint dual-mask patch with original, latest-generated, and EMA adaptive references plus independently scheduled input/output blending. schedule_end_step=0 uses the last outer step.
Gen2 LanPaint Soft Denoise Patch
- model
- soft_mask
- model
◄reference_modeema_generated►
◄reference_warmup_steps0►
◄reference_ema_momentum0.70►
◄enable_input_blendtrue►
◄input_blend_strength_start1.00►
◄input_blend_strength_end1.00►
◄enable_output_blendtrue►
◄output_blend_strength_start1.00►
◄output_blend_strength_end0.00►
◄blend_schedule_typelinear►
◄schedule_start_step0►
◄schedule_end_step0►
◄adaptive_region_modesoft_band_only►
◄adaptive_update_sourceraw_generated_output►
◄lock_original_outside_adaptive_regiontrue►
◄adaptive_reference_initoriginal_source►
◄debug_loggingfalse►
◄output_reference_modelegacy►
◄reference_selector_curvesmoothstep►
◄reference_selector_low0.00►
◄reference_selector_high1.00►
◄reference_selector_gamma1.00►
◄latest_reference_ratio_at_soft_min0.00►
◄latest_reference_ratio_at_soft_max1.00►
◄invert_reference_selectorfalse►
◄mixed_output_blend_strength_start1.00►
◄mixed_output_blend_strength_end0.20►
◄mixed_output_blend_schedulecosine►
◄mixed_output_blend_schedule_start0.15►
◄mixed_output_blend_schedule_end0.75►
◄mixed_output_schedule_domainnormalized_sigma►
◄output_blend_mask_curvelegacy►
◄output_blend_mask_low0.00►
◄output_blend_mask_high1.00►
◄output_blend_mask_gamma1.00►
CategoryGen2/Sampling
Inputs (37)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| soft_mask | MASK | — | |
| reference_modeopt | COMBO | ema_generated | 3 options: original_source, latest_generated, ema_generated |
| reference_warmup_stepsopt | INT | 00–10000 | — |
| reference_ema_momentumopt | FLOAT | 0.700–0.99 | — |
| enable_input_blendopt | BOOLEAN | true | — |
| input_blend_strength_startopt | FLOAT | 1.000–1 | — |
| input_blend_strength_endopt | FLOAT | 1.000–1 | — |
| enable_output_blendopt | BOOLEAN | true | — |
| output_blend_strength_startopt | FLOAT | 1.000–1 | — |
| output_blend_strength_endopt | FLOAT | 0.000–1 | — |
| blend_schedule_typeopt | COMBO | linear | 3 options: constant, linear, cosine |
| schedule_start_stepopt | INT | 00–10000 | — |
| schedule_end_stepopt | INT | 00–10000 | — |
| adaptive_region_modeopt | COMBO | soft_band_only | 3 options: soft_band_only, soft_nonzero, hard_edit_region |
| adaptive_update_sourceopt | COMBO | raw_generated_output | 2 options: raw_generated_output, blended_output |
| lock_original_outside_adaptive_regionopt | BOOLEAN | true | — |
| adaptive_reference_initopt | COMBO | original_source | 2 options: original_source, first_generated_after_warmup |
| debug_loggingopt | BOOLEAN | false | — |
| output_reference_modeopt | COMBO | legacy | legacy preserves the existing output path; mixed_original_latest enables the new opt-in spatial mixture. |
| reference_selector_curveopt | COMBO | smoothstep | Shapes how the soft mask chooses original versus latest reference. |
| reference_selector_lowopt | FLOAT | 0.000–0.99 | — |
| reference_selector_highopt | FLOAT | 1.000.01–1 | — |
| reference_selector_gammaopt | FLOAT | 1.000.1–8 | — |
| latest_reference_ratio_at_soft_minopt | FLOAT | 0.000–1 | — |
| latest_reference_ratio_at_soft_maxopt | FLOAT | 1.000–1 | — |
| invert_reference_selectoropt | BOOLEAN | false | — |
| mixed_output_blend_strength_startopt | FLOAT | 1.000–1 | — |
| mixed_output_blend_strength_endopt | FLOAT | 0.200–1 | — |
| mixed_output_blend_scheduleopt | COMBO | cosine | 5 options: constant, linear, cosine, smoothstep, smootherstep |
| mixed_output_blend_schedule_startopt | FLOAT | 0.150–0.99 | — |
| mixed_output_blend_schedule_endopt | FLOAT | 0.750.01–1 | — |
| mixed_output_schedule_domainopt | COMBO | normalized_sigma | Uses sigma trajectory progress for the new mixed-output schedule; normalized_step is available for direct step timing. |
| output_blend_mask_curveopt | COMBO | legacy | Spatially reshapes output preservation without changing input blending. |
| output_blend_mask_lowopt | FLOAT | 0.000–0.99 | — |
| output_blend_mask_highopt | FLOAT | 1.000.01–1 | — |
| output_blend_mask_gammaopt | FLOAT | 1.000.1–8 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |