Inpaint Crop (Improved)

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