All models

TrackFormer-MOTS-R50

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

Detection and tracking · 3,386 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,386 operations (32 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
42.8M
Operations
3,386
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
m3142
Graph hash
8bd7863bf0061b44d910c2835e3d37c09fa329b3c7384267481d1049838b1149
Skeleton hash
232b54d82d120ca5a13155d07fb06f51099700407e23add6644162b3cee18f74
Architecture hash
958979f8011f47df9ecdd8712f45a537ae818fb4a76c6ef1f5932b3cbf3c3357
Diagram SHA-256
a3d877f52a99df7b96ce5c38f75c852f8d1fca603cd3e3890e5b675effe24aaf
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}, 
}