NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Segment and Track Anything

Yangming Cheng, Liulei Li, Yuanyou Xu, Xiaodi Li, Zongxin Yang, Wenguan Wang, Yi YangarXiv 2023

Abstract: This report presents a framework called Segment And Track Anything (SAM-Track) that allows users to precisely and effectively segment and track any object in a video. Additionally, SAM-Track employs multimodal interaction methods that enable users to select multiple objects in videos for tracking, corresponding to their specific requirements. These interaction methods comprise click, stroke, and text, each possessing unique benefits and capable of being employed in combination. As a result, SAM-Track can be used across an array of fields, ranging from drone technology, autonomous driving, medical imaging, augmented reality, to biological analysis. SAM-Track amalgamates Segment Anything Model (SAM), an interactive key-frame segmentation model, with our proposed AOT-based tracking model (DeAOT), which secured 1st place in four tracks of the VOT 2022 challenge, to facilitate object tracking in video. In addition, SAM-Track incorporates Grounding-DINO, which enables the framework to support text-based interaction. We have demonstrated the remarkable capabilities of SAM-Track on DAVIS-2016 Val (92.0%), DAVIS-2017 Test (79.2%) and its practicability in diverse applications.

Introduction

While Meta’s Segment Anything Model (SAM) revolutionized image segmentation, it has a significant "blind spot": it treats every image as an isolated event. When applied to video, SAM lacks temporal coherence—it doesn't understand that an object in Frame 1 is the same as the one in Frame 10. This leads to flickering masks and a failure to track objects over time. Furthermore, traditional Video Object Segmentation (VOS) models often require rigid initializations and struggle to handle new objects that enter the scene midway through a video.

SAM-Track aims to bridge this gap by creating a flexible, multimodal system that can "see" (segment), "remember" (track), and "listen" (respond to text prompts). It brings the "Segment Anything" capability to the temporal domain by combining high-quality mask generation with efficient multi-object tracking.

Methodology

The SAM-Track framework integrates three state-of-the-art components into a unified pipeline:

  1. Interactive Segmentation (SAM): Used to generate high-quality masks in keyframes based on user prompts like points or bounding boxes.
  2. Object Detection (Grounding-DINO): Acts as a "listener" that converts natural language (e.g., "the red car") into bounding boxes, which are then fed into SAM.
  3. Long-term Tracking (DeAOT): A highly efficient tracking model that propagates masks from keyframes to the rest of the video. DeAOT can track multiple objects simultaneously at nearly the same speed as tracking a single object.
The SAM-Track pipeline illustrating Interactive Tracking Mode for initialization and Automatic Tracking Mode for handling new objects.

To handle objects appearing mid-video, SAM-Track utilizes an Automatic Tracking Mode. Periodically, the system runs SAM’s "Segment Everything" or Grounding-DINO to find new targets. To prevent confusion with existing tracks, the Comparing Mask Results (CMR) module calculates spatial overlap; if overlap is low, the system identifies a new object and assigns it a unique ID.

Evaluation and Applications

The framework was evaluated on gold-standard benchmarks for video segmentation: DAVIS-2016 (Validation) and DAVIS-2017 (Test-dev). SAM-Track achieved performance competitive with specialized VOS models while being much more versatile, reaching a 92.0% J&F score on DAVIS-2016 and 79.2% on DAVIS-2017.

Qualitative results demonstrating SAM-Track's versatility across medical imaging, smart city monitoring, autonomous driving, and sports analysis using various prompt types.

A core strength of the system is its multimodal flexibility. By adding Grounding-DINO, the tool becomes accessible to non-experts who can simply use natural language to initialize complex tracking tasks. The authors demonstrated successful tracking across wildly different domains, including medical imaging (cell tracking), autonomous driving (pedestrian and vehicle tracking), and sports analysis, all using the same unified framework.

Discussion and Limitations

The core insight of this work is that SAM’s power is maximized in video when paired with a robust "memory" mechanism like DeAOT. By propagating SAM's high-quality masks, the framework achieves temporal stability that SAM cannot provide on its own. Additionally, the CMR module effectively solves the "new object" identity crisis, avoiding common VOS pitfalls like ID exchange.

However, running three large models (SAM, DINO, and DeAOT) simultaneously is resource-intensive. The "Automatic Mode" could introduce latency in real-time applications, and the system currently requires manual adjustment of hyperparameters like the CMR threshold for different video types. Future work will focus on accelerating these models for real-world deployment in AR and robotics.

Conclusion

SAM-Track provides a powerful baseline for future VOS research, demonstrating that combining interactive segmentation with efficient temporal propagation can unlock the potential of "segmenting anything" in the video domain.

Summary updated

BibTeX
@misc{cheng2023segment,
  author = {Yangming Cheng and Liulei Li and Yuanyou Xu and Xiaodi Li and Zongxin Yang and Wenguan Wang and Yi Yang},
  title = {{Segment and Track Anything}},
  year = {2023},
  eprint = {2305.06558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.06558},
}
Figure