All models

TransReID-ViT-B-JPM

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

Detection and tracking · 475 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 (32 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
475
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
m3182
Graph hash
cc2da88fec7148cb78329abc1b6993d39fbe6f92c2f701e9c8458adbc8a6aea5
Skeleton hash
172138524217b7171c88b886e9e44d93ac88bc5297af5085615ec65c60eb302b
Architecture hash
c80482461ff95d7e3cabaff8504ec14f2f0f7e28431b9c0e43b82ceb841a7f85
Diagram SHA-256
a75c0b3d69affb369ffe93bdbc65e7999d92eb6d9e8e5f6369ce18d90af7503c
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}, 
}