Abstract
Fashion landmark detection is a critical task in apparel analysis, complicated by the non-rigid nature of clothing and significant visual ambiguities. This paper introduces the Spatial-Aware Non-Local (SANL) block, a novel attention mechanism that integrates global context with spatial priors. By utilizing Grad-CAM to generate attention maps that highlight clothing regions, the SANL block directs the model's focus away from background noise. Evaluated on large-scale benchmarks like DeepFashion-C and FLD, the proposed architecture achieves state-of-the-art results, demonstrating the effectiveness of spatially-guided global attention.
Introduction
Identifying functional key points on garments—such as sleeve corners, waistlines, and hems—is inherently more difficult than human pose estimation. Clothing is highly deformable, and local features (e.g., a left vs. right sleeve patch) often appear identical without broader context. While standard Non-Local (NL) blocks capture global dependencies, they lack spatial discrimination, treating every pixel with equal importance regardless of whether it belongs to the garment or the background.
Methodology: The SANL Framework
The core contribution of this work is the Spatial-Aware Non-Local (SANL) block. Unlike vanilla NL operations, the SANL block incorporates a spatial attention map ($M$) into its similarity calculations. This ensures that the global search for dependencies is prioritized within regions identified as "clothing."
Grad-CAM for Spatial Priors
To generate these spatial maps without additional manual labeling, the researchers employ Grad-CAM (Gradient-weighted Class Activation Mapping). A classification network is pre-trained on clothing categories; its internal activation maps serve as the spatial prior, informing the SANL block where the garment is located. This creates a "semantic shortcut" that passes high-level information directly into lower layers of the network.
Coarse-to-Fine Architecture
The model utilizes a Feature Pyramid Network (FPN) backbone in a two-stage approach:
- CoarseNet: Generates initial, rough heatmaps with a large Gaussian radius.
- FineNet: Refines these heatmaps into precise landmark coordinates by learning the residual differences between the coarse and fine representations.
Key Results and Evaluation
The SANL-based model was tested on the DeepFashion-C and Fashion Landmark Dataset (FLD) benchmarks. Performance is measured by Normalized Error (NE), where lower values indicate higher precision.
- DeepFashion-C: The model achieved an NE of 0.0299, a significant improvement over previous state-of-the-art methods like AFGN (0.0484).
- FLD: The model reached an NE of 0.0396, surpassing the previous best of 0.0583.
Ablation studies confirmed that while standard NL blocks improve performance, the addition of spatial awareness via SANL provides a much larger boost (an additional 0.0021 reduction in NE compared to standard NL). This highlights that "where" to look is as important as "what" to look at globally.
Conclusion
The Spatial-Aware Non-Local attention mechanism successfully bridges the gap between global context and spatial relevance in fashion landmark detection. By filtering global attention through semantic shortcuts, the model achieves superior accuracy. Future work may explore applying the SANL block to other domains requiring spatial priors, such as medical imaging or complex object detection.
Summary updated