r/deeplearning • • 16d ago

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!

3 Upvotes

7 comments sorted by

2

u/See_it_do_it_done 16d ago

detecting every few frames and tracking in between is the right split. the missing 8% probably lives in those gaps. what's the interval?

1

u/Chunkymunkey642069 16d ago

So the accuracy is configurable and depends on how often you detect on a frame. We have seen close to 97% of SAM3 on object detection when detecting every 3rd frame, but then capacity to hold more camera streams in parallel reduces.

For identifying and tracking people, we have even managed to surpass SAM3's accuracy at a fraction of the memory usage and 4x speed!

1

u/See_it_do_it_done 16d ago

every 3rd frame at 97% makes the interval your whole budget knob. guess here, but a quiet camera could detect only when tracker confidence dips and buy back streams. is it fixed per stream?

1

u/Chunkymunkey642069 15d ago

Sorry not sure I understood the question

1

u/See_it_do_it_done 15d ago

my bad, clunky wording. does every camera detect on every 3rd frame, or can each set its own interval?

1

u/Chunkymunkey642069 15d ago

Ah I see, currently one number X makes every camera for a tracker look every Xth frame. There is no per-camera value today. If it is something you believe is useful for a specific purpose, I can add the setting, not a large change.

2

u/See_it_do_it_done 15d ago

I'd add it. guess here, but a quiet camera could stretch its interval and free budget for busy ones.