Pedestrian Attribute Recognition (PARformer)
Transformer-based multi-task network that predicts pedestrian attributes from an image.
Image classification · 1,220 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
- Task
- Image classification
- Parameters
- 89.3M
- Operations
- 1,220
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Transactions on Circuits and Systems for Video Technology (arXiv 2023)
- Cited by
- 48 (as of 30 October 2026)
- Authors
- Xinwen Fan, Yukang Zhang, Yang Lu, Hanzi Wang
- Source
- GitHub: xwf199/PARFormer
- 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
- m19286
- Graph hash
- 31f970a021e990c4a9f02899f2454b35a9bc0de2b5ac7efdeb61075f9b447aa8
- Skeleton hash
- 30bb5d41186b42a5b74d061795602c9da96c68a0294b9cc278b792216bc25226
- Architecture hash
- a469b9d18288634bf7caba4ba6150a69ea64acea9b3691784cfd26b8df7c4cd8
- Diagram SHA-256
- 2de7d45ea7f6424fb1af58172a068677a5037c67de56386a58a3fc347df39a8a
- 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
PARFormer is a pure transformer-based multi-task network for pedestrian attribute recognition (PAR), a task applied in video surveillance and pedestrian analysis. The paper argues that existing methods mainly use a convolutional neural network (CNN) as the backbone, and that these methods mainly focus on small discriminative regions while ignoring the global perspective. PARFormer is organized as four modules: feature extraction, feature processing, viewpoint perception and attribute recognition.
The feature extraction module is a transformer-based baseline. In feature processing, the paper proposes a data augmentation strategy named batch random mask (BRM) block, meant to reinforce the attentive feature learning of random patches, and a multi-attribute center loss (MACL) to enhance inter-attribute discriminability in the feature representations. The viewpoint perception module adds a multi-view contrastive loss (MCVL) so that the network can exploit viewpoint information. The attribute recognition module addresses the negative-positive imbalance problem when generating the attribute predictions. The paper reports experiments on the public datasets PETA, RAP and PA100K.
Key idea. PARFormer is a pure transformer-based multi-task network for pedestrian attribute recognition that adds a batch random mask block, a multi-attribute center loss and a multi-view contrastive loss.
- PARFormer
- pedestrian attribute recognition
- PAR
- multi-task network
- batch random mask
- multi-attribute center loss
- multi-view contrastive loss
- video surveillance
- pedestrian analysis
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{fan2023parformertransformerbasedmultitasknetwork,
title={PARFormer: Transformer-based Multi-Task Network for Pedestrian Attribute Recognition},
author={Xinwen Fan and Yukang Zhang and Yang Lu and Hanzi Wang},
year={2023},
eprint={2304.07230},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2304.07230},
}