r/computervision • • 11d ago

Showcase tamserve: open-source, real-time object tracking for live video feeds, 4x faster than SOTA with flat memory for more camera capacity per GPU

I type "forklift" on a live warehouse camera, and tamserve finds and tracks both forklifts, including the one driving in. Then I add "person" without stopping it.

tamserve runs Meta's SAM 3 on live camera feeds. SAM 3's own tracker handles one recorded video at a time, runs at about 8 fps, and runs out of memory on long videos. tamserve uses SAM 3 to find objects every few frames and a lightweight tracker (EdgeTAM) to follow them in between, with one copy of each model shared across all your cameras.

On one RTX 4090:

  • Any object you name: 4x faster than SAM 3's tracker, at 92% of its accuracy
  • People: 16 cameras at once, 14x less GPU per frame, and slightly more accurate than SAM 3 (89.6 vs 87.8 HOTA)
  • Memory: flat at 3.5 GB on a 3,000 frame video, where SAM 3 runs out at frame 423

Worth a look if you're building:

  • Warehouse or factory safety (forklifts, pallets, hard hats)
  • Security or retail camera analytics
  • Home or elder care monitoring
  • Robotics, wildlife or lab monitoring
  • Annotation tools for long videos

pip install "tamserve[sam3]"

GitHub · Benchmarks · Colab

Please give me any and all feedback or edit tamserve to meet your needs, and a star helps if you find it useful!

17 Upvotes

7 comments sorted by

1

u/hellobutno 10d ago

I thought the SAM 3 model weights were private and can't be redistributed?

1

u/Chunkymunkey642069 10d ago

They are public but gated. On the facebook/sam3 page on Hugging Face you accept Meta's SAM License and request access, then download them with your own account. The licence does allow redistribution, as long as it is under the same terms with a copy of the licence (section 1b). It also restricts some uses (military, ITAR and so on), so it is not Apache or MIT.

Either way, tamserve does not ship them. The package is Apache-2.0 and has no SAM 3 code or weights in it. `pip install "tamserve[sam3]"` pulls Meta's own `sam3` package from PyPI, and the weights download from Meta's repo to your machine the first time a tracker starts, after you have accepted the licence and run `hf auth login`.

1

u/hellobutno 10d ago

yeah that's a no from me unless you have the weights yourself. so many privacy issues with using public access models. also meta is notorious for rejecting people on the sam3 model.

1

u/Chunkymunkey642069 10d ago

Yeah I mean if you don’t want to use SAM3, you probably can’t use tamserve to track in natural language. You can still use the core tracking without detection. Tamserve is not meant to be an alternate model, just a more efficient way of serving and running SAM3 class models

1

u/Cool-Instruction8699 10d ago

does this track well for crowded scenes?

1

u/Chunkymunkey642069 10d ago

Yes on a busy street, no in a packed crowd.

With about 10 people in view it scores the same as SAM 3's own tracker (78.3 vs 77.7 HOTA) in about a third of the time, with `look_every=1`. It finds more of the people but is worse at ids: 32 swaps against 1 over 400 frames. It tells people apart between frames by mask overlap only, so numbers get swapped when people cross. SAM 3 runs a heavier tracker on every person on every frame: better ids, three times the time.

With about 90 people in view it misses a quarter of the clearly visible ones.

If stable ids in a crowd matter more to you than running live, SAM 3's own tracker is the better pick.

I am looking into vanilla SAM3 support on here because this is not a new model, simply a serving engine.

1

u/MatterTraditional806 10d ago

Ins't it an overkill to do instance segmentation instead of object detection with bboxes?
And using a cutom model instead of the huge, slow and gated SAM 3?
:)