Updated November 2026: Sammie-Roto 2.5.0 (October 2026) and direct answers on download, Mac, DaVinci Resolve and “Sammie-Roto 3”; SAM 3 support in Ultralytics; MOSE and LVOS v2 scores added to the checkpoint table.
Why This Matters
Say your video product has to isolate one object across many frames: a person on a security feed, a tumour outline on a surgical recording, a product placement in a UGC clip, a face to anonymise in a stored archive. You have two options. The first is the classic computer vision pipeline, where a detector finds the object, a tracker keeps an ID across frames and a segmenter (Mask R-CNN, DeepLab) draws the polygon. It takes weeks to assemble per use case and breaks as soon as a customer asks for a class you never trained it on. The second is SAM 2: one click on frame zero, masks on every remaining frame, no training, no class list, no retraining cycle. The choice is not always obvious. SAM 2 is heavier per frame than a YOLO + tracker stack, and the prompt has to come from somewhere. Still, for any product that lets a human or a vision-language model say "track this specific thing", SAM 2 has become the default building block. For background, start with lesson 2.2 on the YOLO production lineage, since the canonical 2026 pattern is detect-then-segment, and lesson 2.3 on open-vocabulary detection, since Grounding DINO is the most common front-end that hands SAM 2 its initial prompt. By the end you will be able to specify a SAM 2 integration, pick a checkpoint size, design a long-video propagation strategy and avoid the mistakes we see when teams ship their first SAM 2 feature.
What Is SAM 2? The Short Answer
SAM 2 (Segment Anything Model 2) is Meta’s open video segmentation model: one click, box or mask on any frame returns a pixel mask of that object on every frame, with no training. It runs on a single cloud GPU (an L4 or A100 handles several streams) or, through EdgeTAM, on a phone. The main risks are long-clip drift and the need for a prompt source. Meta released it on 29 July 2024 under Apache 2.0, and SAM 2.1 (30 September 2024) is still the checkpoint family Meta publishes for it as of November 2026. Its successor, SAM 3 (November 2025, updated to SAM 3.1 on 27 March 2026), adds text prompts such as “yellow taxi” but ships under Meta’s own SAM License. If you want SAM 2 rotoscoping on a desktop without writing code, the free open-source app Sammie-Roto 2 (version 2.5.0, October 2026) wraps it in a GUI.
| Question | Answer (November 2026) |
|---|---|
| What does SAM 2 do? | Promptable segmentation and tracking of one chosen object across a whole video |
| Licence | Apache 2.0 for code and checkpoints; SA-V dataset under CC BY 4.0 |
| Latest checkpoints | SAM 2.1: Tiny 38.9M to Large 224.4M parameters |
| Newer Meta model | SAM 3.1 (848M parameters, text and exemplar prompts, SAM License) |
| On-device variant | EdgeTAM: 16 FPS on an iPhone 15 Pro Max (Meta, January 2025) |
| Free desktop rotoscoping app | Sammie-Roto 2 v2.5.0, GPL-3.0, Windows, macOS and Linux |
What SAM 2 Actually Is
SAM 2, short for Segment Anything Model 2, came out of Meta's FAIR (Fundamental AI Research) group on 29 July 2024 together with the paper "SAM 2: Segment Anything in Images and Videos" (arXiv:2408.00714) by Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu and collaborators. The paper, the code repository at facebookresearch/sam2 on GitHub, four pretrained checkpoints, an interactive web demo and the SA-V training dataset all shipped the same day under the Apache 2.0 licence. A patch release, SAM 2.1, followed on 30 September 2024 with improved checkpoints and updated developer tools.
The model does one job well. You give it a video and a prompt (a single point click, a box or a hand-drawn mask) on any one frame, and it returns a pixel-accurate segmentation mask of the same object on every frame, in both directions in time. It also works on still images: with a single image the memory module is empty and the model behaves exactly like the original SAM. That is the contract. One prompt in, masks out for every frame, no class list, no retraining.
What makes this a step change over earlier video object segmentation (VOS) models is the promptable part. Older VOS systems such as XMem, AOT, DeAOT and STCN also propagated a mask across a video, but the user had to draw a mask by hand on frame one. SAM 2 accepts a single click, so the human work drops from minutes to seconds, and it accepts more clicks mid-video to fix errors, so the user stays in the loop without holding a paintbrush. That difference, promptable propagation versus initialised propagation, moved the technology out of research demos and into rotoscoping software, surveillance investigation tools and medical-imaging review systems.
Figure 1. SAM 2's promptable segmentation contract. A single click on frame N produces masks on every frame in the video; an optional correction click on any frame updates the propagation in both directions.
How The Memory Module Works (And Why It Matters)
The one piece of architecture that separates SAM 2 from SAM is the memory module. The rest of the model (image encoder, prompt encoder, mask decoder) is structurally close to SAM, with quality-of-life upgrades. The memory module is the new idea, and most of the engineering work sits there.
Here is the pipeline. A hierarchical vision transformer backbone called Hiera, a ViT pretrained as a masked autoencoder, processes each video frame and produces multi-scale image embeddings (stride 4, 8, 16, and 32 features). A feature pyramid fuses the stride-16 and stride-32 features into one stride-16 embedding for the memory attention layer. The stride-4 and stride-8 features skip memory and go straight to the mask decoder as high-resolution skip connections, which is how the decoder draws clean edges on thin objects.
The memory attention layer is a transformer block. It uses the current frame's image embedding as the query and a buffer of stored object features from earlier frames as the keys and values. The buffer holds two kinds of entries. The first is a stack of recent-frame memories: up to six of the most recent frame embeddings plus their predicted masks, fused into per-frame memory tensors by a small memory encoder (the default memory bank has seven slots: the prompted frame plus six recent frames). The second is a stack of prompted-frame memories: the embeddings of every frame where the user clicked, drew a box or scribbled, kept separately, never evicted and tagged with their own temporal position encoding. The split is deliberate. Prompted frames anchor the model to what the user meant, and recent frames let it adapt to appearance changes (the object turning, lighting shifting, partial occlusion).
Cross-attention between the current frame and this buffer tells the mask decoder which object to segment on the current frame. Without memory, the model could only segment what the prompt pointed at, and the prompt exists on one frame only. With memory, it carries the object's identity forward (and backward, because the buffer is filled by running the model in both temporal directions from the prompted frame). That is also why a correction click on frame 200 updates the mask on frame 50: the corrected frame becomes a prompted-frame memory and the model re-runs propagation from that anchor.
The image encoder is by far the most expensive part of the pipeline, at roughly 70–80% of total compute. Memory attention adds maybe 10%, and the mask decoder is light. In practice this means that if you click once per video and let the model propagate, you pay one image-encoder pass per frame (heavier for Large, lighter for Tiny). The memory bank has a fixed number of slots, so per-frame cost does not grow with video length. Risk and RAM do grow. The stock video predictor keeps every frame's outputs in its inference state, and on very long videos (10K+ frames) the small rolling window lets the model drift onto look-alikes. That problem is what the SAM2Long and distractor-aware memory follow-ups below set out to fix.
Figure 2. The SAM 2 video pipeline. The memory attention layer is the cross-attention between the current frame and the buffer of recent and prompted memories, the part that did not exist in SAM 1. In the default configuration the bank has seven slots: the prompted frame plus the six most recent frames.
Mask Propagation In Practice
The architecture matters because of how SAM 2 behaves for the user. Reduced to the core action, the interaction loop looks like this:
- The user (or an upstream detector) drops a prompt, whether a point, a box or a mask, on any frame of a clip.
- SAM 2 segments that frame and produces a mask plus an internal memory of "this object, here, in this lighting, at this pose".
- The model then runs forward and backward through the video frame by frame, conditioning the decoder on the memory buffer, and every frame gets a mask.
- The user reviews the result. If a mask looks wrong on some frame (say the model jumped to the wrong person at frame 240), one click adds a correction. The corrected frame becomes a new prompted-frame memory and the model re-propagates from that anchor.
- Repeat until the masks look right. For cooperative scenes, two or three correction clicks per minute of footage is typical.
The "correction click" does more than the name suggests. In the older XMem / DeAOT world, fixing a propagation error meant going back to frame one, drawing a fresh mask and re-running propagation from scratch, which often introduced new errors. In SAM 2, a single point at frame 240 fixes the forward propagation past frame 240 and the backward propagation toward frame 0 at once, because the memory buffer reweighs the prompted frame and the model runs end-to-end on the new prompt set. On long clips with simple objects the user can leave the model alone and step in only when it flags low-confidence frames.
The model also emits several candidate masks per frame and an occlusion score, a learned signal that says "this object is not visible in this frame". Production pipelines use the occlusion score to decide whether to emit a mask on a given frame at all. That prevents propagation from locking onto a similar-looking distractor after the original object has left the scene.
The Four Model Sizes — Picking The Right Checkpoint
SAM 2 ships in four sizes, and the 2.1 versions (released September 2024) are the recommended defaults. The numbers below are Meta’s published figures from the facebookresearch/sam2 repository (checked November 2026), measured on an NVIDIA A100 with torch.compile enabled. Mask quality is J&F on the SA-V test set, the MOSE validation set (crowded, heavily occluded scenes) and LVOS v2 (long videos).
| Checkpoint | Parameters | A100 FPS (video, 1024² input) | Mask quality (SA-V test J&F) | MOSE val J&F | LVOS v2 J&F | Typical use |
|---|---|---|---|---|---|---|
sam2.1_hiera_tiny |
38.9M | 91.2 | 76.5 | 71.8 | 77.3 | Edge / Jetson / cost-sensitive cloud |
sam2.1_hiera_small |
46M | 84.8 | 76.6 | 73.5 | 78.3 | Edge with slightly better quality |
sam2.1_hiera_base_plus |
80.8M | 64.1 | 78.2 | 73.7 | 78.2 | Most production cloud workloads |
sam2.1_hiera_large |
224.4M | 39.5 | 79.5 | 74.6 | 80.6 | Accuracy-bound: rotoscoping, medical, archival |
Figure 3. SAM 2.1 model variants. Frame-rate numbers assume single-stream video propagation on an A100 with torch.compile (the vos_optimized predictor added in December 2024); without compilation Large runs closer to 30 FPS. The 3-point J&F gap between Tiny and Large is the price of a 2.3× speed-up.
A simple decision rule that has held up across a dozen of our projects:
- Cloud product, fewer than a thousand concurrent streams, quality as the headline feature (rotoscoping for VFX, medical-imaging review): pick Hiera-Large.
- Cloud product at higher concurrency where "good" quality is enough: pick Hiera-Base+, which gives the best quality per dollar.
- Edge hardware (Jetson Orin, robotics, on-device blur) or a per-stream budget under a cent per minute: pick Hiera-Tiny and accept the quality hit. Roboflow's Inference and Ultralytics' SAM 2 wrapper both run Tiny on Jetson directly.
Published TensorRT integrations change the cost picture. TIER IV, the autonomous-driving software company, reported in June 2025 that its C++ TensorRT FP16 pipeline cut SAM 2 inference from about 5,000 ms per frame in the Python prototype to 123 ms per frame on a single NVIDIA L40S with roughly 100 box prompts. That is a 40× speed-up and about 3× faster than its own ONNX Runtime build.
For phones and small edge boards, Meta offers EdgeTAM (arXiv:2501.07256, January 2025, Apache 2.0), a SAM 2 derivative with a lighter memory path. It runs at 16 FPS on an iPhone 15 Pro Max without quantisation, 22× faster than SAM 2 on the same device. So if you are deploying a vision foundation model like SAM 2 on the edge in 2026, you will usually end up with EdgeTAM or Hiera-Tiny with TensorRT, and rarely with Hiera-Large.
The SA-V Dataset — Why The Numbers Stand Up
A model is only as good as its training data, and SAM 2 learned from the largest open video segmentation dataset there is. The Segment Anything Video (SA-V) dataset, published with SAM 2, contains 50.9K videos and 642.6K masklets (spatio-temporal mask tracks across video), recorded in 47 countries for visual diversity. Of these, 190.9K masklets were annotated by hand and 451.7K were model-assisted, produced by a dual-stream annotation engine with SAM 2 itself in the loop and humans verifying. The previous largest open VOS data (DAVIS plus YouTube-VOS plus MOSE) had roughly 50× fewer masks.
Meta trained SAM 2 on a mix of SA-V, SA-1B (the original SAM image dataset), internal Meta video and the public MOSE, YouTube-VOS and DAVIS sets, with SA-V as the largest share. Why this matters in 2026: when a competitor says "we built our own VOS model", ask "trained on what?". The SAM 2 baseline is hard to beat because nobody else has 643K masklets.
The dataset itself is released under the Creative Commons Attribution 4.0 (CC BY 4.0) licence, according to the sav_dataset README in Meta’s sam2 repository (checked October 2026). That licence is permissive. It has no share-alike or copyleft clause, but you must credit the dataset. Most production deployments use the model and never touch the dataset. If your team fine-tunes on a specialised domain (medical, industrial inspection, surgical video) and mixes SA-V into the training set, keep the attribution in your model documentation and check the licences of your own domain data, which tend to be stricter.
Real Use Cases — What SAM 2 Ships In Right Now
Rotoscoping And VFX
Rotoscoping, masking a subject out of a video frame by frame, is the classic SAM 2 use case and the closest to a complete product fit. Manual roto of a complex subject (curly hair, fast motion, semi-transparent fabric) takes hours of keyframing per shot. SAM 2 gives a usable first-pass matte in the time it takes to propagate, plus two or three correction clicks. Open-source tools like Sammie-Roto and Sammie-Roto 2 (covered in its own section below) are free GUI wrappers on top of SAM 2 with the same click-and-propagate workflow as Adobe’s Roto Brush and DaVinci Resolve’s Magic Mask.
VFX teams report that SAM 2 wins on speed and loses on edge fidelity for the hardest footage. Its raw output is a hard binary matte that can flicker at the edges from frame to frame, and it struggles with hair and motion blur, so desktop tools pair it with a separate matting model for soft edges. Teams have settled on two tiers: SAM 2 for previz, dailies and lower-budget projects, and manual or matting-assisted roto for hero shots that have to hold up on a cinema screen at 4K.
Region-Of-Interest Cropping For Generative Video And ASR
The second big use case is less glamorous and more common: cropping a region out of a video for a downstream model. A generative-video pipeline (text-to-video, inpainting, video translation) often needs to work on the subject alone, without the background. A speech-recognition pipeline that uses lip-reading needs the mouth region cropped. An auto-zoom feature in a video editor needs the speaker's head boxed and tracked. SAM 2 supplies the spatial mask, and downstream models receive a clean, temporally consistent ROI.
This pattern sits behind the auto-reframe features that “AI video editor” tools such as Opus Clip and Submagic advertise, for example "automatically reframe a 16:9 video into 9:16 portrait, keeping the speaker centred". A face detector finds the speaker, SAM 2 propagates the speaker's bounding mask, and the crop region is the bounding box of that mask. The user sees "the system follows me as I move". Under the hood it is SAM 2 plus a Kalman filter to smooth the crop.
Surveillance Investigation
Surveillance is the third canonical fit, and here SAM 2 makes possible features that did not exist before. A human analyst (or, more and more often, a vision-language model agent) reviews footage for a specific person, vehicle or object and clicks once on the target in frame 1500. SAM 2 produces masks of that target across the whole archive, minutes and sometimes hours of footage, and the masks feed re-identification, motion analysis or evidence export.
This use case is what prompted the 2025 follow-up paper SAM2.1++, which introduces a distractor-aware memory mechanism. Baseline SAM 2 sometimes confuses similar-looking objects, such as two people in the same uniform or two cars of the same colour. SAM2.1++ (Videnovic et al., CVPR 2025) changes how the memory buffer combines recent and prompted frames and adds an introspection-based update rule. The authors report that it beats SAM 2.1 on seven tracking benchmarks and sets a new state of the art on six of them. For a surveillance team, that is the gap between "the system locked onto the wrong car at frame 200" and "the system held the right car for ten minutes".
Telemedicine And Surgical Video
The fourth use case is medical: segmenting an organ, lesion or surgical instrument across the frames of a procedure or examination recording. The SAM 2 paper reports strong zero-shot results on medical video benchmarks, and follow-up work has carried the model further into this domain with task-specific prompting and quantisation: SAM2-SGP for medical image segmentation, Q-SAM2 for quantised medical deployment and SAM2S for surgical video with long-term tracking.
On our telemedicine platforms, SAM 2 usually runs as a hybrid. The model sits on the doctor's side inside a review tool: the doctor clicks once on a region of interest (a thyroid nodule, a polyp, a wound) and gets a propagated outline over the recorded video. The doctor verifies and corrects, and the model removes the drudgery. The accuracy bar is high and query volume is low (a few clips per consultation), so we pick Hiera-Large even though it costs more per frame.
Sammie-Roto 2: Free SAM 2 Rotoscoping On Your Desktop
Sammie-Roto 2 is a free, open-source desktop app (GPL-3.0) by the developer Zarxrax that turns SAM 2 into a point-and-click rotoscoping tool: you click the subject, it tracks a mask through the clip, and it exports mattes for compositing. The current release is 2.5.0 (4 October 2026). It added a work-in-progress anime segmentation model and the ProPainterX object-removal model, dropped the old OpenCV removal method and fixed RAM usage on Mac; an install-script hotfix followed on 11 October 2026. Before that, 2.4.1 (5 September 2026) added preliminary AMD GPU support on Windows, and 2.4.0 (22 August 2026) brought the self-contained installer with in-app update alerts and forward, backward and single-frame tracking. It runs on Windows, macOS and Linux; you install it by unzipping the release and running install.bat or install.sh.
It is more than a SAM 2 demo because of the chain of models behind the buttons, the same detect, segment, refine pattern this lesson describes for products:
| Step in Sammie-Roto 2 | Model | What it adds |
|---|---|---|
| Segmentation and tracking | SAM 2 (EfficientTAM as a lighter option; an anime model in testing since 2.5.0) | Click-to-mask and propagation through the clip |
| Matting | MatAnyone, MatAnyone 2, VideoMaMa | Soft alpha edges for hair and motion blur that SAM 2’s binary mask lacks |
| Object removal | MiniMax-Remover; ProPainterX since 2.5.0 | Inpaints the masked object out of the shot |
| Export | — | PNG sequences, EXR, matte and alpha outputs for After Effects, Nuke or Resolve |
Check three things before you rely on it. The app is GPL-3.0, but the models it downloads come from other projects and some carry non-commercial terms, so check each model licence before using it on paid work. Matting is the VRAM-heavy step: the changelog notes that VideoMaMa needs about 6 GB of VRAM at its smallest resolution, and half-precision mode speeds up segmentation on GPUs that support it. And the app inherits SAM 2’s long-clip drift, so split long shots with the In/Out markers instead of tracking thousands of frames in one pass. The original Sammie-Roto (version 1) is still on GitHub, but development continues on version 2.
For a product team, Sammie-Roto 2 works better as a reference design than as a component. It shows that a production-grade roto feature needs SAM 2 plus a matting model plus a removal model, and that most of the engineering goes into batching, colour-space handling and memory recovery. Those are the areas its 2026 releases mostly fixed.
Sammie-Roto 2 Download, Mac, DaVinci Resolve And Sammie-Roto 3
Download Sammie-Roto 2 only from the Zarxrax/Sammie-Roto-2 releases page on GitHub; it is free, runs on Windows, macOS and Linux, and as of November 2026 there is no official Sammie-Roto 3. Below are short answers to the questions people search for most often after the app itself.
How do I download and install Sammie-Roto 2?
Get the latest release zip from the Sammie-Roto 2 releases page. On Windows, extract it outside Program Files, run install.bat, then start the app with run_sammie.bat. On macOS and Linux, run bash install.sh in a terminal, then launch it from the desktop icon on macOS or with bash run_sammie.sh on Linux. Models download on demand the first time you use them. If you are updating from 2.3.3 or older, the release notes say to install 2.5.0 into a new folder instead of over the old one.
Does Sammie-Roto 2 run on a Mac?
Yes. The README lists macOS next to Windows and Linux, and version 2.5.0 fixed RAM usage on Mac. The project does not document Apple Silicon acceleration separately, so test the matting models on your own footage before you plan heavy matting work on a Mac. Support for AMD GPUs on Windows (2.4.1) and Intel Arc (2.3.0) is still marked preliminary.
How do I use Sammie-Roto with DaVinci Resolve?
Sammie-Roto 2 is a standalone app, not a Resolve plugin. Track the subject, export a PNG or EXR sequence with the matte or alpha, then bring that sequence into Resolve as an external matte on the Color page or as a mask input in Fusion. Since 2.5.0, image-sequence import and export keep the original file numbering, so the matte lines up with the source frames more easily. The draw is cost: Blackmagic Design lists Magic Mask’s AI tracking among the features of the paid DaVinci Resolve Studio, and Sammie-Roto 2 is free.
Is there a Sammie-Roto 3?
Not an official one. Zarxrax’s current line is 2.x, and 2.5.0 is the latest release as of November 2026. People who search for “Sammie-Roto 3” usually want either a newer Sammie-Roto or a version that runs Meta’s SAM 3. The second exists as a community fork, Sammie-Roto-2-SAM3 by ThomasBignolas (GPL-3.0, development builds, Windows setup scripts), which adds SAM 3 and SAM 3.1 back ends with text prompts. It needs an approved Hugging Face account for the gated SAM 3 weights, and the original author does not maintain it.
A Worked Example — Surveillance Re-Identification With SAM 2
Here is a concrete deployment. A video surveillance product lets a security analyst type a description like "black hatchback near the east entrance", get a list of candidate frames from the past 24 hours of footage and produce a clean mask track of the matching vehicle for evidence export. The workload is twenty cameras at 1080p, H.264 at 25 fps, ~2 TB of footage per day.
The 2026 production pipeline is three stages.
Stage 1: Open-vocabulary detection (gated). An open-weights Grounding DINO model runs at a low cadence (one frame every two seconds, 30 frames per minute per camera) and emits boxes for the analyst's prompt. This stage is not real-time. It runs in batch on a Spot GPU pool and produces a candidate-events list (frame timestamp + bounding box + similarity score). Cost: 20 cameras × 0.5 frames per second is 10 frames per second; at about 0.6 frames per second per GPU that is roughly 17 Spot GPUs × $0.40/hour × 24 hours ≈ $160/day (illustrative 2026 Spot pricing; check your provider).
Stage 2: SAM 2 propagation (on demand). When the analyst clicks a candidate event, SAM 2 Hiera-Base+ propagates across the surrounding minute of footage (1,500 frames) on a single L4 GPU. With TensorRT FP16 the full minute takes roughly 25 seconds, and each on-demand run costs about $0.008. Within about half a minute the analyst sees the event clip with the vehicle masked across all 1,500 frames.
Stage 3: Re-ID and evidence export. The masked frames go to a CLIP-style re-identification model that produces a fingerprint of the vehicle. The fingerprint is matched against the candidate-events list to find every other appearance of the same vehicle in the 24-hour window, and the matched clips are exported with the SAM 2 masks burned in for the evidence package.
Stage 1 is the fixed cost at about $160/day. Each analyst query adds under one cent of GPU time in stage 2, so even 5,000 queries a day keep the fleet near $200/day. The output (per-pixel masks across minutes of footage, with the right vehicle identified across multiple cameras) would take a manual workflow at least a day per query.
The tricky engineering sits in stage 2. SAM 2's memory window is fixed, so on long clips the prompted frame becomes a more and more distant anchor. For the 1,500-frame minute, based on the drift we measured and GPU memory limits, the team's pipeline resets the memory every 300 frames and re-prompts from the previous segment's last high-confidence mask. Without these resets the propagation drifts at around the 500-frame mark, the canonical "SAM 2 long-video drift" failure mode covered in the next section.
Three Common Mistakes — The Pitfalls We See Most Often
Pitfall 1: Treating SAM 2 as a detector. Teams new to the model sometimes assume they can hand SAM 2 a whole video and tell it to "find all the people". It cannot do that. SAM 2 needs a prompt (a point, a box or a mask) that says which object to segment. If you first need to find the objects in a frame, put a detector in front of SAM 2: YOLO for closed-vocabulary, Grounding DINO or Florence-2 for open-vocabulary. Detect-then-segment is the canonical 2026 architecture for "find and outline" features, with the detector in front of SAM 2 and outside it.
Pitfall 2: Underestimating long-video drift. The SAM 2 memory bank keeps the prompted frames plus only the six most recent frames. On videos longer than a few hundred frames, the prompted frame is the only long-range anchor left, and the object may no longer look anything like it, so the model can slowly drift onto a similar-looking distractor. You can fix this with SAM2Long (a training-free memory tree extension for long-video robustness, released October 2024) or with a manual reset strategy: split the long video into 300-frame chunks, propagate each chunk on its own and re-prompt at each boundary from the previous chunk's last high-confidence mask. Drift is fixable. It only hurts teams that learn about it after shipping.
Pitfall 3: Ignoring the occlusion score. SAM 2 emits an occlusion (object-presence) score per frame, a learned signal of whether the prompted object is visible. Teams that read only the mask output and skip this score get false-positive masks on frames where the object has left the scene. The mask is usually small and ambiguous, but it still gets rendered, and the downstream consumer (a re-ID model, an alarm system) treats it as a real detection. In code, the signal is the object-score logit from SAM 2’s occlusion head. The official predictor already blanks the mask when that logit is below zero. Pipelines that post-process raw mask logits, or that need fewer false alarms, should set their own stricter cutoff, tuned on their own footage, and emit no mask below it. We have seen this one line of code fix a customer's "the system keeps tracking the air where the person was" complaint after it had been escalated three times.
Where SAM 2 Sits Relative To Mask R-CNN, XMem, And SAM 3
When teams choose between options, three comparisons matter most.
Mask R-CNN is the classical instance-segmentation baseline: a two-stage detector (Faster R-CNN) with a parallel mask head. It is closed-vocabulary, needs retraining per class and produces per-frame masks with no temporal consistency. Pick it when you have a fixed class list and a labelled training set and need raw mask throughput one frame at a time. Pick SAM 2 when you have no class list and no training set and need temporal consistency.
XMem, AOT, DeAOT and the rest of the pre-SAM-2 VOS family take a hand-drawn mask on frame one and propagate it. They are accurate but slow, and they are not promptable: the user supplies an initial mask instead of a click. SAM 2 beats them on the standard VOS benchmarks in its paper and is far easier to use.
SAM 3, released by Meta on 19 November 2025, works differently. SAM 3 introduces Promptable Concept Segmentation: given a noun phrase like "yellow taxi" or an image exemplar, it segments and tracks every instance of that concept in the video. Reach for SAM 3 when the job is "find and segment all the X" and for SAM 2 when the job is "track this specific instance of Y", the track this one thing contract. In 2026 teams use the two together: SAM 3 for the find-all-instances pass, SAM 2 (or SAM 3's own per-instance head) for per-instance refinement. On 27 March 2026 Meta shipped SAM 3.1 Object Multiplex, a drop-in replacement for SAM 3 that tracks up to 16 objects in one forward pass instead of one path per object. Meta reports throughput on a single H100 rising from 16 to 32 frames per second for a moderate number of objects. If your stack already uses Ultralytics, its package integrates SAM 3 with video predictors for box and text prompts. As of November 2026 its documentation supports SAM 3.1 checkpoints for image prediction only, without Object Multiplex video tracking, and the weights for both are gated downloads from Hugging Face. Two practical differences decide the choice. SAM 3 is an 848M-parameter model against 224.4M for SAM 2.1 Large, so it costs more to serve. It also ships under Meta’s SAM License instead of Apache 2.0, and your legal team should read that licence before you embed it. This lesson covers SAM 2 because it is the Apache-licensed baseline deployed everywhere, and SAM 3’s own tracker builds on it.
Free download: SAM 2 Integration Decision WorksheetOne printable page with the eight questions to answer before you integrate SAM 2: prompt source, checkpoint size, deployment target, video length, multi-object scope, occlusion strategy, licence audit, and the fallback when the model fails.Where Fora Soft Fits In
Fora Soft has shipped video products since 2005 in video conferencing, video streaming, OTT, video surveillance, telemedicine and AR/VR, the same verticals where SAM 2 is changing what products can do. We have built SAM 2 into surveillance investigation tools, where a security analyst clicks once on a person and gets propagated masks across minutes of footage; into telemedicine review systems, where doctors outline regions of interest on stored recordings; and into video-editing features that auto-reframe portraits and track speakers. Most of the engineering risk lives in the integration work: choosing the checkpoint, sizing the memory-reset cadence for long videos, wiring occlusion thresholds into downstream consumers and planning the prompt source (human click, detector handoff, vision-language agent). That is the work we do when we ship SAM 2 architectures for customers. Our computer vision development services cover the model and deployment side, and our video editing and processing developers build the rotoscoping and ROI tools on top. For click-to-track investigation features in security products, our computer vision for video surveillance team ships the detector, SAM 2 propagation and re-ID stages as one system.
The book
AI for Video: A Complete Guide to Intelligence in Video Products
Volume 6 of the Fora Soft Video Engineering Handbook takes the computer vision stack from this lesson end to end: detectors that hand SAM 2 its prompt, promptable segmentation and tracking across long clips, and the inference choices that set cost per stream on a cloud GPU or a Jetson. You finish it able to design the detect-then-segment pipeline and size it for production. Written by Nikolay Sapunov, CEO at Fora Soft.
Planning a click-to-track or auto-masking feature?
Tell us where the prompt comes from, how long your clips run and what hardware you have. We will help you pick the checkpoint, set the memory-reset cadence and the occlusion threshold, and estimate GPU cost per query before you build. 250+ video products shipped since 2005.
See our case studies
Case study
Mindbox
AI video management for surveillance: RTSP to FFmpeg to HLS, face recognition at 99.5%+ accuracy, plate reading on 500,000+ vehicles a day, and forensic search across hours of footage in 50+ deployments.
Case study
VALT
Video recording and review for medical simulation labs and police interviews: 770+ U.S. organizations, 50,000+ users, HIPAA-compliant review of stored footage, built and run by our team for 10+ years.
Case study
SuperPowerFX
Consumer VFX app on iOS and Android: 20+ Hollywood-style effects composited onto user clips, 500K+ downloads and 20,000+ reviews over eight years on the market.
What to read next
Detection
Open-vocabulary detection: Grounding DINO, Florence-2, RF-DETR
The front end that turns a text prompt into the box SAM 2 needs.
Tracking
Multi-object tracking: DeepSORT, ByteTrack, OC-SORT
When boxes and IDs are enough and a per-pixel mask is overkill.
Surveillance
Surveillance investigation with a multimodal agent
An agent that searches the archive and hands the target to segmentation.
Video editing
Opus Clip, Descript, Submagic: AI video editor tools
Auto-reframe and speaker tracking, the ROI use case in shipped products.
References
- Ravi, N., Gabeur, V., Hu, Y.-T. et al. SAM 2: Segment Anything in Images and Videos. arXiv:2408.00714, July 2024. https://arxiv.org/abs/2408.00714
- Meta AI. Introducing Meta Segment Anything Model 2 (SAM 2). AI at Meta research page, 29 July 2024. https://ai.meta.com/research/sam2/
- Meta AI / facebookresearch. SAM 2 GitHub Repository: Code, Checkpoints, And Notebooks. Apache 2.0 licence. Accessed 2026-11-16. https://github.com/facebookresearch/sam2
- Meta AI. SAM 2.1 Release Notes And Improved Checkpoints. 30 September 2024 release. https://ai.meta.com/research/sam2/
- Encord. Segment Anything Model 2 (SAM 2) & SA-V Dataset From Meta AI Explained. Encord engineering blog. Accessed 2026-05-24. https://encord.com/blog/segment-anything-model-2-sam-2/
- Encord. Meta's SAM 2.1 Explained: Improved Performance & Usability. Encord engineering blog. Accessed 2026-05-24. https://encord.com/blog/sam-2.1-explained/
- Ultralytics. SAM 2: Model Documentation, Checkpoints, FPS Numbers. Ultralytics Docs. Accessed 2026-05-24. https://docs.ultralytics.com/models/sam-2
- Roboflow. How To Use SAM 2 For Video Segmentation. Roboflow blog. Accessed 2026-05-24. https://blog.roboflow.com/sam-2-video-segmentation/
- Yu, S., Sun, Y. et al. SAM2Long: Enhancing SAM 2 For Long Video Segmentation With A Training-Free Memory Tree. arXiv:2410.16268, October 2024. https://arxiv.org/abs/2410.16268
- Meta AI. SAM 3: Segment Anything With Concepts. arXiv:2511.16719, November 2025. https://arxiv.org/abs/2511.16719
- Meta Newsroom. New Segment Anything Models Make It Easier To Detect Objects And Create 3D Reconstructions. 19 November 2025. https://about.fb.com/news/2025/11/new-sam-models-detect-objects-create-3d-reconstructions/
- TIER IV Tech Blog. High-Performance SAM 2 Inference Framework With TensorRT. Medium, 25 June 2025.
- Yuzawa, R. SAM 2 Video Segmentation Inference On Jetson Orin Nano: Edge AI Implementation Memo. Personal engineering blog. Accessed 2026-05-24. https://ryogayuzawa.github.io/jetson-sam2-setup/
- Zarxrax. Sammie-Roto And Sammie-Roto-2: Open-Source GUI For SAM 2 Rotoscoping. GitHub repositories, changelog through v2.5.0 (4 October 2026). Accessed 2026-11-16. https://github.com/Zarxrax/Sammie-Roto-2
- Meta / facebookresearch. SAM 3 GitHub Repository: SAM 3.1 Object Multiplex release (27 March 2026), SAM License. Accessed 2026-10-12. https://github.com/facebookresearch/sam3
- Meta. facebook/sam3.1 model card. Hugging Face. Accessed 2026-10-12. https://huggingface.co/facebook/sam3.1
- Zhou, C. et al. EdgeTAM: On-Device Track Anything Model. arXiv:2501.07256, January 2025. https://arxiv.org/abs/2501.07256
- Videnovic, J., Lukezic, A., Kristan, M. A Distractor-Aware Memory for Visual Object Tracking with SAM2. CVPR 2025. CVPR 2025 open access
- Ultralytics. SAM 3: Segment Anything with Concepts. Ultralytics Docs. Accessed 2026-11-16. https://docs.ultralytics.com/models/sam-3
- ThomasBignolas. Sammie-Roto-2-SAM3: Sammie-Roto 2 With SAM 3 / SAM 3.1 Backends. GitHub, GPL-3.0. Accessed 2026-11-16. https://github.com/ThomasBignolas/Sammie-Roto-2-SAM3
- Digital Production. DaVinci Resolve 20.1: Apple Vision Pro, Magic Mask V2. 7 August 2025. digitalproduction.com
