Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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. 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

Chenyang Gao, Guanyu Cai, Xinyang Jiang, Feng Zheng, Jun Zhang, Yifei Gong, Pai Peng, Xiaowei Guo, Xing Sun• 2021

Related benchmarks

TaskDatasetResultRank
Text-to-image Person Re-identificationCUHK-PEDES (test)
Rank-1 Accuracy (R-1)59.94
150
Text-based Person SearchCUHK-PEDES (test)
Rank-161.5
142
Text-to-Image RetrievalCUHK-PEDES (test)
Recall@159.94
96
Text-based Person SearchCUHK-PEDES
Recall@161.5
61
Person SearchCUHK-PEDES (test)
Recall@161.5
47
Text-to-image Person Re-identificationCUHK-PEDES
Rank-159.94
34
Text to ImageCUHK-PEDES
Rank-159.36
28
Image-to-Text RetrievalCUHK-PEDES (test)
Rank-172.67
24
Cross-modal Person Re-identificationCUHK-PEDES (test)
Rank@161.5
24
Text-based Person RetrievalUFine3C (evaluation)
R@143.69
18
Showing 10 of 12 rows

Other info

Code

Follow for update