Abstract
Person Re-identification (Re-ID) remains a challenging task when subjects are partially occluded or only fragments of the person are captured. Conventional part-aware models often utilize rigid spatial splitting or static templates, which lack the flexibility to handle diverse poses and occlusions. This paper introduces the Dynamic Part Template Initialization (DPTI) module, which generates body-part templates dynamically based on the specific input image. By focusing on visible regions and adaptively weighting part descriptors, the proposed model achieves state-of-the-art performance on major Re-ID benchmarks, including Market-1501, Occluded-REID, and Partial-REID.
Introduction
The goal of person Re-ID is to identify the same individual across non-overlapping camera views. However, real-world scenarios often involve obstacles that hide parts of the body (occlusions) or camera framing that only captures a portion of the subject (partial Re-ID).
Existing solutions typically fall into two categories: fixed horizontal splitting and static template learning. Fixed splitting assumes a perfectly centered, full-body subject, failing when limbs are missing or the person is off-center. Static templates learn fixed part detectors during training but struggle to generalize when certain parts are consistently occluded or when subjects appear in unusual poses. This work proposes a shift toward dynamic, image-specific templates that can ignore occlusions and prioritize visible features.
Methods
The proposed architecture leverages a ResNet-50 backbone and introduces three core components to enable dynamic part awareness.
Dynamic Part Template Initialization (DPTI)
Rather than using pre-defined templates, the DPTI module extracts "mid-level" features from the middle of the ResNet-50 backbone. These layers provide a balance between semantic information (identifying a "part") and spatial localization. A self-attention mechanism filters out background noise, generating $N$ unique part templates tailored to the specific input image.
Part Attention Module and Adaptive Weighting
These dynamic templates serve as queries in a cross-attention mechanism, scanning high-level features at the end of the network to extract precise part descriptors. To handle missing parts, an Adaptive Part Weighting mechanism calculates a "presence score" for each template. If a part, such as the legs, is occluded, its low activation score leads the model to down-weight that descriptor, preventing it from negatively impacting the final matching process.
Diversity Loss
To prevent the $N$ templates from converging on the same dominant feature (e.g., a bright shirt), a modified diversity loss is employed. This loss function forces the part vectors to be orthogonal, ensuring the model captures a diverse set of independent body regions.
Results and Discussion
The model was evaluated on four major benchmarks: Market-1501 (holistic), Occluded-REID, and Partial-REID/Partial-iLIDS.
Quantitative Performance
- Market-1501: The model achieved 94.9% Rank-1 accuracy and 86.3% mAP, demonstrating its effectiveness even on standard holistic datasets.
- Occluded-REID: In challenging occluded scenarios, the model reached 71.3% Rank-1, outperforming many methods that rely on complex external pose-estimation networks.
- Partial-REID: The system showed high robustness to incomplete data, achieving 81.3% Rank-1.
Qualitative Analysis
Visualizations of the attention maps confirm that the dynamic templates successfully localize distinct body regions, such as the head, torso, and shoes, as well as carried items.
Conclusion
The transition from static to dynamic templates allows Re-ID models to adapt to the "topology" of the person in each specific frame. By initializing templates from mid-level semantic features and enforcing orthogonality, the DPTI module effectively handles occlusions and partial views. Future work will explore learning topological relationships between parts—such as the relative position of the head to the torso—to further enhance robustness in crowded environments.
Summary updated