ComfyUI Node
SAM Smart Inpainter (SAM3 v0.3)
A ComfyUI node in image/inpainting with 34 inputs and 4 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| sam_model | COMBO | SAM3 → models/sam3/ | SAM2 → models/sam2/ or models/sams/ | |
| prompt | STRING | face | — |
| text_thresholdopt | FLOAT | 0.350.05–0.95 | — |
| fallback_point_modeopt | COMBO | face_region | 3 options: center, face_region, custom |
| custom_point_xopt | FLOAT | 0.500–1 | — |
| custom_point_yopt | FLOAT | 0.250–1 | — |
| multi_mask_mergeopt | COMBO | union | 3 options: union, largest, highest_score |
| min_mask_areaopt | FLOAT | 0.0050.0001–0.5 | — |
| max_mask_areaopt | FLOAT | 0.950.1–1 | — |
| mask_bluropt | INT | 60–64 | — |
| mask_erosionopt | INT | 00–32 | — |
| mask_dilationopt | INT | 40–64 | — |
| mask_thresholdopt | FLOAT | 0.500.01–0.99 | — |
| invert_maskopt | BOOLEAN | false | — |
| crop_paddingopt | INT | 320–512 | — |
| crop_padding_modeopt | COMBO | aspect | 2 options: aspect, square |
| inpaint_resolutionopt | INT | 768256–2048 | — |
| upscale_methodopt | COMBO | bicubic | 4 options: bicubic, bilinear, lanczos, nearest |
| blend_modeopt | COMBO | feather | 3 options: feather, mask, hard |
| blend_strengthopt | FLOAT | 1.000–1 | — |
| modelopt | MODEL | — | |
| clipopt | CLIP | — | |
| vaeopt | VAE | — | |
| positiveopt | CONDITIONING | — | |
| negativeopt | CONDITIONING | — | |
| sampler_nameopt | COMBO | dpmpp_2m | 44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38 |
| scheduleropt | COMBO | karras | 9 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +3 |
| stepsopt | INT | 201–150 | — |
| cfgopt | FLOAT | 7.01–30 | — |
| denoiseopt | FLOAT | 0.550–1 | — |
| seedopt | INT | 00–18446744073709550000 | — |
| noise_mask_featheropt | INT | 80–64 | — |
| deviceopt | COMBO | auto | 4 options: auto, cuda, cpu, mps |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| output_image | IMAGE | — |
| inpainted_patch | IMAGE | — |
| segmentation_mask | MASK | — |
| debug_info | STRING | — |