use the new Inpaint Crop node)
节点中英文对比
use the new Inpaint Crop node)
context_expand_pixels
context_expand_factor
fill_mask_holes
blur_mask_pixels
invert_mask
blend_pixels
rescale_algorithm
mode
force_width
force_height
rescale_factor
min_width
min_height
max_width
max_height
padding
use the new Inpaint Crop node
context_expand_pixels
context_expand_factor
fill_mask_holes
blur_mask_pixels
invert_mask
blend_pixels
rescale_algorithm
mode
force_width
force_height
rescale_factor
min_width
min_height
max_width
max_height
padding
use the new Inpaint Crop node) - 参数说明
输入参数
image
原始输入图像
mask
修复区域遮罩
optional_context_mask
额外的“必须保留为上下文”的区域。
处理流程里会把它和主掩码的上下文框合并,以确保这些区域也被包含到,以提升修复区域颜色、纹理、结构的一致性与无缝贴合效果。
输出参数
stitch
包含缝合信息的字典(比如裁剪图在画布图中的位置与尺寸;用于后续将修复结果融合回原图)
cropped_image
裁剪后的待修复图像区域
cropped_mask
裁剪后待修复图像的蒙版区域
控件参数
context_expand_pixels
上下文区域像素扩展量
默认值20
context_expand_factor
上下文区域比例扩展因子
默认1.0
fill_mask_holes
自动填充封闭蒙版掩码内补的空隙
默认True
blur_mask_pixels
掩码羽化半径(高斯模糊)
默认16
invert_mask
反转掩码(修复未标记区域)
默认False
blend_pixels
缝合时边缘融合宽度
默认16.0
rescale_algorithm
裁剪区域缩放时使用的插值算法(nearest/bilinear/bicubic/bislerp/lanczos/box/hamming),影响缩放后图像的细节保留和边缘平滑度
默认值bicubic
mode
裁剪模式:free size自由尺寸/forced size固定尺寸/ranged size范围尺寸)
默认ranged size范围尺寸
force_width
固定尺寸裁剪区域的宽度
默认1024
force_height
固定尺寸裁剪区域的高度
默认1024
rescale_factor
尺寸的缩放比例
默认1
min_width
范围尺寸最小宽度
默认512
min_height
范围尺寸最小高度
默认512
max_width
范围尺寸最大宽度
默认768
max_height
范围尺寸最大高度
默认768
padding
对裁剪区域四周再加一圈安全边距(像素)。选项(0/8/16/32/64/128/256/512)
默认32
暂无节点说明