
TransReID-DeiT-S
Detection and tracking478 ops27M params
A ViT re-identification model that shuffles patches into jigsaw groups and embeds camera ids.
Detection and tracking · 475 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
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}