trackers icon indicating copy to clipboard operation
trackers copied to clipboard

Adding Rust implementation of ByteTrack

Open roman-koshchei opened this issue 6 months ago • 5 comments

We have implemented ByteTrack in Rust based on trackers code: trackers-rs.

It has proper testing against Python implementation to be correctly implemented (check the README in linked repository).

I would like to use Rust for applications where trackers would be used and believe others would also like to do so. So it might be beneficial to merge into an official repository and we need advice where to put it in there.

To steer your interest further here are benchmark results we got with around 50x improvement on my laptop:

Performance comparison:
  Python avg: 0.2388 ms
  Rust avg: 0.0046 ms
  Rust is 51.80x faster than Python

roman-koshchei avatar May 06 '26 05:05 roman-koshchei

Curious what the bottleneck is in a real-world scenario, since trackers are that crazy fast, the Detection supply?

Borda avatar May 11 '26 09:05 Borda

@Borda it's more of "I would like to be able to use it in Rust for production" rather than removing bottleneck. The improvement is just a side effect of compiled language

roman-koshchei avatar May 12 '26 09:05 roman-koshchei

@roman-koshchei, so your complete pipeline end-to-end is already in Rust?

Borda avatar May 12 '26 11:05 Borda

Yes, I have ported some other stuff to run inference in Rust for my model too

roman-koshchei avatar May 12 '26 11:05 roman-koshchei

This issue has not had activity in 28 days. If this is still relevant, please add context or a minimal reproducible example. Inactive issues are deprioritized over time.

github-actions[bot] avatar Jun 10 '26 00:06 github-actions[bot]