Reproducing SAM 3.1's LVOSv2 val VOS result (Table 44 / RELEASE_SAM3p1.md): which evaluation protocol and settings?
Author: arashrockyCreated Sep 24, 2026Updated Sep 24, 2026
Hi, thanks for releasing SAM 3.1.
We are trying to reproduce the semi-supervised VOS results in RELEASE_SAM3p1.md (Table 44 of the SAM 3 paper) with the public code and checkpoint, starting with LVOSv2 val (reported: SAM 3.1 89.2 J&F). Our numbers are lower, and we would like to know which evaluation script and settings produced the table.
Setup
- Code: facebookresearch/sam3 at
8e451d5eb43c817b64ae7577fb7b9ae223db88a9(differs from the SAM 3.1 release tag only by annotations/formatting andclose_sessionchanges) - Checkpoint:
sam3.1_multiplex.ptfrom the Hugging Face repo (sha2560567debeec80ba4ac6369540c6c248025283cb3ff2b92827509e57e2b3541cb6) - Model:
build_sam3_multiplex_video_model→Sam3VideoTrackingMultiplexDemo, driven through its own API (init_state,add_new_masks,propagate_in_video_preflight,propagate_in_video); frames loaded withsam3/model/io_utils.load_video_frames(1008 × 1008); bf16 autocast + inference mode; model defaults otherwise (non_overlap_masks_for_outputas built,fill_hole_area0, no post-processing) - Prompts: each object's first ground-truth mask on its first annotated frame; no other ground truth
- Scoring: official LVOS toolkit (LingyiHongfd/lvos-evaluation @ 25cb02d1), semi-supervised task, 140 videos / 239 objects
Results on LVOSv2 val
| protocol | memory selection | J&F | J | F |
|---|---|---|---|---|
one session per object (as SAM 2's tools/vos_inference.py with --track_object_appearing_later_in_video) |
off (as built) | 79.0 | 75.6 | 82.4 |
| one session per object | on (use_memory_selection=True) |
81.5 | 77.8 | 85.1 |
| all objects of a video in one multiplexed session (later objects added on their first frame) | off (as built) | 83.0 | 79.6 | 86.5 |
| all objects in one multiplexed session | on | 83.3 | 79.6 | 86.9 |
| reported (RELEASE_SAM3p1.md / Table 44) | 89.2 |
Questions
- Which script produced the VOS rows of Table 44, and could it be released (like
scripts/eval/for SA-Co)? - Were a video's objects tracked in one multiplexed session, or one session per object as in SAM 2's
vos_inference.py? - Was
use_memory_selectionenabled?build_sam3_multiplex_video_modelsets it to False. - Did any other setting differ from the defaults above (input resolution, post-processing such as hole filling, checkpoint or config)?
Notes on driving the tracker standalone (worked around; happy to open separate issues)
sam3.1_multiplex.ptis a training-style container (detector.*,tracker.model.*), and the tracker's backbone exists only underdetector.backbone.*; we map tracker modules fromtracker.model.*and the backbone fromdetector.backbone.*, as the video predictor does (931/931 keys).Sam3VideoTrackingMultiplexDemo.init_state(video_path=...)passesuse_torchcodec/use_cv2to a loader that does not accept them; we initialize the state withvideo_height/video_width/num_framesand the loaded frames.- Without cached features,
_get_image_featurecallsforward_image(need_sam3_out=True), which raises an IndexError inforward_image's clone loop; we compute the tracker features as_prepare_backbone_features_per_framedoes. - Adding objects to a running session (
add_new_maskson an already-tracked frame →add_new_masks_to_existing_state) fails with a device mismatch when the state was initialized withoffload_state_to_cpu=True; it works with the state on the GPU. model_builder.pyimportspkg_resourcesat module level (needssetuptools<81).
Related: #557 (the same question for MOSEv2), #622, #526.
I can share a minimal reproduction script if useful. Thanks!
Source: facebookresearch/sam3