This repo is a packaged version of the StrongSort algorithm.
pip install strongsort
from strong_sort import StrongSORT
tracker = StrongSORT(model_weights='model.pth', device='cuda')
pred = model(img)
for i, det in enumerate(pred):
det[i] = tracker[i].update(detection, im0s)
@article{du2022strongsort,
title={Strongsort: Make deepsort great again},
author={Du, Yunhao and Song, Yang and Yang, Bo and Zhao, Yanyun},
journal={arXiv preprint arXiv:2202.13514},
year={2022}
}