Nodes/quadmoon's ComfyUI nodes/Change Background of Image (SEGM SEGS)
ComfyUI Node

Change Background of Image (SEGM SEGS)

This node is designed to work with Impact Pack from ltdrdata (and even borrows some code to ensure full compatibility with the segs output from the SEGM Detector). What it does is take an input image, and change the background using whatever process you determine as defined by the SEGS input. This 2-pass sampler will change the background in one pass and then resample the entire image as a whole to ensure the new background and the foreground are seamlessly blended.

By traugdor·Created 3 years ago·Updated 8 months ago· 16
Change Background of Image (SEGM SEGS)
  • model
  • model_2
  • positive
  • positive_2
  • negative
  • negative_2
  • image
  • vae
  • segs_from_SEGM_Detector
  • IMAGE
seed0
steps20
steps_212
cfg8.0
sampler_name
scheduler
denoise1.00
denoise_20.40
CategoryQuadmoonNodes/sampling

Inputs (17)

NameTypeDefaultDescription
modelMODEL
model_2MODEL
positiveCONDITIONING
positive_2CONDITIONING
negativeCONDITIONING
negative_2CONDITIONING
imageIMAGE
vaeVAE
segs_from_SEGM_DetectorSEGS
seedINT00–18446744073709550000
stepsINT201–10000
steps_2INT121–10000
cfgFLOAT8.00–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
denoise_2FLOAT0.400–1

Outputs (1)

NameTypeDescription
IMAGEIMAGE