ComfyUI Node: ✂️ Inpaint Crop (Improved)

Authored by lquesada

Created

Updated

792 stars

Category

inpaint

Inputs

image IMAGE
downscale_algorithm
  • nearest
  • bilinear
  • bicubic
  • lanczos
  • box
  • hamming
upscale_algorithm
  • nearest
  • bilinear
  • bicubic
  • lanczos
  • box
  • hamming
preresize BOOLEAN
preresize_mode
  • ensure minimum resolution
  • ensure maximum resolution
  • ensure minimum and maximum resolution
preresize_min_width INT
preresize_min_height INT
preresize_max_width INT
preresize_max_height INT
mask_fill_holes BOOLEAN
mask_expand_pixels INT
mask_invert BOOLEAN
mask_blend_pixels INT
mask_hipass_filter FLOAT
extend_for_outpainting BOOLEAN
extend_up_factor FLOAT
extend_down_factor FLOAT
extend_left_factor FLOAT
extend_right_factor FLOAT
context_from_mask_extend_factor FLOAT
output_resize_to_target_size BOOLEAN
output_target_width INT
output_target_height INT
output_padding
  • 0
  • 8
  • 16
  • 32
  • 64
  • 128
  • 256
  • 512
mask MASK
optional_context_mask MASK

Outputs

STITCHER

IMAGE

MASK

Extension: ComfyUI-Inpaint-CropAndStitch

'✂️ Inpaint Crop' is a node that crops an image before sampling. The context area can be specified via the mask, expand pixels and expand factor or via a separate (optional) mask. '✂️ Inpaint Stitch' is a node that stitches the inpainted image back into the original image without altering unmasked areas.

Authored by lquesada

Run ComfyUI workflows in the Cloud!

No downloads or installs are required. Pay only for active GPU usage, not idle time. No complex setups and dependency issues

Learn more