
TransTrack: Multiple Object Tracking with Transformer
| Dataset | MOTA% | IDF1% | MOTP% | MT% | ML% | FP | FN | IDS |
|---|---|---|---|---|---|---|---|---|
| MOT17 | 74.5 | 63.9 | 80.6 | 46.8 | 11.3 | 28323 | 112137 | 3663 |
| MOT20 | 64.5 | 59.2 | 80.0 | 49.1 | 13.6 | 28566 | 151377 | 3565 |
| Training data | Training time | MOTA% | FP% | FN% | IDs% | download |
|---|---|---|---|---|---|---|
| crowdhuman, mot17_half | ~45h + 1h | 67.1 | 3.1 | 29.4 | 0.5 | 671mot17_crowdhuman_mot17.pth |
| crowdhuman | ~45h | 56.0 | 11.2 | 32.3 | 0.4 | 560mot17_crowdhuman.pth |
| mot17_half | 9h | 61.9 | 3.4 | 34.0 | 0.7 | 619mot17_mot17.pth |
Models are also available in Baidu Drive by code m4iv.

The codebases are built on top of Deformable DETR and CenterTrack.
git clone https://github.com/PeizeSun/TransTrack.git
cd TransTrack
cd models/ops
python setup.py build install
cd ../..
pip install -r requirements.txt
mkdir crowdhuman
cp -r /path_to_crowdhuman_dataset/CrowdHuman_train crowdhuman/CrowdHuman_train
cp -r /path_to_crowdhuman_dataset/CrowdHuman_val crowdhuman/CrowdHuman_val
mkdir mot
cp -r /path_to_mot_dataset/train mot/train
cp -r /path_to_mot_dataset/test mot/test
CrowdHuman dataset is available in CrowdHuman.
python3 track_tools/convert_crowdhuman_to_coco.py
MOT dataset is available in MOT.
python3 track_tools/convert_mot_to_coco.py
sh track_exps/crowdhuman_train.sh
python3 track_tools/crowdhuman_model_to_mot.py
The pre-trained model is available crowdhuman_final.pth.
sh track_exps/crowdhuman_mot_trainhalf.sh
sh track_exps/mot_val.sh
sh track_exps/mota.sh
python3 track_tools/txt2video.py
| Pre-training data | Fine-tuning data | Training time | MOTA% | FP | FN | IDs |
|---|---|---|---|---|---|---|
| crowdhuman | mot17 | ~40h + 2h | 68.4 | 22137 | 152064 | 3942 |
| crowdhuman | crowdhuman + mot17 | ~40h + 6h | 74.5 | 28323 | 112137 | 3663 |
sh track_exps/crowdhuman_mot_train.sh
or
mkdir -p mix/annotations
cp mot/annotations/val_half.json mix/annotations/val_half.json
cp mot/annotations/test.json mix/annotations/test.json
cd mix
ln -s ../mot/train mot_train
ln -s ../crowdhuman/CrowdHuman_train crowdhuman_train
cd ..
python3 track_tools/mix_data.py
sh track_exps/crowdhuman_plus_mot_train.sh
TransTrack is released under MIT License.
If you use TransTrack in your research or wish to refer to the baseline results published here, please use the following BibTeX entries:
@article{transtrack,
title = {TransTrack: Multiple-Object Tracking with Transformer},
author = {Peize Sun and Jinkun Cao and Yi Jiang and Rufeng Zhang and Enze Xie and Zehuan Yuan and Changhu Wang and Ping Luo},
journal = {arXiv preprint arXiv: 2012.15460},
year = {2020}
}
$ claude mcp add TransTrack \
-- python -m otcore.mcp_server <graph>