All models

TrackFormer (DETR multi-object tracker with track queries)

DETR-style tracker whose track queries carry identities frame to frame by attention.

Detection and tracking · 3,020 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 3,020 operations (31 KB) and is drawn when you ask.

Open in a new tab

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.

At a glance

Parameters
41.5M
Operations
3,020
Framework
PyTorch
Recurrent
No
Published
CVPR 2022
Cited by
1,066 (as of 16 October 2026)
Authors
Tim Meinhardt, Alexander Kirillov, Laura Leal-Taixe, Christoph Feichtenhofer
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3140
Graph hash
a2b0ff48c0be5f66432c678226e712fbdf762688efcff0d424062481032dd581
Skeleton hash
260a5275f45278d309fbb5285362ebea6324561a1adf28410cea7afe0465c8a4
Architecture hash
46cfaf90a8a548b972dbeba6df6e6da6aebe966a2b3ab4a6d6996fb06683b365
Diagram SHA-256
7acccdd8801cbf28cd6d0324b5443148f11a62a9930216ac5b063ad00cd23582
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • TrackFormer
  • TrackFormer-MOTS
  • multi-object tracking
  • MOT
  • MOTS20
  • MOT17
  • tracking-by-attention
  • track queries
  • DETR tracker
  • pedestrian tracking

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}