arXiv(opens in a new tab)Computer ScienceMar 2017Cited by 15 papers on PaperVantage

Manuscript Offprint

arXiv:1703.06870

Mask R-CNN

Kaiming He, Georgia Gkioxari, Piotr Dollár, Ross B. Girshick

Abstract

We present a conceptually simple, flexible, and general framework for object instance segmentation. Our approach efficiently detects objects in an image while simultaneously generating a high-quality segmentation mask for each instance. The method, called Mask R-CNN, extends Faster R-CNN by adding a branch for predicting an object mask in parallel with the existing branch for bounding box recognition. Mask R-CNN is simple to train and adds only a small overhead to Faster R-CNN, running at 5 fps. Moreover, Mask R-CNN is easy to generalize to other tasks, e.g., allowing us to estimate human poses in the same framework. We show top results in all three tracks of the COCO suite of challenges, including instance segmentation, bounding-box object detection, and person keypoint detection. Without bells and whistles, Mask R-CNN outperforms all existing, single-model entries on every task, including the COCO 2016 challenge winners. We hope our simple and effective approach will serve as a solid baseline and help ease future research in instance-level recognition. Code has been made available at: https://github.com/facebookresearch/Detectron.

1 Introduction

The vision community has rapidly improved object detection and semantic segmentation results over a short period of time. In large part, these advances have been driven by powerful baseline systems, such as the Fast/Faster R-CNN [12, 36] and Fully Convolutional Network (FCN) [30] frameworks for object detection and semantic segmentation, respectively. These methods are conceptually intuitive and offer flexibility and robustness, together with fast training and inference time. Our goal in this work is to develop a comparably enabling framework for instance segmentation.

Figure

Figure 1: The Mask R-CNN framework for instance segmentation.

Figure

Figure 2: Mask R-CNN results on the COCO test set. These results are based on ResNet-101 [19], achieving a mask AP of 35.7 and running at 5 fps. Masks are shown in color, and bounding box, category, and confidences are also shown.

Instance segmentation is challenging because it requires the correct detection of all objects in an image while also precisely segmenting each instance. It therefore combines elements from the classical computer vision tasks of object detection, where the goal is to classify individual objects and localize each using a bounding box, and semantic segmentation, where the goal is to classify each pixel into a fixed set of categories without differentiating object instances. Given this, one might expect a complex method is required to achieve good results. However, we show that a surprisingly simple, flexible, and fast system can surpass prior state-of-the-art instance segmentation results.

Our method, called Mask R-CNN, extends Faster R-CNN [36] by adding a branch for predicting segmentation masks on each Region of Interest (RoI), in parallel with the existing branch for classification and bounding box regression (Figure 1). The mask branch is a small FCN applied to each RoI, predicting a segmentation mask in a pixel-to-pixel manner. Mask R-CNN is simple to implement and train given the Faster R-CNN framework, which facilitates a wide range of flexible architecture designs. Additionally, the mask branch only adds a small computational overhead, enabling a fast system and rapid experimentation.

In principle Mask R-CNN is an intuitive extension of Faster R-CNN, yet constructing the mask branch properly is critical for good results. Most importantly, Faster R-CNN was not designed for pixel-to-pixel alignment between network inputs and outputs. This is most evident in how RoIPool [18, 12], the de facto core operation for attending to instances, performs coarse spatial quantization for feature extraction. To fix the misalignment, we propose a simple, quantization-free layer, called RoIAlign, that faithfully preserves exact spatial locations. Despite being a seemingly minor change, RoIAlign has a large impact: it improves mask accuracy by relative 10% to 50%, showing bigger gains under stricter localization metrics. Second, we found it essential to decouple mask and class prediction: we predict a binary mask for each class independently, without competition among classes, and rely on the network’s RoI classification branch to predict the category. In contrast, FCNs usually perform per-pixel multi-class categorization, which couples segmentation and classification, and based on our experiments works poorly for instance segmentation.

Without bells and whistles, Mask R-CNN surpasses all previous state-of-the-art single-model results on the COCO instance segmentation task [28], including the heavily-engineered entries from the 2016 competition winner. As a by-product, our method also excels on the COCO object detection task. In ablation experiments, we evaluate multiple basic instantiations, which allows us to demonstrate its robustness and analyze the effects of core factors.

Our models can run at about 200ms per frame on a GPU, and training on COCO takes one to two days on a single 8-GPU machine. We believe the fast train and test speeds, together with the framework’s flexibility and accuracy, will benefit and ease future research on instance segmentation.

Finally, we showcase the generality of our framework via the task of human pose estimation on the COCO keypoint dataset [28]. By viewing each keypoint as a one-hot binary mask, with minimal modification Mask R-CNN can be applied to detect instance-specific poses. Mask R-CNN surpasses the winner of the 2016 COCO keypoint competition, and at the same time runs at 5 fps. Mask R-CNN, therefore, can be seen more broadly as a flexible framework for instance-level recognition and can be readily extended to more complex tasks.

We have released code to facilitate future research.

References (39)

  • 2D human pose estimation: New benchmark and state of the art analysis
  • Multiscale combinatorial grouping
  • Pixelwise instance segmentation with a dynamically instantiated network
  • Deep watershed transform for instance segmentation
  • Inside-outside net: Detecting objects in context with skip pooling and recurrent neural networks
  • Wei, and Y. Sheikh
  • The Cityscapes dataset for semantic urban scene understanding
  • Instance-sensitive fully convolutional networks
  • Convolutional feature masking for joint object and stuff segmentation
  • Instance-aware semantic segmentation via multi-task network cascades
  • R-FCN: Object detection via region-based fully convolutional networks
  • Rich feature hierarchies for accurate object detection and semantic segmentation
  • Deformable part models are convolutional neural networks
  • Simultaneous detection and segmentation
  • Hypercolumns for object segmentation and fine-grained localization
  • Shape-aware instance segmentation
  • Spatial pyramid pooling in deep convolutional networks for visual recognition
  • Deep residual learning for image recognition
  • What makes for effective detection proposals? PAMI, 2015
  • Spatial transformer networks
  • Instancecut: from edges to instances with multicut
  • ImageNet classification with deep convolutional neural networks
  • Backpropagation applied to handwritten zip code recognition
  • Fully convolutional instance-aware semantic segmentation
  • SGN: Sequential grouping networks for instance segmentation
  • Fully convolutional networks for semantic segmentation
  • Rectified linear units improve restricted boltzmann machines
  • Towards accurate multi-person pose estimation in the wild
  • Learning to segment object candidates
  • Lin, R. Collobert, and P. Dollár
  • Data distillation: Towards omni-supervised learning (opens arXiv in a new tab)
  • Faster R-CNN: Towards real-time object detection with region proposal networks
  • Training region-based object detectors with online hard example mining
  • Beyond skip connections: Top-down modulation for object detection (opens arXiv in a new tab)
  • Revisiting unreasonable effectiveness of data in deep learning era
  • Inception-v4, inception-resnet and the impact of residual connections on learning
  • Selective search for object recognition
  • Non-local neural networks (opens arXiv in a new tab)
  • Aggregated residual transformations for deep neural networks