ComfyUI Node
高级背景移除
高级背景移除节点,增加了额外的图像处理选项,自定义背景颜色 输入: - 图像: 输入的图像tensor - 使用u2netp模型可以获得更快的处理速度,但精度略低 - 对于人像,推荐使用u2net_human_seg模型 - 启用alpha_matting可以获得更好的边缘质量,但会降低处理速度 - 启用post_process可以增强边缘和细节,但会降低处理速度 - 背景颜色: 可选的背景颜色,可以是透明、白色、黑色、红色、绿色、蓝色或十六进制颜色代码
高级背景移除
- 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)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| model_nameopt | COMBO | u2net | 6 options: u2net, u2netp, u2net_human_seg, u2net_cloth_seg, silueta, isnet-general-use |
| alpha_mattingopt | BOOLEAN | false | — |
| alpha_matting_foreground_thresholdopt | INT | 2400–255 | — |
| alpha_matting_background_thresholdopt | INT | 100–255 | — |
| alpha_matting_erode_sizeopt | INT | 100–1000 | — |
| post_processopt | BOOLEAN | false | — |
| background_coloropt | STRING | transparent | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |