Projects / active
Proteus
A native C++ runtime for Meta's SAM 3.1, the measurement work that came with it, and an unfinished video editor around both.
- Status
- active
- Languages
- C++, Swift, CUDA
Proteus started at the end of July as an AI video editor where an edit sticks to a tracked object instead of a patch of pixels. To do that without Python in the hot path, I took an open-source C++ port of Meta's SAM 3.1 tracker and extended it. That runtime turned out to be the part worth talking about.
Most of the effort went into getting its numbers to match Meta's. Then I claimed it was 1.29× faster than Meta's PyTorch. It wasn't: the two sides had been doing different amounts of work, and with the work matched it came out 1.24× slower. The project's ledger now says "Latency vs Meta: we lose."
Measuring it on rented machines that were never idle is where most of what I know about benchmarking came from, including a quiet gate that preferred slow runs and a 7 ms result I could trust on a GPU that never once passed its idle check.
The editor is broad and shallow. Tracking and export work, matte refinement is experimental, and replacing objects doesn't work yet. Since late September it's been turning toward visualising properties for real estate rather than general video. Nothing is released.
- With the work matched: 111.16 ms a frame for the port against 89.64 ms for Meta's reference.
- On a rented RTX 5090, vectorising the float16 conversions took 7.27 ms off a frame, with bit-identical output.