Abstract
SAM-PT (Segment Anything Meets Point Tracking) is a novel framework that extends the zero-shot capabilities of the Segment Anything Model (SAM) into the video domain. By combining SAM with robust, long-term point trackers, the authors achieve state-of-the-art results in video object segmentation without requiring any video-specific training data.
Introduction
The Segment Anything Model (SAM) has revolutionized image segmentation by providing a powerful, promptable foundation model. However, SAM lacks a native temporal component, making video object segmentation (VOS) challenging. Traditional VOS methods typically rely on mask propagation—passing a predicted mask from one frame to the next. These methods often require extensive fine-tuning on specific datasets and struggle to generalize to unseen domains, such as moving from real-world footage to animation.
SAM-PT addresses this by adopting a point-centric approach. Instead of propagating masks, it tracks specific points on the object and uses their trajectories as prompts for SAM. This strategy leverages SAM’s zero-shot power while avoiding the "drift" and domain-sensitivity issues common in traditional mask-based tracking.
Methodology
The SAM-PT pipeline consists of four main stages:
- Query Point Selection: On the initial frame, "positive" points (on the target) and "negative" points (on the background) are selected. The authors found that K-Medoids sampling is particularly effective, ensuring points are geometrically distributed across the object's surface.
- Point Tracking: These points are propagated through the video using specialized long-term trackers like CoTracker or PIPS. These trackers focus on local structures and provide occlusion scores, indicating when a point is hidden.
- Segmentation with SAM: For each frame, SAM is prompted with the predicted trajectories of non-occluded points. This process is iterative: SAM first predicts a mask based on positive points, then refines it using both positive and negative points alongside the previous frame's mask prediction.
- Reinitialization: To combat tracking drift over long sequences, the system can "refresh" its points. It discards old points and samples new ones from the most recent high-confidence mask.
Key Insights
- Local Generalization: Point trackers generalize better than mask-based trackers because they harness rich local information (textures and edges) rather than learning global object semantics. This allows SAM-PT to work on diverse domains like anime or underwater footage.
- The Role of Negative Prompts: Tracking background points is crucial for disambiguation, helping SAM distinguish the target object from similar-looking neighbors or complex backgrounds.
- Temporal Smoothing: By using the previous mask as a prompt, SAM can "smooth out" temporal inconsistencies that might arise from jittery point trajectories.
Experimental Results
SAM-PT sets a new benchmark for zero-shot video segmentation across several rigorous datasets:
- DAVIS 2017: Achieved a 79.4 J&F score, outperforming other zero-shot competitors like HODOR (77.5) and SegGPT (75.6).
- YouTube-VOS: Reached 76.2, the highest among zero-shot methods.
- BDD100K: Outperformed some fully-supervised methods on non-transient objects, demonstrating potential for autonomous driving applications.
- Domain Generalization: The model successfully tracked and segmented characters in the anime Avatar: The Last Airbender, a domain completely unseen during training.
Limitations and Future Work
While robust, SAM-PT faces challenges with prolonged occlusions and very thin object structures (e.g., bicycle spokes). Additionally, the framework is not yet real-time due to the computational demands of the point trackers and the SAM ViT-Huge backbone. Future research may focus on tighter integration between tracking and segmentation, potentially through a unified foundation model for video.
Summary updated