Sahaj.blogs
2 Aug 2024 · Paper summary

Paper summary: SAM 2: Segment Anything in Images and Videos

SAM 2 extends Segment Anything to video with a streaming-memory Transformer and a data engine that built the largest video segmentation dataset to date.

Problem

The original Segment Anything Model (SAM) segments any object in a single image from a click or box. Video adds time: objects move, get occluded and reappear, and you want to prompt once and have the mask follow the object.

Method

  • Model: a simple Transformer with a streaming memory. Frames are processed one at a time, and the memory carries information about the target object forward, which enables real-time video processing.
  • Data engine: model and annotators improve each other through interaction. The engine collected the largest video segmentation dataset to date.

Key results

From the abstract: in video segmentation, better accuracy with 3× fewer interactions than prior approaches. In image segmentation, more accurate and 6× faster than SAM. The model, dataset, training code and demo are released.

Limitations

From the paper:

  • may fail across shot changes
  • can lose or confuse objects in crowded scenes, after long occlusions or in long videos (extra clicks on other frames usually recover it)
  • struggles with very thin, fast-moving details and with nearby objects that look alike, such as identical juggling balls; the authors suggest more explicit motion modelling

#cv#segmentation#video

Sources

  1. SAM 2: Segment Anything in Images and Videos (arXiv:2408.00714) — arXiv
  2. Hugging Face Daily Papers, 2024-08-02 — Hugging Face
  3. SAM 2: Segment Anything in Images and Videos (arXiv HTML full text) — arXiv

This is a summary written from the linked public sources. Figures and numbers are as reported there.