Cut For Inpaint
节点功能:该节点将原图对应蒙版的区域进行裁剪,并且将蒙版也进行裁剪,对齐裁剪后的蒙版和图像区域。Cut For
节点中英文对比
Cut For Inpaint
width
height
Cut For Inpaint
width
height
Cut For Inpaint - 参数说明
输入参数
image
输入图像,形状 [B, H, W, C]。
mask
输入遮罩,形状 [B, H, W],其中 1 表示被遮挡区域。
输出参数
image
裁剪后的图像 [B, height, width, C]。
mask
裁剪后的掩膜 [B, height, width]。
origin
掩膜中心点相对原图的左上角偏移坐标 [B, 2],值为 (x0, y0) 的张量。
控件参数
width
希望裁剪的宽度。
height
希望裁剪的高度。
暂无节点说明