Person Re-identification via Attention Pyramid

Guangyi Chen, Tianpei Gu, Jiwen Lu, Jin-An Bao, Jie Zhou
8/11/2021
cs.CVcs.AI
transformer-attention

Official code: CHENGY12/APNet (49 stars, Python, MIT, PyTorch, last commit 2023-09-03).

Abstract

In this paper, we propose an attention pyramid method for person re-identification. Unlike conventional attention-based methods which only learn a global attention map, our attention pyramid exploits the attention regions in a multi-scale manner because human attention varies with different scales.

Show full abstract

Our attention pyramid imitates the process of human visual perception which tends to notice the foreground person over the cluttered background, and further focus on the specific color of the shirt with close observation. Specifically, we describe our attention pyramid by a "split-attend-merge-stack" principle. We first split the features into multiple local parts and learn the corresponding attentions. Then, we merge local attentions and stack these merged attentions with the residual connection as an attention pyramid. The proposed attention pyramid is a lightweight plug-and-play module that can be applied to off-the-shelf models. We implement our attention pyramid method in two different attention mechanisms including channel-wise attention and spatial attention. We evaluate our method on four largescale person re-identification benchmarks including Market-1501, DukeMTMC, CUHK03, and MSMT17. Experimental results demonstrate the superiority of our method, which outperforms the state-of-the-art methods by a large margin with limited computational cost.

View on arXivView PDF

Code Implementations(1)

CHENGY12/APNetOfficial100%
PyTorchMIT

The official Pytorch implementation of APNet: Person Re-identification via Attention Pyramid

4910Python, ShellMar 26, 20213 years agoMIT
attentionbaselineperson-re-identificationpyrimadpytorch+2 more

Similar Papers

Cite this paper

@article{chen2021person,
  title  = {Person Re-identification via Attention Pyramid},
  author = {Guangyi Chen and Tianpei Gu and Jiwen Lu and Jin-An Bao and Jie Zhou},
  year   = {2021},
  eprint = {2108.05340},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.05340}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.05340.svg)](https://codeofpaper.com/paper/2108.05340)

Discussion