Boundary-sensitive Network for Portrait Segmentation

Xianzhi Du, Xiaolong Wang, Dawei Li, Jingwen Zhu, Serafettin Tasci, Cameron Upright, Stephen Walsh, Larry S. DavisFG 2019

TL;DR

This paper introduces a novel "Boundary-sensitive Network" (BSN) for portrait segmentation, which significantly improves accuracy at object boundaries. By incorporating specialized kernels and a multi-task learning approach with an attribute classifier, BSN achieves state-of-the-art performance on challenging portrait segmentation tasks.

What Problem Does This Paper Address?

Semantic segmentation, the task of classifying each pixel in an image into a category, is a well-studied problem. However, portrait segmentation, a specific instance focused on separating people from their backgrounds, demands much higher precision, especially around intricate boundaries like hair and clothing. Existing general semantic segmentation methods struggle with this because convolutional filters tend to blend information from neighboring pixels, leading to fuzzy or inaccurate boundary predictions. This is particularly problematic for applications like background replacement, where precise edges are crucial for realistic results.

Methods

The core of the proposed solution is the Boundary-sensitive Network (BSN), built upon the DeepLabv2 architecture. BSN introduces three key innovations:

  • Individual Boundary-sensitive Kernel: This technique treats boundary pixels as a distinct third class. Instead of hard labels, it uses "soft labels" – floating-point vectors that represent the probability of a pixel belonging to the foreground, background, or boundary. This is achieved by dilating the contour line and assigning a weighted label based on proximity to the contour.
  • Global Boundary-sensitive Kernel: This kernel acts as a position-sensitive prior. It learns a global probability map indicating how likely each location in an image is to be a boundary. This map is then used to weight the loss function, forcing the network to pay more attention to potentially difficult boundary regions.
  • Boundary-sensitive Attribute Classifier: A separate classifier is trained jointly with the segmentation network. This classifier learns to predict portrait attributes (e.g., hair style). By sharing base layers with the segmentation network, it provides additional semantic information that helps the system better understand and segment portrait boundaries.

Datasets

The paper evaluates BSN on several datasets:

  • PFCN dataset: This is described as the largest publicly available portrait segmentation dataset, used for training and primary evaluation.
  • COCO: A subset of portrait and portrait-like images was collected from the COCO dataset.
  • COCO-Stuff: A subset of portrait and portrait-like images was collected from COCO-Stuff.
  • PASCAL VOC: A subset of portrait and portrait-like images was collected from PASCAL VOC 2007, 2008, and 2012.

Key Insights and Ideas

  • Boundary Pixels are Special: The paper strongly emphasizes that boundary pixels are not just a mix of foreground and background but require dedicated handling. Treating them as a separate class with soft labels is a crucial insight.
  • Global Context Matters for Boundaries: The global kernel's ability to learn position-dependent boundary probabilities highlights that certain image regions are inherently more prone to boundary ambiguity.
  • Attribute Information Aids Segmentation: Jointly training an attribute classifier provides valuable semantic cues that improve the segmentation of complex portrait features.
  • Soft Labels for Precision: The use of soft labels for boundary pixels allows for a more nuanced contribution to the loss function, leading to better boundary refinement than hard labels.

Key Results

  • On the PFCN dataset, BSN achieved a state-of-the-art mean IoU of 96.7%.
  • When tested on other datasets (COCO, COCO-Stuff, PASCAL VOC) without fine-tuning, BSN significantly outperformed the PortraitFCN+ method, achieving 77.7%, 72.0%, and 75.6% mean IoU, respectively.
  • Qualitative results demonstrate BSN's superior performance in challenging scenarios, such as images with confusing background objects, multiple people, or similar foreground/background colors. It also shows improved segmentation of fine details like hair and accessories.

Limitations and Future Work

  • Generalization to Other Domains: While BSN shows strong performance on portrait segmentation, the authors suggest extending their boundary-sensitive methods to general semantic segmentation problems as a future direction.
  • Exploring More Attributes: The paper hints at exploring more semantic attributes to further reinforce the training process, suggesting that richer attribute information could lead to even better segmentation.
  • Computational Cost: While not explicitly detailed as a limitation, the multi-task learning and specialized kernels likely add computational overhead compared to simpler models.

Summary updated

BibTeX
@inproceedings{du2019boundary,
  author = {Xianzhi Du and Xiaolong Wang and Dawei Li and Jingwen Zhu and Serafettin Tasci and Cameron Upright and Stephen Walsh and Larry S. Davis},
  title = {{Boundary-sensitive Network for Portrait Segmentation}},
  booktitle = {FG},
  year = {2019},
  doi = {10.1109/fg.2019.8756516},
}
Figure