
TrackFormer (DETR multi-object tracker with track queries)
Detection and tracking3,020 ops41.5M params
DETR-style tracker whose track queries carry identities frame to frame by attention.
Detection and tracking · 3,386 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
TrackFormer is a multi-object tracker that treats tracking as a frame-to-frame set prediction problem and solves it end to end with an encoder-decoder Transformer. Where most trackers first detect objects in each frame and then match the detections, TrackFormer does both at once: association between frames happens through attention as a set of track predictions evolves through the video. The authors call this tracking-by-attention, and it drops the graph optimization and the motion or appearance models that earlier pipelines needed.
The pipeline is the DETR shape: a CNN backbone such as ResNet-50 extracts frame features, a Transformer encoder processes them, a Transformer decoder processes a set of queries, and small MLPs map each decoded query to a box and a class. The decoder works on two kinds of queries: static object queries that can start a new track at any frame, and autoregressive track queries that carry an object forward from the previous frame. Each new detection seeds a track query from its own output embedding, and self-attention over the joint set lets the model find new objects while not re-detecting the ones it already follows. Removed track queries keep being decoded for a few frames, which gives a short-term re-identification without any dedicated re-identification training.
Training runs on pairs of adjacent frames with track augmentations that perturb object location and motion, drop detections and simulate occlusions. Because the attention stack needs a lot of tracking data, the authors also simulate adjacent frames from single CrowdHuman images. On MOT17 private detections this gave a new state of the art in MOTA and IDF1 among methods trained only on CrowdHuman, and a mask prediction head extends it to MOTS20. The repository reports 54.9 sMOTSA and 63.6 IDF1 on the MOTS20 test set.
The two traced members are the MOTS20 model with the mask head, which the authors retrained with the original DETR attention rather than deformable attention, and the box-only MOT17 tracker. The mask head follows DETR: spatial attention maps from the encoded image features and decoder outputs are upscaled and convolved into a mask for every output embedding. The deformable version stacks the feature maps of the previous and current frame and cross-attends over both, with a temporal feature encoding telling the queries which frame is which.
Key idea. TrackFormer introduces autoregressive track queries, decoder queries that embed an object's position and identity and follow it through the video, so detection and data association happen jointly by attention without matching, graph optimization or motion and appearance models.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{meinhardt2022trackformermultiobjecttrackingtransformers,
title={TrackFormer: Multi-Object Tracking with Transformers},
author={Tim Meinhardt and Alexander Kirillov and Laura Leal-Taixe and Christoph Feichtenhofer},
year={2022},
eprint={2101.02702},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2101.02702},
}