RGA-SC
A ResNet-50 re-identification network with spatial and channel relation-aware global attention modules.
Detection and tracking · 427 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
- 31.4M
- Operations
- 427
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2020
- Cited by
- 701 (as of 28 October 2026)
- Authors
- Zhizheng Zhang, Cuiling Lan, Wenjun Zeng 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 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
- m19638
- Graph hash
- fc7864554e03710736bd2939434fab71475d4fdfe3f8749f07eb6225198a46e5
- Skeleton hash
- 490dc4d01f9b9281e2b9f40273caf5c5f73a442de164a859e9104eb154432f3e
- Architecture hash
- 813ab7df931d6b40510793d0cb34733e7ff99f9d804c3444e62c73f859d94546
- Diagram SHA-256
- 40adcbd65015c6393c7cb531305618c0f7f6895e0cc2d9acdf8a409f4410d81d
- 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
RGA-SC is a person re-identification (re-id) network built around the Relation-Aware Global Attention (RGA) module, which captures global structural information to learn attention. The paper observes that previous approaches typically learn attention using local convolutions and so ignore knowledge from global structure patterns. For each feature position, RGA stacks the relations, meaning its pairwise correlations or affinities with all the feature positions, together with the feature itself, and a shallow convolutional model learns the attention from that stack. The stated intuition is that affinities among positions provide clustering-like information that helps infer semantics, especially for person images, where the feasible human poses are constrained.
The module has a spatial form, RGA-S, and a channel form, RGA-C, and the repository builds on a pre-trained ResNet-50. Its example trains on CUHK03 with the new split protocol (767/700). The authors note that their re-id implementation is targeted at finding lost children and at customer density analysis in retail stores.
Key idea. The paper proposes an attention module that stacks each feature position's pairwise relations with all positions and the feature itself, then learns attention with a shallow convolutional model.
- RGA-SC
- RGA
- Relation-Aware Global Attention
- RGA-S
- RGA-C
- person re-identification
- re-id
- global attention
- attention module
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2020relationawareglobalattentionperson,
title={Relation-Aware Global Attention for Person Re-identification},
author={Zhizheng Zhang and Cuiling Lan and Wenjun Zeng and Xin Jin and Zhibo Chen},
year={2020},
eprint={1904.02998},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1904.02998},
}