Boosting Semantic Human Matting With Coarse Annotations

Jinlin Liu, Yuan Yao, Wendi Hou, Miaomiao Cui, Xuansong Xie, Changshui Zhang, Xian-Sheng Hua

Introduction

Image matting is a fundamental task in computer vision, aimed at precisely extracting a foreground object—most commonly a human—from its background. Unlike binary semantic segmentation, which classifies pixels as either "inside" or "outside" a mask, matting calculates a per-pixel opacity value known as an alpha matte. This is essential for capturing semi-transparent details like wisps of hair or motion-blurred edges, which are critical for realistic image compositing.

Traditionally, high-quality matting has relied on user-provided trimaps: hand-drawn guides that categorize pixels into definite foreground, definite background, and unknown regions. However, creating trimaps is labor-intensive and limits the scalability of matting applications. While deep learning models have attempted to automate this process, they require vast amounts of perfectly annotated "fine" data, which is prohibitively expensive to produce.

The Three-Stage Pipeline

To address the data scarcity bottleneck, this research introduces a framework that "boosts" performance by leveraging easily obtainable "coarse" annotations alongside a smaller set of high-quality "fine" data. The proposed architecture consists of three specialized neural networks:

  1. Mask Prediction Network (MPN): Trained on both coarse and fine datasets, the MPN estimates a low-resolution semantic mask. By seeing a wide variety of human poses and backgrounds from coarse datasets (like MS COCO), it develops a robust understanding of human semantics.
  2. Quality Unification Network (QUN): This is the core innovation. Because the MPN's output varies in quality depending on the training source, the QUN acts as a "quality equalizer." It rectifies coarse masks to a consistent level of quality, ensuring the final stage receives standardized input.
  3. Matting Refinement Network (MRN): The final stage takes the original image and the unified mask to predict a high-resolution alpha matte. This network is trained exclusively on fine-grained data to ensure it learns to produce the intricate details required for professional-grade matting.
Comparison of matting results. (a) Input image; (b) Trimap; (c) DIM (trimap-based); (d) Proposed method without coarse annotations; (e) Proposed method with coarse annotations; (f) Ground truth. Note how the inclusion of coarse data in (e) significantly improves detail over (d).

Key Insights: The Power of Hybrid Data

The primary breakthrough of this work is the demonstration that a model does not require 100% perfect data to achieve state-of-the-art results. Coarse data helps the model learn "what" a human is (global semantics), while a smaller set of fine data teaches it "how" the edges look (local details). The QUN serves as a vital buffer, preventing the "noise" of coarse annotations from degrading the performance of the high-resolution refinement stage.

Performance and Results

The proposed method achieves results comparable to interactive, trimap-based methods while remaining fully automatic.

  • Quantitative Excellence: On a standard test set, the model achieved a Sum of Absolute Differences (SAD) of 0.0058, significantly outperforming previous automatic methods like SHM (SAD 0.011) and approaching the performance of trimap-dependent models like DIM (SAD 0.0045).
  • Qualitative Fidelity: As seen in the figure above, the model successfully recovers fine hair details that are typically lost in standard segmentation.
  • Efficiency: The pipeline is highly efficient, processing an 800x800 image in approximately 0.08 seconds, making it suitable for real-time applications.

Conclusion

By effectively utilizing coarse annotations to boost semantic understanding, this framework removes the need for manual trimaps without sacrificing the fine-grained detail necessary for high-quality human matting. Future work may involve extending this "coarse-to-fine" boosting strategy to other object categories beyond humans, potentially revolutionizing how we train high-precision vision models with limited specialized data.

Summary updated

BibTeX
@inproceedings{liu2020boosting,
  author = {Jinlin Liu and Yuan Yao and Wendi Hou and Miaomiao Cui and Xuansong Xie and Changshui Zhang and Xian-Sheng Hua},
  title = {{Boosting Semantic Human Matting With Coarse Annotations}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00859},
}
Figure