Segment Anything Model 2, or SAM 2, is a segmentation model from Meta FAIR that selects objects in both images and videos. Meta calls it the first unified model for segmenting across the two media. A click, a box or a mask serves as the prompt, and one or several objects can be chosen on an image or a video frame, then refined with extra prompts.
In video, an object can be tracked through the whole clip from a single click on one frame. The model shows strong zero-shot performance on objects and footage it was not trained on, and its streaming inference is designed for real-time, interactive use. Meta reports that it improves on the original SAM for images and needs less interaction time than earlier interactive video segmentation methods.
Researchers and developers working on image recognition and object identification can try an online demo, download the model or read the research paper. Access is free.