Nodes/ComfyUI-SuperNodes/🐧 SAM3 Video Track (Mask Index)
ComfyUI Node

🐧 SAM3 Video Track (Mask Index)

SAM3 video tracking seeded from a mask on any frame instead of only the first. Tracks forward from start_index and, with bidirectional enabled, tracks the earlier frames in reverse and merges both halves. Output mask count always matches the input frame count; uncovered frames are empty. For text-prompted detection use the native SAM3 Video Track node.

By sonnyboxΒ·Created 10 months agoΒ·Updated a day agoΒ· 11
🐧 SAM3 Video Track (Mask Index)
  • images
  • model
  • mask
  • track_data
β—„start_index0β–Ί
β—„bidirectionaltrueβ–Ί
CategorySuperNodes/Video

Inputs (5)

NameTypeDefaultDescription
imagesIMAGEVideo frames as a batched image [B,H,W,C].
modelMODELLoaded SAM3 model.
maskMASKMask(s) for the start_index frame to track (one per object).
start_indexINT00–99999Frame the mask belongs to (0 = first frame, matching the native node). Tracking runs forward from here.
bidirectionalBOOLEANtrueAlso track backwards from start_index to frame 0 by reversing the earlier frames. Off leaves those frames empty. Ignored when start_index is 0.

Outputs (1)

NameTypeDescription
track_dataSAM3_TRACK_DATATrack data for SAM3 Track to Mask / SAM3 Track Preview.