Show HN: Open-source, real-time object tracking for live video feeds
tamserve is an open-source serving engine that runs Meta's SAM 2 and SAM 3 models across multiple live video streams simultaneously on a single GPU using continuous batching.
read it It provides a deep technical breakdown, benchmarks, and code examples for optimizing real-time multi-camera computer vision models.
summary
tamserve solves the high memory overhead and single-video limitation of Meta's SAM 2 and SAM 3 tracking models by introducing continuous batching for live video feeds. By sharing a single model instance across multiple cameras and bounding memory per object, it dramatically reduces GPU memory usage while maintaining high accuracy. The project includes specialized wrappers like Tracker and PeopleTracker for naming-based detection, multi-GPU routing, and compilation options for maximum throughput. Benchmarks demonstrate significant efficiency gains over stock implementations on hardware like the RTX 4090.
key points
- Applies continuous batching techniques similar to vLLM to vision models, letting multiple live cameras share a single model instance.
- Reduces GPU memory for 8 cameras from 8.6 GB (stock) to 2.2 GB while scaling to higher frame rates and camera counts.
- Pairs SAM 3 with lightweight tracking models like EdgeTAM to enable efficient, real-time text-prompted tracking across multiple feeds.
who should read it
Computer vision engineers and developers building real-time video analytics, security systems, or robotics applications.
discussion warm
Neat project, congrats on open-sourcing it! SAM3 has been instrumental in many physical AI workflows, especially in auto-labelling.
We’re about to launch a new real-time API for SAM3.1, that’s optimized for low latency, if folks are interested.
We’re seeing up to 3.5x speedup (lossless) over the native PyTorch implementation. ~40ms (ours) vs 150ms (eager-mode).
https://vlm.run/gateway/models/facebook-sam3.1
A commenter highlights a competing commercial API approach for SAM 3.1 with alternative latency metrics.
Generated by an LLM from the article and thread. Check the sources before relying on it.