Commit Graph
48 Commits
Author SHA1 Message Date
Quan Tran c3a42ff674 SAM3 multi-GPU session as default
Summary:
Default to multi-GPUs to avoid OOM. CPU offload seems to not helping as it still need to copy back into memory for tracking

___

overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: storytelling_ai_fsx_health

Differential Revision: D102039480

fbshipit-source-id: c3540efb984382756ead223f16b66f5d87bbeb0b
2026-04-24 10:21:30 -07:00
generatedunixname1401739305002972 7567e8028c Fix PYRE_MISSING_ANNOTATIONS issues in fbcode/deeplearning/projects/sam3_release/test/test_io_utils.py
Differential Revision: D102320245

fbshipit-source-id: c44cb4c6613356c6039140ccb0f56d92a1e84a2a
2026-04-24 04:43:37 -07:00
Quan Tran 2e0009e23f v3 code
Summary: better design between LLM and SAM3 due to the embedding issue of SAM3

Reviewed By: mchorton

Differential Revision: D101818594

fbshipit-source-id: b51c36defc6ed4adae5406e8eba31280e05cac9a
2026-04-21 22:27:16 -07:00
generatedunixname1228101065403401 967fdd651f Fix Unused Import issue in fbcode/deeplearning/projects/sam3_release/test/test_io_utils.py
Differential Revision: D101129326

fbshipit-source-id: 6a73103cd7ea482d89053768321b78ccb8319185
2026-04-16 03:26:38 -07:00
Minh Vu 44ef224799 Fix SAM3 io_utils to handle extensionless video files from OIL
Summary: Fix SAM3 io_utils.py to handle extensionless video files from OIL (Object Image Library). Previously, the code would immediately raise NotImplementedError when encountering files without recognized video extensions. This change attempts to load such files as videos using the video loader, only raising an exception if the actual decoding fails. This enables SAM3 to process OIL-stored video paths that don't include file extensions.

Differential Revision: D99228861

fbshipit-source-id: c93d089ad4b7eac9e0eb629d7a71b021604db410
2026-04-12 02:38:44 -07:00
generatedunixname26232875646305581 bfbed072a0 Daily arc lint --take BLACK
Differential Revision: D98889675

fbshipit-source-id: e9d0089e5abb73b9327f5453ad20fa5060b12a40
2026-03-31 03:16:31 -07:00
Nadav Yutal 29aecc4b7d Revert unintended changes from D98651970
Summary:
D98651970 accidentally included changes to sam3_image.py,
shopping_segmentation_images config, inference_engine, and tests
that were not part of the shared segmentation inputs refactor.
This reverts only those unintended files.

Reviewed By: omriharosh

Differential Revision: D98875697

fbshipit-source-id: 3e47fa686364f645295ddff094a5eff2237e9b33
2026-03-31 02:51:54 -07:00
Nadav Yutal e54adc4523 Extract shared segmentation inputs into reusable component
Summary:
All three segment tracking demo pages duplicate the same input widgets
(Everstore Handle, Text Queries, Confidence Threshold, Prediction Tier,
and optionally Thumbnail Size). Extract them into a SegmentationInputs
dataclass with a create() staticmethod that renders all shared Gradio
widgets and returns them as a typed bundle.

This eliminates duplication and ensures widget consistency across the
Segmentation, Query Comparison, and Incremental Query pages.

Differential Revision: D98651970

fbshipit-source-id: 60540a719b888095c5c8d0ba5e9bb321a4bd7cf1
2026-03-30 03:13:57 -07:00
Joseph Greer 5a3143c652 Apply linter
Summary: Applies lint

Reviewed By: arpitkalla

Differential Revision: D98515496

fbshipit-source-id: 967c9bf19ef7e1e25906204075c37c8461ed2a0e
2026-03-27 12:40:51 -07:00
Arpit Kalla 9f22cb976f SAM 3.1 Release (#503)
Summary:
SAM 3.1 multiplex video tracking for the OSS sam3 repository.

Features:
- Multiplex architecture: batch N objects into fixed-capacity buckets for efficient multi-object tracking (16 objects per bucket)
- Unified API: build_sam3_predictor(version="sam3.1") with auto-download from HuggingFace (facebook/sam3.1)
- Flash Attention 3, torch.compile support (~31 FPS compiled on H100)
- Text prompts, point prompts, box prompts, object removal, refinement
- Clean inheritance: Sam3MultiplexBase extends Sam3VideoBase
- Shared base predictor (Sam3BasePredictor) for both SAM3 and SAM3.1

Performance (H100, 5 objects, compiled):
- SAM 3.1: ~31 FPS
- Memory: ~17.7 GB

Usage:
  from sam3 import build_sam3_predictor predictor = build_sam3_predictor()  # auto-downloads SAM 3.1 from HF

Pull Request resolved: https://github.com/facebookresearch/sam3/pull/503

Reviewed By: josephgreer

Differential Revision: D98500763

Pulled By: arpitkalla

fbshipit-source-id: e2b74568f24bb4ecfb3144a4e8ec559aae6db5e8
2026-03-27 10:18:58 -07:00