SAM 2: Segment Anything in Images and Videos
About
We present Segment Anything Model 2 (SAM 2), a foundation model towards solving promptable visual segmentation in images and videos. We build a data engine, which improves model and data via user interaction, to collect the largest video segmentation dataset to date. Our model is a simple transformer architecture with streaming memory for real-time video processing. SAM 2 trained on our data provides strong performance across a wide range of tasks. In video segmentation, we observe better accuracy, using 3x fewer interactions than prior approaches. In image segmentation, our model is more accurate and 6x faster than the Segment Anything Model (SAM). We believe that our data, model, and insights will serve as a significant milestone for video segmentation and related perception tasks. We are releasing our main model, dataset, as well as code for model training and our demo.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Video Object Segmentation | DAVIS 2017 (val) | J mean85.5 | 1130 | |
| Visual Object Tracking | LaSOT (test) | AUC70 | 444 | |
| Visual Object Tracking | GOT-10k (test) | Average Overlap80.7 | 378 | |
| Video Object Segmentation | YouTube-VOS 2019 (val) | J-Score (Seen)85.2 | 231 | |
| Visual Object Tracking | GOT-10k | AO80.7 | 223 | |
| Visual Object Tracking | VOT 2020 (test) | EAO0.681 | 147 | |
| Medical Image Segmentation | ISIC 2018 | Dice Score87.46 | 92 | |
| Visual Object Tracking | LaSoText | -- | 88 | |
| Visual Object Tracking | LaSOText (test) | AUC56.9 | 85 | |
| Video Object Segmentation | SA-V (val) | J&F Score79.7 | 74 |