ComfyUI Node
MatAnyone2 Matte
Propagates the first-frame mask through the clip and returns foreground, alpha, and preview outputs.
MatAnyone2 Matte
- matanyone_model
- images
- first_frame_mask
- foreground
- alpha
- preview
◄warmup_iterations10►
◄mask_threshold0.50►
◄invert_maskfalse►
◄erode_kernel10►
◄dilate_kernel10►
◄max_internal_size-1►
◄preview_red120►
◄preview_green255►
◄preview_blue155►
CategoryMatAnyone2
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| matanyone_model | MATANYONE_MODEL | — | |
| images | IMAGE | — | |
| first_frame_mask | MASK | — | |
| warmup_iterations | INT | 100–128 | — |
| mask_threshold | FLOAT | 0.500–1 | — |
| invert_mask | BOOLEAN | false | — |
| erode_kernel | INT | 100–256 | — |
| dilate_kernel | INT | 100–256 | — |
| max_internal_size | INT | -1-1–4096 | — |
| preview_red | INT | 1200–255 | — |
| preview_green | INT | 2550–255 | — |
| preview_blue | INT | 1550–255 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| foreground | IMAGE | — |
| alpha | MASK | — |
| preview | IMAGE | — |