Nodes/comfyui-artify/Inpaint Crop (Artify)
ComfyUI Node

Inpaint Crop (Artify)

A ComfyUI node in Artify/Inpaint with 13 inputs and 3 outputs.

By ArtifyGames·Created 6 months ago·Updated 6 months ago· 0
Inpaint Crop (Artify)
  • image
  • mask
  • optional_context_mask
  • stitcher
  • cropped_image
  • cropped_mask
downscale_algorithmbilinear
upscale_algorithmbicubic
mask_fill_holestrue
mask_expand_pixels0
mask_invertfalse
mask_blend_pixels32
mask_hipass_filter0.10
context_from_mask_extend_factor1.20
min_context_megapixels0.00
device_modegpu (much faster)
CategoryArtify/Inpaint

Inputs (13)

NameTypeDefaultDescription
imageIMAGEInput image to crop for inpainting.
downscale_algorithmCOMBObilinearAlgorithm used when stitched content must be downscaled to fit the crop window.
upscale_algorithmCOMBObicubicAlgorithm used when stitched content must be upscaled to fit the crop window.
mask_fill_holesBOOLEANtrueFill enclosed holes in the mask before computing context.
mask_expand_pixelsINT00–16384Expand mask edges by N pixels before context detection.
mask_invertBOOLEANfalseInvert mask so unmasked regions become the inpaint target.
mask_blend_pixelsINT320–512Blend radius (in pixels) used for stitching transitions.
mask_hipass_filterFLOAT0.100–1Ignore mask values below this threshold.
context_from_mask_extend_factorFLOAT1.201–100Grow mask-derived context area by this factor.
min_context_megapixelsFLOAT0.000–16Minimum context area in megapixels. Grows context while preserving input image aspect ratio.
device_modeCOMBOgpu (much faster)Run crop math on CPU (safe) or GPU (faster).
maskoptMASKPrimary inpainting mask.
optional_context_maskoptMASKExtra mask area to force-include as context.

Outputs (3)

NameTypeDescription
stitcherSTITCHER
cropped_imageIMAGE
cropped_maskMASK