TL;DR
This paper introduces D2FP, a novel approach for human parsing that dynamically learns implicit structural priors from images, moving beyond rigid, predefined body models. By generating input-dependent "object queries" that encode these learned priors, D2FP achieves state-of-the-art performance on human parsing benchmarks, particularly in challenging scenarios with occlusions.
What Problem Does This Paper Address?
Human parsing, the task of segmenting an image into distinct human body parts and clothing items, is crucial for many computer vision applications. Existing methods often rely on explicit, predefined structural priors (like graphs or trees) to represent the human body's inherent relationships. While effective to some extent, these fixed priors struggle with the diversity of human poses, clothing, and occlusions, leading to unstable predictions. Crafting these explicit structures also requires significant manual effort. The paper aims to overcome these limitations by developing a method that learns these structural priors dynamically from the input image itself, making it more robust and adaptable.
Methods
D2FP introduces a novel architecture centered around learning and leveraging implicit structural priors. The core components are:
- Prior Extraction Module: This module takes multi-scale pixel embeddings and high-resolution mask features from a backbone network and fuses them. It then generates "learnable regions" and uses spatial attention to create prior features. Crucially, this module doesn't require explicit supervision for these regions, relying instead on the semantic information within the decoded pixel embeddings.
- Prior Embedding Module: This module takes the extracted prior features and combines them with initial object queries (similar to those used in object detection Transformers) and an "enhancement embedding." It uses an iterative attention mechanism (specifically, a slot attention mechanism) to refine these object queries, embedding the learned structural priors into them.
- Prior Enhancement Strategy: A key innovation is how the prior embedding module is enhanced. It uses the decoded object queries from later stages of the Transformer decoder (which are assumed to have learned high-level semantics) to refine the initial prior features. This is done by adding these decoded queries (with gradients detached) to learnable embeddings, providing structural clues to the priors.
- Multi-Scale Dual Transformer Decoder: This decoder jointly optimizes the mask features and the prior object queries. It uses cross-attention to update mask features based on prior queries and masked attention to refine object queries using pixel embeddings. This dual approach allows for complementary updates between structural priors and visual features.
Datasets
The paper evaluates D2FP on two well-established human parsing datasets:
- LIP (Look Into Person): A large dataset with 30,462 training and 10,000 validation images, featuring 19 semantic human parts and 13 clothing items.
- CIHP (Crowd Instance-level Human Parsing): A large-scale dataset with 38,280 images and pixel-level annotations for 20 categories, specifically designed for parsing multiple human instances.
Key Insights and Ideas
- Dynamic Priors are Better: The core insight is that learning structural priors from the image is more effective than relying on fixed, predefined ones. This allows the model to adapt to diverse scenarios and occlusions.
- Object Queries as Structural Encapsulators: The paper leverages the Transformer's object query mechanism not just for object detection, but to encapsulate learned structural priors. These queries become rich representations of body parts and their relationships.
- Leveraging Decoded Information for Enhancement: The prior enhancement strategy is clever: it uses information from later stages of the network (decoded object queries) to improve earlier stages (prior features). This creates a feedback loop that refines the structural understanding.
- Dual Transformer for Complementary Learning: The multi-scale dual Transformer decoder's ability to jointly optimize mask features and object queries allows for a more holistic understanding, where visual features inform structural priors and vice-versa.
Key Results
- State-of-the-Art Performance: D2FP achieves superior performance on both LIP and CIHP datasets, outperforming previous state-of-the-art methods in terms of mIoU (mean Intersection over Union).
- LIP Dataset: Achieved 60.67% mIoU, outperforming methods like CDGNet (60.30%) and SOLIDER (60.50%). It also showed notable gains for small classes like hats and gloves.
- CIHP Dataset: Achieved 65.62% mIoU, slightly outperforming CDGNet (65.56%) and significantly improving upon Graphonomy (58.58%) and SNT (60.87%).
- Qualitative Improvements: The method demonstrates visually superior segmentation masks, especially in challenging cases with occlusions or complex poses, where previous methods struggle.
- Ablation Studies: Confirmed the effectiveness of each component: the prior extraction module, prior embedding module, and the dual Transformer decoder all contribute significantly to the overall performance. The prior enhancement strategy also showed substantial improvements.
Limitations and Future Work
- Computational Cost: The paper acknowledges that D2FP requires a larger number of parameters and has slower inference speeds compared to some existing methods. This is attributed to the complex dual Transformer decoder and prior extraction module needed to learn implicit structures.
- Future Work: While not explicitly detailed, the success of dynamically learning priors suggests future work could explore more efficient architectures for this process, potentially reducing computational overhead while maintaining performance. Further investigation into the interpretability of the learned priors and object queries could also be valuable.
Summary updated