FastReID-BoT-R101-IBN
ResNet50 person re-identification baseline whose six training tricks include the BNNeck normalization layer.
Detection and tracking · 560 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.
At a glance
- Parameters
- 44M
- Operations
- 560
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2019 Workshops
- Cited by
- 1,577 (as of 16 October 2026)
- Authors
- Hao Luo, Youzhi Gu, Xingyu Liao and others
- Source
- GitHub: JDAI-CV/fast-reid
- 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 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.
Details
- Stable ID
- m988
- Graph hash
- c4a42b5867a84c3dde31ab231380b9901d2f30005dfaadec897425d74ed72a99
- Skeleton hash
- dabddbb347806608b981c38b444e3a1897d590eab714934441353125b53b5a10
- Architecture hash
- fc54a41218e90718b2b58ffc1d7b1b50ee8749848a3a708ae9e45ea787abbb17
- Diagram SHA-256
- c50690a7030db999bff4cae73c8e302c737034495e63f5a4a5b0d6bfcb6ee197
- 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
The FastReID copy is the ResNet101-ibn configuration. FastReID adds instance batch normalization (IBN) modules to its backbones to learn more robust features, and this copy returns the pooled feature rather than class scores.
Bag of Tricks (BoT) is a simple and efficient baseline for person re-identification (ReID), and it is the model many later ReID papers measure themselves against. The authors surveyed many works published at top conferences and found most were built on poor baselines. Rather than a new architecture, the paper collects training tricks that had appeared only briefly in papers or source code and evaluates them for person ReID. Combined, they reach 94.5% rank-1 and 85.9% mAP on Market1501 using global features only.
The standard baseline is an ImageNet-pretrained ResNet50 whose fully connected layer is resized to the number of identities in the training set. After many experiments the authors settled on six tricks, some designed or modified by themselves. Most of them leave the model architecture untouched. Two do change the graph: setting the last stride of the backbone from 2 to 1 doubles the final feature map to 16 × 8, at a light extra cost and with no extra parameters. The other is BNNeck, which only adds a batch normalization layer after the features and before the classifier. It exists because the ID loss and the triplet loss pull a shared feature toward inconsistent targets in the embedding space. With BNNeck the feature before the BN layer feeds the triplet loss and the normalized feature after it feeds the ID loss. The classifier also loses its bias so that its hyperplanes pass through the origin. At inference the normalized feature is the one used for matching, and cosine distance beats Euclidean distance on it.
One traced copy comes from FastReID, the JD AI Research toolbox that is a ground-up rewrite of the earlier strong-baseline code. FastReID's own paper still calls BOT the bag of tricks method, a strong baseline in the ReID task.
Key idea. BNNeck: a single batch normalization layer between the backbone feature and the identity classifier, so the triplet loss trains the raw feature while the ID loss trains the normalized one and both converge together.
- bag of tricks
- bot
- bnneck
- strong baseline
- person re-identification
- reid
- fastreid
- market1501
- resnet50
- reid strong baseline
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{luo2019bagtricksstrongbaseline,
title={Bag of Tricks and A Strong Baseline for Deep Person Re-identification},
author={Hao Luo and Youzhi Gu and Xingyu Liao and Shenqi Lai and Wei Jiang},
year={2019},
eprint={1903.07071},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1903.07071},
}