ComfyUI Node
MatAnyone2 SAM Refine
Runs SAM against a frame and prompt, returning the chosen mask, preview, logits, and score.
MatAnyone2 SAM Refine
- sam_model
- image
- prompt
- previous_logits
- mask
- preview
- logits
- score
◄multimask_outputtrue►
◄mask_choicebest►
◄use_previous_logitstrue►
◄preview_opacity0.65►
CategoryMatAnyone2/SAM
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| sam_model | MATANYONE_SAM | — | |
| image | IMAGE | — | |
| prompt | MATANYONE_PROMPT | — | |
| multimask_output | BOOLEAN | true | — |
| mask_choice | COMBO | best | 4 options: best, 0, 1, 2 |
| use_previous_logits | BOOLEAN | true | — |
| preview_opacity | FLOAT | 0.650–1 | — |
| previous_logitsopt | MATANYONE_SAM_LOGITS | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |
| preview | IMAGE | — |
| logits | MATANYONE_SAM_LOGITS | — |
| score | FLOAT | — |