Nodes/ComfyUI-SAM2Matting/SAM3 Text Prompt to Seed Mask
ComfyUI Node

SAM3 Text Prompt to Seed Mask

Uses the SAM3 detector to find a text-described subject on one frame. Returns a white-foreground seed mask for SAM2Matting Video, a checkerboard preview, the highest detection score, and the matching frame index. The loaded model variant must be sam3.

By ethanfel·Created 17 days ago·Updated 9 days ago· 5
SAM3 Text Prompt to Seed Mask
  • model
  • images
  • seed_mask
  • preview
  • top_score
  • mask_frame
text_promptperson
frame_index0
confidence_threshold0.50
selectionhighest_score
CategorySAM2Matting/video

Inputs (6)

NameTypeDefaultDescription
modelSAM2MATTING_VIDEO_MODEL
imagesIMAGE
text_promptSTRINGperson
frame_indexINT00–2147483647
confidence_thresholdFLOAT0.500–1
selectionCOMBOhighest_score2 options: highest_score, combine_all

Outputs (4)

NameTypeDescription
seed_maskMASK
previewIMAGE
top_scoreFLOAT
mask_frameINT