All models

TransReID-ViT-B

A ViT re-identification model that shuffles patches into jigsaw groups and embeds camera ids.

Detection and tracking · 478 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

Loading diagram (33 KB)

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
103.6M
Operations
478
Framework
PyTorch
Recurrent
No
Published
ICCV (arXiv 2021)
Cited by
1,231 (as of 19 October 2026)
Authors
Shuting He, Hao Luo, Pichao Wang and others
License
MIT
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
m3181
Graph hash
19eb62419571150a72a4c381371835fb8c9408c492f8217e1c3836286b9da1a3
Skeleton hash
fa56ea82eed958989aee2efbf9508680129d9ae45df0c4f13da294f62b414bd8
Architecture hash
31943c57a3d2cd4d1309505d94f7f51d9bd83669c764a907c21d18c708dcbc4e
Diagram SHA-256
cb9252b578f956b320f4dcce714c7a77369b3d2ff92c9b6aea4ca049d52c6f63
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

TransReID is a pure transformer framework for object re-identification, the task of associating a particular object across different scenes and camera views, as in person ReID and vehicle ReID. The argument against convolutional networks is that they only process one local neighborhood at a time and lose detail through convolution and downsampling operators such as pooling and strided convolution. The image is encoded as a sequence of patches, and a transformer-based strong baseline with a few critical improvements already achieves competitive results on several ReID benchmarks with CNN-based methods. One of those improvements is overlapping patches: a sliding window generates patches with overlapping pixels instead of a non-overlapping split. To the best of the authors' knowledge, this is the first work to adopt a pure transformer for ReID research.

The jigsaw patch module (JPM) rearranges the patch embeddings via shift and patch shuffle operations, producing robust features with improved discrimination ability and more diversified coverage. It lives in the last layer, which holds two independent transformer layers: a standard one that encodes the global feature, and one with the JPM that shuffles all patches and regroups them into several groups. At inference the global feature and the local features are concatenated as the final feature representation, which is why the captured members emit one wide embedding per image. The side information embeddings (SIE) mitigate feature bias towards camera and view variations by plugging in learnable embeddings for these non-visual clues.

The authors' configs separate a baseline plus JPM run from the full TransReID, which is baseline plus SIE plus JPM, and the two captured members follow that split. For person datasets at 256x128, the authors note that TransReID with stride occupies 12GB of GPU memory and TransReID occupies 7GB.

Key idea. A pure transformer-based object ReID framework named TransReID, adding a jigsaw patch module and side information embeddings to a transformer strong baseline.

  • TransReID
  • TransReID: Transformer-based Object Re-Identification
  • person re-identification
  • vehicle re-identification
  • ReID
  • ViT
  • JPM
  • SIE
  • Market-1501

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

Cite the paper

@misc{he2021transreidtransformerbasedobjectreidentification,
      title={TransReID: Transformer-based Object Re-Identification}, 
      author={Shuting He and Hao Luo and Pichao Wang and Fan Wang and Hao Li and Wei Jiang},
      year={2021},
      eprint={2102.04378},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2102.04378}, 
}