ComfyUI Node
MatAnyone2 Interactive SAM
Opens the built-in multi-target SAM editor and returns the merged first-frame mask.
MatAnyone2 Interactive SAM
- image
- mask
- preview
- editor_state
- target_count
◄sam_model_typevit_h►
◄checkpoint_path►
◄deviceauto►
◄editor_state►
◄preview_opacity0.65►
◄merge_threshold0.50►
CategoryMatAnyone2/SAM
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| sam_model_type | COMBO | vit_h | 3 options: vit_h, vit_l, vit_b |
| checkpoint_path | STRING | — | |
| device | COMBO | auto | 4 options: auto, cuda, mps, cpu |
| editor_state | STRING | — | |
| preview_opacity | FLOAT | 0.650–1 | — |
| merge_threshold | FLOAT | 0.500–1 | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |
| preview | IMAGE | — |
| editor_state | STRING | — |
| target_count | INT | — |