SAM 2

Extends segmentation to video: one prompt carries through the whole clip

What it is

Meta’s video follow-up to its image segmentation model tracks a target object through an entire clip from a single prompt, providing reliable plumbing for video matting and effects.

Highlights

  • One prompt tracks through the whole clip
  • Much better handling of occlusion and deformation
  • Supports realtime inference
  • Common base for video matting and effects

How to use

Install it, load a video with a first-frame prompt, and run to get per-frame segmentation results.

License

Released under Apache-2.0. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.