Nodes/SAM3_SmartInpainter/SAM Smart Inpainter (SAM3 v0.3)
ComfyUI Node

SAM Smart Inpainter (SAM3 v0.3)

A ComfyUI node in image/inpainting with 34 inputs and 4 outputs.

By majidfida·Created 3 months ago·Updated about a month ago· 0
SAM Smart Inpainter (SAM3 v0.3)
  • image
  • model
  • clip
  • vae
  • positive
  • negative
  • output_image
  • inpainted_patch
  • segmentation_mask
  • debug_info
sam_model
promptface
text_threshold0.35
fallback_point_modeface_region
custom_point_x0.50
custom_point_y0.25
multi_mask_mergeunion
min_mask_area0.005
max_mask_area0.95
mask_blur6
mask_erosion0
mask_dilation4
mask_threshold0.50
invert_maskfalse
crop_padding32
crop_padding_modeaspect
inpaint_resolution768
upscale_methodbicubic
blend_modefeather
blend_strength1.00
sampler_namedpmpp_2m
schedulerkarras
steps20
cfg7.0
denoise0.55
seed0
noise_mask_feather8
deviceauto
Categoryimage/inpainting

Inputs (34)

NameTypeDefaultDescription
imageIMAGE
sam_modelCOMBOSAM3 → models/sam3/ | SAM2 → models/sam2/ or models/sams/
promptSTRINGface
text_thresholdoptFLOAT0.350.05–0.95
fallback_point_modeoptCOMBOface_region3 options: center, face_region, custom
custom_point_xoptFLOAT0.500–1
custom_point_yoptFLOAT0.250–1
multi_mask_mergeoptCOMBOunion3 options: union, largest, highest_score
min_mask_areaoptFLOAT0.0050.0001–0.5
max_mask_areaoptFLOAT0.950.1–1
mask_bluroptINT60–64
mask_erosionoptINT00–32
mask_dilationoptINT40–64
mask_thresholdoptFLOAT0.500.01–0.99
invert_maskoptBOOLEANfalse
crop_paddingoptINT320–512
crop_padding_modeoptCOMBOaspect2 options: aspect, square
inpaint_resolutionoptINT768256–2048
upscale_methodoptCOMBObicubic4 options: bicubic, bilinear, lanczos, nearest
blend_modeoptCOMBOfeather3 options: feather, mask, hard
blend_strengthoptFLOAT1.000–1
modeloptMODEL
clipoptCLIP
vaeoptVAE
positiveoptCONDITIONING
negativeoptCONDITIONING
sampler_nameoptCOMBOdpmpp_2m44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38
scheduleroptCOMBOkarras9 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +3
stepsoptINT201–150
cfgoptFLOAT7.01–30
denoiseoptFLOAT0.550–1
seedoptINT00–18446744073709550000
noise_mask_featheroptINT80–64
deviceoptCOMBOauto4 options: auto, cuda, cpu, mps

Outputs (4)

NameTypeDescription
output_imageIMAGE
inpainted_patchIMAGE
segmentation_maskMASK
debug_infoSTRING