All models

MGN-ResNet50

A ResNet-50 split into one global and two striped part branches for person re-identification.

Detection and tracking · 395 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 (68 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

Family
MGN
Parameters
70.4M
Operations
395
Framework
PyTorch
Recurrent
No
Published
ACM Multimedia 2018
Cited by
1,499 (as of 17 October 2026)
Authors
Guanshuo Wang, Yufeng Yuan, Xiong Chen and others
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 diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1651
Graph hash
c3ad69d078797ccaa7290524274418ca6b3a6b8cbb1a2d366ed2fc4401914a85
Skeleton hash
5b46018ffcfa348ef13417092acb44b319334514b8558b18a955f31f92a2151f
Architecture hash
f0e41ed37628cec6d093087b288815716ba56ec75ba3a466466ce9c0624017af
Diagram SHA-256
7712500cee004001789b3d79cc751e091a5f34e12a2b2edf378cbc1f38cdc456
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

The Multiple Granularity Network, MGN, is a person re-identification model that pairs whole-body features with features from body parts. The authors design it as a multi-branch deep network architecture consisting of one branch for global feature representations and two branches for local feature representations. Rather than locating body parts with predefined semantics, the local branches uniformly partition the images into several stripes, and the number of parts differs between the two local branches so that the local features come at multiple granularities.

The backbone is a ResNet-50, split into three branches after the res_conv4_1 residual block: a Global Branch, a Part-2 Branch and a Part-3 Branch. In the global branch a global max-pooling operation and a 1 × 1 convolution layer reduce the 2048-dim features to 256-dim. The part branches drop the down-sampling in res_conv5_1 to preserve receptive field for local features, and split their feature maps into horizontal stripes. During testing, all the reduced features are concatenated together into the final descriptor. Training uses softmax loss for classification and triplet loss for metric learning, specifically the batch-hard triplet loss.

On Market-1501 in single query mode, MGN reaches Rank-1/mAP=95.7%/86.9% without re-ranking, which the paper reports as 1.9% better in Rank-1 and 5.3% better in mAP than the previous best published result. After re-ranking the result improves to Rank-1/mAP=96.6%/94.2%. Both captured members are built from the same public PyTorch reproduction of the paper, share one configuration with 256-dim reduced features, and emit the concatenated embedding alongside the per-branch features and classification outputs. That reproduction trains on Market1501 and reports a final mAP of 93.83 and rank1 of 95.78.

Key idea. A three-branch ResNet-50 for person re-identification that learns one global descriptor and two sets of uniformly striped part descriptors at different granularities, trained with softmax and triplet losses.

  • mgn
  • multiple granularity network
  • person re-identification
  • re-id
  • reid
  • market-1501
  • dukemtmc-reid
  • cuhk03
  • resnet-50
  • global branch
  • part branch
  • fastreid
  • batch-hard triplet loss

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

Cite the paper

@misc{wang2018learningdiscriminativefeaturesmultiple,
      title={Learning Discriminative Features with Multiple Granularities for Person Re-Identification}, 
      author={Guanshuo Wang and Yufeng Yuan and Xiong Chen and Jiwei Li and Xi Zhou},
      year={2018},
      eprint={1804.01438},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1145/3240508.3240552},
      url={https://arxiv.org/abs/1804.01438}, 
}