End-to-end One-shot Human Parsing

Haoyu He, Jing Zhang, Bohan Zhuang, Jianfei Cai, Dacheng Tao

Abstract

One-Shot Human Parsing (OSHP) is a challenging task that requires a model to segment human body parts and clothing based on a single labeled reference, even for categories unseen during training. We introduce EOP-Net, an end-to-end network designed to overcome the limitations of traditional closed-set models. By employing momentum-updated prototypes and a dual metric learning scheme across coarse and fine-grained spaces, EOP-Net accurately identifies small fashion items and mitigates testing bias. Experimental results on three tailored benchmarks demonstrate significant improvements in accuracy and efficiency over existing state-of-the-art methods.

Introduction

Traditional human parsing models operate in a "closed-set" environment, where they are trained to recognize a static list of categories such as "hat" or "skirt." However, the rapid evolution of the fashion industry introduces new styles and niche items constantly, making frequent re-training impractical.

One-Shot Human Parsing (OSHP) addresses this by providing a "support" image (a reference with a mask) and a "query" image. The model must identify the classes defined in the support image within the query image. This task is significantly more complex than standard one-shot semantic segmentation due to several factors:

  1. Small & Entangled Parts: Items like watches or collars are much smaller and more intertwined than typical objects.
  2. Testing Bias: Models often overfit "base" classes seen during training, failing to generalize to "novel" classes.
  3. High Semantic Similarity: Different items, such as dresses versus skirts, often share similar shapes and spatial positions.
Overview of the One-Shot Human Parsing (OSHP) task and its core challenges.

Methods: The EOP-Net Architecture

The authors propose the End-to-end One-shot human Parsing Network (EOP-Net) to tackle these challenges. The architecture integrates several novel components to enhance feature representation and generalization.

The EOP-Net architecture, highlighting the dual metric spaces and the AGM/NPM modules.

Dual Metric Spaces

EOP-Net concurrently projects features into two distinct spaces: a coarse-grained space to distinguish the human foreground from the background, and a fine-grained space to isolate specific parts. This hierarchical approach allows the model to focus on minute details within the human silhouette.

Momentum-updated Prototypes

Relying on a single support image can be risky if that image is an outlier. To stabilize training, EOP-Net maintains a moving average of class features across training episodes. These momentum-updated prototypes provide more robust "templates" for each category, accounting for high appearance variance in fashion.

Dual Metric Learning (DML) and Weight-Shifting

The model utilizes two primary modules:

  • Attention Guidance Module (AGM): A parameter-heavy module used early in training to learn rich, detailed feature representations.
  • Nearest Prototype Module (NPM): A lightweight module designed for better generalization to unseen classes.

A weight-shifting strategy gradually transitions the network's focus from the AGM to the NPM. This combines the representational power of the former with the transferability of the latter, effectively solving the "testing bias" problem where heavy modules tend to memorize training classes too well.

Datasets and Evaluation

To evaluate OSHP, the authors adapted three popular benchmarks:

  • ATR-OS: Fashion-centric dataset.
  • LIP-OS: Diverse poses and views.
  • CIHP-OS: Complex multi-person scenes.

In these versions, classes are split into "base" sets for training and "novel" sets for testing to rigorously evaluate true one-shot generalization.

Key Results and Insights

EOP-Net significantly outperforms existing state-of-the-art one-shot segmentation models like PANet and SG-One.

  • Generalization Performance: On the ATR-OS dataset, EOP-Net achieved a 32.9% mIoU on novel classes, a massive improvement over the 1.1% achieved by standard metric-learning baselines.
  • Efficiency: EOP-Net reduced computational complexity (MACs) and parameters by approximately 50% compared to previous iterations (POPNet), while increasing inference speed from 7.8 to 12.0 FPS.
  • Stability: The model demonstrated high stability across varying support image appearances, such as different colors or poses.

Conclusion and Future Work

While EOP-Net sets a new standard for OSHP, limitations remain. The model struggles with distant subjects where local semantic detail is sparse. Future research may involve incorporating Vision Transformers or Graph Neural Networks (GNNs) to better model the structural relationships of the human body. Additionally, integrating EOP-Net with large-scale foundation models like SAM (Segment Anything) could further enhance zero-shot capabilities.

Summary updated

BibTeX
@article{he2023end,
  author = {Haoyu He and Jing Zhang and Bohan Zhuang and Jianfei Cai and Dacheng Tao},
  title = {{End-to-end One-shot Human Parsing}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=KEcHjpdrkD},
}
Figure