Contextual Non-Local Alignment over Full-Scale Representation for Text-Based Person Search

Chenyang Gao, Guanyu Cai, Xinyang Jiang, Feng Zheng, Jun Zhang +4 more
1/8/2021
138 citations
cs.CV

Official code: TencentYoutuResearch/PersonReID-NAFS (63 stars, Python, PyTorch, last commit 2021-04-16).

Abstract

Text-based person search aims at retrieving target person in an image gallery using a descriptive sentence of that person. It is very challenging since modal gap makes effectively extracting discriminative features more difficult.

Show full abstract

Moreover, the inter-class variance of both pedestrian images and descriptions is small. So comprehensive information is needed to align visual and textual clues across all scales. Most existing methods merely consider the local alignment between images and texts within a single scale (e.g. only global scale or only partial scale) then simply construct alignment at each scale separately. To address this problem, we propose a method that is able to adaptively align image and textual features across all scales, called NAFS (i.e.Non-local Alignment over Full-Scale representations). Firstly, a novel staircase network structure is proposed to extract full-scale image features with better locality. Secondly, a BERT with locality-constrained attention is proposed to obtain representations of descriptions at different scales. Then, instead of separately aligning features at each scale, a novel contextual non-local attention mechanism is applied to simultaneously discover latent alignments across all scales. The experimental results show that our method outperforms the state-of-the-art methods by 5.53% in terms of top-1 and 5.35% in terms of top-5 on text-based person search dataset. The code is available at https://github.com/TencentYoutuResearch/PersonReID-NAFS

View on arXivView PDF

Code Implementations(1)

PyTorch

Code for "Contextual Non-Local Alignment over Full-Scale Representation for Text-Based Person Search"

6310Python, ShellJan 7, 20215 years agoNOASSERTION
cuhk-pedes-datasetpytorch

Similar Papers

Cite this paper

@article{gao2021contextual,
  title  = {Contextual Non-Local Alignment over Full-Scale Representation for Text-Based Person Search},
  author = {Chenyang Gao and Guanyu Cai and Xinyang Jiang and Feng Zheng and Jun Zhang and Yifei Gong and Pai Peng and Xiaowei Guo and Xing Sun},
  year   = {2021},
  eprint = {2101.03036},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.03036}
}

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/2101.03036.svg)](https://codeofpaper.com/paper/2101.03036)

Discussion