# Poster 30219

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30219

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everyone! My name is Valentin Gaber and today I will present our work called SAM2 – Segment Anything in Images and Videos. This work is a result of a large team effort and I would like to thank all my co-authors with whom I had the pleasure to collaborate on this project. In this project we tackle the task of promptable visual segmentation.
Given a video and given one or several user prompts on an object of interest, the task consists in returning a valid masklet of the object. That means the model returns a segmentation mask that accurately covers the object for each frame of the video.
We interact with the model in the form of geometric prompts. These are usually positive clicks on the objects or negative clicks outside of the object, but they can also be binary masks or bonding box around the object of interest. We start from a geometric prompt in one frame and propagate it to the whole video to obtain a valid masklet.
We put the accent on valid. If that masklet is not correct, we refine it by providing additional prompts in other frames, until we are satisfied with the result. The goal is not to output the best possible masklet after a single prompt. The goal is to output a correct masklet in as few prompts as possible. What model do we use for this task?
We build on the sum one model which is able to segment anything in an image. To make it work for videos we add a memory encoder. Through it the model is able to encode the appearance and location of the object in the current frame and store these features in a memory bank. The memories can then be cross -attended to in subsequent frames.
The video is processed real-time in a streaming fashion. At each step, the model has access to the current frame plus its memories. That allows us to handle arbitrarily long videos, possibly even being captured live. What data do we use to train such model? We first collected 50,000 videos from crowd workers around the world.
To annotate these videos, we integrate our model in a data engine with human in the loop. Humans are assisted by the model to annotate masklets in the videos. The masklets are then used to train and improve the model, which in turn make the task of the annotators easier to collect even more masklets. And the cycle continues.
To maximize the value of the collected data, we required our annotators to focus on the failure cases of the model. We were particularly interested in the challenging objects that require refinement clicks to obtain a valid masklet. By later training on this masklet, SAM2 was able to handle more and more complex cases.
To evaluate our model on the promptable visual segmentation task, we developed an interactive benchmark simulating the demo experience. The model is prompted with three clicks in the first frame to create an initial masklet over the whole video. We then add three refinement clicks on the worst segmented frame and repropagate to obtain a better masklet.
The process is repeated iteratively until having annotated eight frames. We report the average GNMF performance over nine zero -shot video datasets and compare against strong baselines which we outperform. But quantitative performance is not everything. Instead, we focused on the user experience when using the model.
For this reason, we implemented a demo from the beginning of the project that allowed us to play with each new version of the model and spot failure cases that were not captured in the metrics. This demo is online and accessible for anyone to use it. I also invite you to visit our GitHub page where we open source the code, data, checkpoints and even the demo code.
Thank you.
