All models

AlignedReID-ResNet50

A ResNet-50 ReID model that learns a global feature alongside shortest-path-aligned horizontal stripe features.

Detection and tracking · 180 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 (23 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
23.8M
Operations
180
Framework
PyTorch
Recurrent
No
Published
2017
Cited by
594 (as of 29 November 2026)
Authors
Xuan Zhang, Hao Luo, Xing Fan and others
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
m90
Graph hash
e44ccda761fbd7ab39d5141518f655b9e2d1f5266793da5abc116ccb48dd28a5
Skeleton hash
dc380d35a209bffe2e14bb68175ff067a7a0b71ddbc86f8ed31237826b481c0e
Architecture hash
cc8b5b1b900a7f77c4bf7bd74f1d4fef9cd948faa44df326bfe637be748ed4fc
Diagram SHA-256
65d37b302849c394e8cfcb85eff6de3b3b78b21359aa378d77ecf65b83d12998
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

AlignedReID is a person re-identification network that extracts a global feature jointly learned with local features, where the local branch aligns body parts by calculating the shortest path between two sets of local features, without extra supervision. After the joint learning, only the global feature is kept to compute similarities between images. The captured member comes from a third-party project that implements the paper using pytorch, with ResNet-50 as the model. Each person image is represented by a global feature and H local features, one per horizontal stripe.

A CNN such as Resnet50 extracts a feature map; global pooling gives the global feature, while horizontal pooling followed by a 1 × 1 convolution gives one local feature per row. The local distance between two images dynamically matches the parts from top to bottom to find the alignment with the minimum total distance. Non-corresponding alignments on that path have large distances but near-zero gradients, so the local distance is mostly determined by the corresponding alignments. Training uses the TriHard loss as the metric learning loss, with hard samples mined by global distance. A mutual learning scheme trains two networks together, adding a new mutual learning loss for metric learning alongside the classification KL loss. Only the global feature is used at inference because, unexpectedly, the global feature alone was almost as good as the combined features.

With re-ranking, AlignedReID reaches 94.4% rank-1 accuracy on Market1501 and 97.8% on CUHK03. Against a baseline without the local branch, the aligned local branch boosts rank-1 by 3.1% to 7.9% and mAP by 3.6% to 10.1% on all datasets. A local branch without alignment, by contrast, often gets worse accuracy than the baseline. The paper also measured ten professional annotators and claims the first report in which machine performance exceeds human performance on the ReID task. Margins of 0.5 are used for both global and local TriHard distances, with mini-batches of 160 images, 4 per identity. The re-production repository reports only partial success: adding the local distance improves roughly 1 point. Adding identification loss to triplet loss only decreased performance there. Training it on Market1501 for 300 epochs takes about 2.25 hours.

Key idea. Jointly learning a global ReID feature with shortest-path-aligned local stripe features, so that the global feature alone, kept at inference, absorbs the benefit of part alignment.

  • alignedreid
  • aligned reid
  • person re-identification
  • person reid
  • re-id
  • market1501
  • cuhk03
  • shortest path local distance
  • trihard
  • mutual learning
  • megvii

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

Cite the paper

@misc{zhang2018alignedreidsurpassinghumanlevelperformance,
      title={AlignedReID: Surpassing Human-Level Performance in Person Re-Identification}, 
      author={Xuan Zhang and Hao Luo and Xing Fan and Weilai Xiang and Yixiao Sun and Qiqi Xiao and Wei Jiang and Chi Zhang and Jian Sun},
      year={2018},
      eprint={1711.08184},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1711.08184}, 
}