Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#626·sam3

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 and close_session changes)
  • Checkpoint: sam3.1_multiplex.pt from the Hugging Face repo (sha256 0567debeec80ba4ac6369540c6c248025283cb3ff2b92827509e57e2b3541cb6)
  • 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 with sam3/model/io_utils.load_video_frames (1008 × 1008); bf16 autocast + inference mode; model defaults otherwise (non_overlap_masks_for_output as built, fill_hole_area 0, 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

  1. Which script produced the VOS rows of Table 44, and could it be released (like scripts/eval/ for SA-Co)?
  2. Were a video's objects tracked in one multiplexed session, or one session per object as in SAM 2's vos_inference.py?
  3. Was use_memory_selection enabled? build_sam3_multiplex_video_model sets it to False.
  4. 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.pt is a training-style container (detector.*, tracker.model.*), and the tracker's backbone exists only under detector.backbone.*; we map tracker modules from tracker.model.* and the backbone from detector.backbone.*, as the video predictor does (931/931 keys).
  • Sam3VideoTrackingMultiplexDemo.init_state(video_path=...) passes use_torchcodec / use_cv2 to a loader that does not accept them; we initialize the state with video_height / video_width / num_frames and the loaded frames.
  • Without cached features, _get_image_feature calls forward_image(need_sam3_out=True), which raises an IndexError in forward_image's clone loop; we compute the tracker features as _prepare_backbone_features_per_frame does.
  • Adding objects to a running session (add_new_masks on an already-tracked frame → add_new_masks_to_existing_state) fails with a device mismatch when the state was initialized with offload_state_to_cpu=True; it works with the state on the GPU.
  • model_builder.py imports pkg_resources at module level (needs setuptools<81).

Related: #557 (the same question for MOSEv2), #622, #526.

I can share a minimal reproduction script if useful. Thanks!

Source: facebookresearch/sam3

View original on GitHubView discussion on GitHub