ComfyUI Node
Gift Chroma Master · 一键专业抠像
独立实现的专业三段式色键:屏幕键控、边缘清理、线性光去溢色。
Gift Chroma Master · 一键专业抠像
- image
- screen_color
- source_mask
- inside_mask
- outside_mask
- cleaner_mask
- spill_mask
- foreground_rgb
- foreground_alpha
◄screen_modeauto►
◄batch_modeordered_video►
◄screen_samplingstable_video►
◄screen_gain1.10►
◄screen_balance0.80►
◄preblur_px0.60►
◄clip_black0.060►
◄clip_white0.985►
◄clip_rollback0.25►
◄shrink_grow_px-0.20►
◄softness_px0.45►
◄cleaner_strength0.72►
◄edge_radius3.0►
◄alpha_contrast0.04►
◄detail_recovery0.58►
◄reduce_chatter0.35►
◄spill_modestandard►
◄despill_amount0.82►
◄spill_range0.55►
◄desaturate0.20►
◄luma_restore1.00►
◄edge_recovery0.35►
◄source_alpha_modemultiply►
◄source_mask_polaritytransparency►
◄performance_modeauto►
◄gpu_chunk_size8►
CategoryGiftHelperSuite/Chroma
Inputs (33)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| screen_mode | COMBO | auto | 自动、约束为绿/蓝,或使用手动颜色。 |
| screen_color | COLOR | #00ff00 | 仅在 manual 模式使用。 |
| batch_mode | COMBO | ordered_video | 视频批次会启用安全的时域稳定;独立图片不会互相借帧。 |
| screen_sampling | COMBO | stable_video | 稳定视频会平滑取色,并在明显换镜/换幕色时自动重置。 |
| screen_gain | FLOAT | 1.100–3 | 越高抠除越多。 |
| screen_balance | FLOAT | 0.800–1 | — |
| preblur_px | FLOAT | 0.600–12 | — |
| clip_black | FLOAT | 0.0600–0.95 | — |
| clip_white | FLOAT | 0.9850.05–1 | — |
| clip_rollback | FLOAT | 0.250–1 | — |
| shrink_grow_px | FLOAT | -0.20-12–12 | 正值扩张前景,负值向内收缩。 |
| softness_px | FLOAT | 0.450–12 | — |
| cleaner_strength | FLOAT | 0.720–1 | — |
| edge_radius | FLOAT | 3.00–32 | — |
| alpha_contrast | FLOAT | 0.04-1–1 | — |
| detail_recovery | FLOAT | 0.580–1 | — |
| reduce_chatter | FLOAT | 0.350–1 | 仅 ordered_video 生效。 |
| spill_mode | COMBO | standard | 2 options: standard, ultra |
| despill_amount | FLOAT | 0.820–1 | — |
| spill_range | FLOAT | 0.550–1 | — |
| desaturate | FLOAT | 0.200–1 | — |
| luma_restore | FLOAT | 1.000–1 | — |
| edge_recovery | FLOAT | 0.350–1 | — |
| source_alpha_mode | COMBO | multiply | 3 options: multiply, ignore, add_inside |
| source_mask_polarity | COMBO | transparency | ComfyUI Load Image 的 MASK 通常是 transparency。 |
| source_maskopt | MASK | — | |
| inside_maskopt | MASK | — | |
| outside_maskopt | MASK | — | |
| cleaner_maskopt | MASK | — | |
| spill_maskopt | MASK | — | |
| performance_modeopt | COMBO | auto | auto 会在 ComfyUI 允许时使用 CUDA,并把长视频分块以限制显存。 |
| gpu_chunk_sizeopt | INT | 81–32 | 每次送入显卡的帧数;720p 下 8 约占 2.6GB 临时显存。显存紧张可改 4。 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| foreground_rgb | IMAGE | Straight / 未预乘的前景 RGB。 |
| foreground_alpha | MASK | 前景不透明度:1=前景,0=透明。不要把它当作 Load Image 的透明度 MASK。 |