Nodes/MatAnyone2 Video Matting/MatAnyone2 Interactive SAM
ComfyUI Node

MatAnyone2 Interactive SAM

Opens the built-in multi-target SAM editor and returns the merged first-frame mask.

By dreamrec·Created 5 months ago·Updated 5 months ago· 2
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)

NameTypeDefaultDescription
imageIMAGE
sam_model_typeCOMBOvit_h3 options: vit_h, vit_l, vit_b
checkpoint_pathSTRING
deviceCOMBOauto4 options: auto, cuda, mps, cpu
editor_stateSTRING
preview_opacityFLOAT0.650–1
merge_thresholdFLOAT0.500–1

Outputs (4)

NameTypeDescription
maskMASK
previewIMAGE
editor_stateSTRING
target_countINT