首页/ 节点库/ Inpaint Crop (Improved)
第三方插件 ComfyUI-Inpaint-CropAndStitch

Inpaint Crop (Improved)

Inpaint Crop (Improved) 2026-01-30 收录 2315 次浏览

节点中英文对比

ComfyUI 结构对照

按当前节点配置,分别展示中文与英文节点结构。面板按 ComfyUI 实际界面还原: 左侧圆点是输入,右侧圆点与该行最右的名称为输出,下方胶囊是控件参数; 控件两端的三角表示可切换的选项。

中文节点 29 项
Inpaint Crop (Improved)
image stitcher
遮罩 cropped_image
optional_context_mask cropped_mask
downscale_algorithm —
upscale_algorithm —
preresize —
preresize_mode —
preresize_min_width —
preresize_min_height —
preresize_max_width —
preresize_max_height —
mask_fill_holes —
mask_expand_pixels —
mask_invert —
mask_blend_pixels —
mask_hipass_filter —
extend_for_outpainting —
extend_up_factor —
extend_down_factor —
extend_left_factor —
extend_right_factor —
context_from_mask_extend_factor —
output_resize_to_target_size —
output_target_width —
output_target_height —
output_padding —
英文节点 29 项
Inpaint Crop (Improved)
image stitcher
mask cropped_image
optional_context_mask cropped_mask
downscale_algorithm —
upscale_algorithm —
preresize —
preresize_mode —
preresize_min_width —
preresize_min_height —
preresize_max_width —
preresize_max_height —
mask_fill_holes —
mask_expand_pixels —
mask_invert —
mask_blend_pixels —
mask_hipass_filter —
extend_for_outpainting —
extend_up_factor —
extend_down_factor —
extend_left_factor —
extend_right_factor —
context_from_mask_extend_factor —
output_resize_to_target_size —
output_target_width —
output_target_height —
output_padding —
模型 条件 / 数值 Latent 其它类型 左圆点 = 输入,右圆点 = 输出 可切换选项 — 未设置默认值

面板用于对照参数位置与命名,不做交互;实际节点外观以 ComfyUI 内的主题为准。

参数说明

输入 3 · 输出 3 · 控件 23

依据当前节点关联的 NodesItems 数据,按输入、输出、控件三类分别列出名称与说明。

输入参数 3 项
image image
需要进行修复处理的原始图像。
遮罩 mask
原始图片中需要修补的区域
optional_context_mask optional_context_mask
额外的“必须保留为上下文”的区域。 处理流程里会把它和主掩码的上下文框合并,以确保这些区域也被包含到,以提升修复区域颜色、纹理、结构的一致性与无缝贴合效果。
输出参数 3 项
stitcher stitcher
包含缝合信息的字典(比如裁剪图在画布图中的位置与尺寸;用于后续将修复结果融合回原图)
cropped_image cropped_image
裁剪后的待修复图像区域
cropped_mask cropped_mask
裁剪后待修复图像的蒙版区域
控件参数 23 项
downscale_algorithm downscale_algorithm
需要缩小图像时使用的插值算法 可选:nearest / bilinear / bicubic / lanczos / box / hamming。 默认:bilinear 平衡速度与平滑;lanczos/bicubic 更锐利、细节更好;nearest 仅在像素风格或掩码处理时用。
upscale_algorithm upscale_algorithm
需要放大图像时使用的插值算法 可选:nearest / bilinear / bicubic / lanczos / box / hamming。 默认:bicubic;常用lanczos;nearest 只适合像素风格。
preresize preresize
是否在整个流程开始前就先重设图像/蒙版的分辨率。用于把原图拉到一个合适的工作尺度,利于后续裁剪/采样稳定。 默认False(开启)
preresize_mode preresize_mode
尺寸调整模式:①ensure minimum resolution/②ensure maximum resolution/③ensure minimum and maximum resolution ①ensure minimum resolution:确保宽和高至少达到 预处理后图像最小宽度、高度(不足就放大,超出不限制)。 ②ensure maximum resolution:确保宽和高不超过预处理后图像最大宽度、高度,超出就缩小,不足不动)。 ③ensure minimum and maximum resolution:同时满足最小与最大(不足放大、超出缩小)。
preresize_min_width preresize_min_width
预处理后图像最小宽度;默认1024
preresize_min_height preresize_min_height
预处理后图像最小高度;默认1024
preresize_max_width preresize_max_width
预处理后图像最大宽度;默认1024
preresize_max_height preresize_max_height
预处理后图像最大高度;默认1024
mask_fill_holes mask_fill_holes
填充蒙版中的“孔洞”(即掩码内部完全封闭的未掩码区域),确保封闭区域被标记为需要修复。默认True
mask_expand_pixels mask_expand_pixels
扩大蒙版范围;默认0
mask_invert mask_invert
反转蒙版(反选蒙版之外的区域);默认false
mask_blend_pixels mask_blend_pixels
蒙版边缘羽化像素数(使修复边界更自然);默认32,范围 0~64
mask_hipass_filter mask_hipass_filter
过滤掩码中低于该值的弱信号(例如模糊的掩码边缘),仅保留较强的掩码区域。默认 0.1,范围 0~1
extend_for_outpainting extend_for_outpainting
是否扩展图像边缘以支持外绘(在图像外部添加空白区域,用于生成新内容)。
extend_up_factor extend_up_factor
图像上方向的扩展比例(基于原始图像尺寸)
extend_down_factor extend_down_factor
图像下方向的扩展比例(基于原始图像尺寸)
extend_left_factor extend_left_factor
图像左方向的扩展比例(基于原始图像尺寸)
extend_right_factor extend_right_factor
图像右方向的扩展比例(基于原始图像尺寸)
context_from_mask_extend_factor context_from_mask_extend_factor
从蒙版区域向四周扩展上下文的比例。例如1.2表示在蒙版区域基础上,向上、下、左、右各扩展20%的区域作为上下文。默认 1.2,范围 1.0~100.0
output_resize_to_target_size output_resize_to_target_size
是否强制将输出图像调整到指定的目标尺寸(用于统一修复结果的大小)。
output_target_width output_target_width
输出图像的目标宽度
output_target_height output_target_height
输出图像的目标高度
output_padding output_padding
对裁剪区域四周再加一圈安全边距(像素)。选项(0/8/16/32/64/128/256/512),默认32

节点详解

原理 · 用法 · 常见问题
暂无节点说明

常见问题

按节点参数整理
Inpaint Crop (Improved)有哪些输入参数?
共 3 个输入,包括 image(image)、遮罩(mask)、optional_context_mask(optional_context_mask)。
Inpaint Crop (Improved)的输出是什么?
共 3 个输出:stitcher(stitcher)、cropped_image(cropped_image)、cropped_mask(cropped_mask)。
Inpaint Crop (Improved)有哪些可调参数?
共 23 个控件参数,包括 downscale_algorithm(downscale_algorithm)、upscale_algorithm(upscale_algorithm)、preresize(preresize)、preresize_mode(preresize_mode)、preresize_min_width(preresize_min_width)、preresize_min_height(preresize_min_height)。
Inpaint Crop (Improved)属于哪个节点包?
属于「ComfyUI-Inpaint-CropAndStitch」,节点分类为「第三方插件」。

同类节点

ComfyUI-Inpaint-CropAndStitch