Pedestrian Attribute Recognition via CLIP based Prompt Vision-Language Fusion

Xiao Wang, Jiandong Jin, Chenglong Li, Jin Tang, Cheng Zhang +1 more
12/17/2023
51 citations
cs.CVcs.AI
transformer-attention

Official code: Event-AHU/OpenPAR (220 stars, Python, MIT, last commit 2026-04-11). Most starred: wangxiao5791509/Pedestrian-Attribute-Recognition-Paper-List, a community implementation (765 stars, last commit 2026-02-11, 3.5× the official stars). 1 more implementation below.

Abstract

Existing pedestrian attribute recognition (PAR) algorithms adopt pre-trained CNN (e.g., ResNet) as their backbone network for visual feature learning, which might obtain sub-optimal results due to the insufficient employment of the relations between pedestrian images and attribute labels. In this paper, we formulate PAR as a vision-language fusion problem and fully exploit the relations between pedestrian images and attribute labels.

Show full abstract

Specifically, the attribute phrases are first expanded into sentences, and then the pre-trained vision-language model CLIP is adopted as our backbone for feature embedding of visual images and attribute descriptions. The contrastive learning objective connects the vision and language modalities well in the CLIP-based feature space, and the Transformer layers used in CLIP can capture the long-range relations between pixels. Then, a multi-modal Transformer is adopted to fuse the dual features effectively and feed-forward network is used to predict attributes. To optimize our network efficiently, we propose the region-aware prompt tuning technique to adjust very few parameters (i.e., only the prompt vectors and classification heads) and fix both the pre-trained VL model and multi-modal Transformer. Our proposed PAR algorithm only adjusts 0.75% learnable parameters compared with the fine-tuning strategy. It also achieves new state-of-the-art performance on both standard and zero-shot settings for PAR, including RAPv1, RAPv2, WIDER, PA100K, and PETA-ZS, RAP-ZS datasets. The source code and pre-trained models will be released on https://github.com/Event-AHU/OpenPAR.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
Event-AHU/OpenPAROfficial220PythonMIT2026-04-11
wangxiao5791509/Pedestrian-Attribute-Recognition-Paper-ListCommunity765––2026-02-11
Event-AHU/OpenPAROfficial100%
MIT

[OpenPAR] An open-source framework for Pedestrian Attribute Recognition, based on PyTorch

22040Python, CudaJun 21, 20237 months agoMIT
benchmark-datasetsmambamsp60k-datasetpedestrian-attribute-recognition

[Survey@Pattern Recognition] Paper list on Pedestrian Attribute Recognition (PAR) and related tasks (Pattern Recognition 2021)

765108Dec 22, 20189 months ago
attributehuman-attributespedestrian-attribute-recognitionperson-searach

Similar Papers

Cite this paper

@article{wang2023pedestrian,
  title  = {Pedestrian Attribute Recognition via CLIP based Prompt Vision-Language Fusion},
  author = {Xiao Wang and Jiandong Jin and Chenglong Li and Jin Tang and Cheng Zhang and Wei Wang},
  year   = {2023},
  eprint = {2312.10692},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.10692v2}
}

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

Discussion