Nodes/comfyui-bgremover/高级背景移除
ComfyUI Node

高级背景移除

高级背景移除节点,增加了额外的图像处理选项,自定义背景颜色 输入: - 图像: 输入的图像tensor - 使用u2netp模型可以获得更快的处理速度,但精度略低 - 对于人像,推荐使用u2net_human_seg模型 - 启用alpha_matting可以获得更好的边缘质量,但会降低处理速度 - 启用post_process可以增强边缘和细节,但会降低处理速度 - 背景颜色: 可选的背景颜色,可以是透明、白色、黑色、红色、绿色、蓝色或十六进制颜色代码

By assemly·Created about a year ago·Updated about a year ago· 0
高级背景移除
  • images
  • IMAGE
  • MASK
model_nameu2net
alpha_mattingfalse
alpha_matting_foreground_threshold240
alpha_matting_background_threshold10
alpha_matting_erode_size10
post_processfalse
background_colortransparent
Categoryimage/preprocessors

Inputs (8)

NameTypeDefaultDescription
imagesIMAGE
model_nameoptCOMBOu2net6 options: u2net, u2netp, u2net_human_seg, u2net_cloth_seg, silueta, isnet-general-use
alpha_mattingoptBOOLEANfalse
alpha_matting_foreground_thresholdoptINT2400–255
alpha_matting_background_thresholdoptINT100–255
alpha_matting_erode_sizeoptINT100–1000
post_processoptBOOLEANfalse
background_coloroptSTRINGtransparent

Outputs (2)

NameTypeDescription
IMAGEIMAGE
MASKMASK