Instance Segmentation Framework
Kaiming He, Georgia Gkioxari, Piotr Dollar, Ross Girshick
Read the Paper on arXivMask R-CNN extends Faster R-CNN by adding a parallel branch for predicting per-instance segmentation masks, achieving state-of-the-art instance segmentation while maintaining the speed of the two-stage detection framework.
The architecture follows a clear data flow: an input image (e.g., 800x1024) passes through a ResNet-50-FPN or ResNet-101-FPN backbone producing multi-scale feature maps (P2 through P5 at strides 4, 8, 16, 32 respectively, each with 256 channels). A Region Proposal Network generates ~1000 proposals per FPN level, which are filtered to ~300 via NMS. Each proposal is then processed by RoIAlign to extract fixed-size features (7x7x256 for classification/box heads, 14x14x256 for the mask head). Three parallel heads produce the final outputs: class probabilities over K+1 categories, 4 bounding box regression offsets, and K binary masks at 28x28 resolution.
The key insight is that adding a small fully convolutional network (FCN) that predicts a binary mask for each Region of Interest (RoI), running in parallel with the existing classification and bounding box heads, requires minimal additional computation (~20% overhead) while enabling pixel-precise segmentation. Critically, the mask head predicts K independent binary masks rather than a single K-way softmax mask, decoupling mask prediction from classification and eliminating inter-class competition.
Key advances:
COCO benchmark results (ResNet-101-FPN backbone):
Mask R-CNN established the "detect then segment" paradigm that became the foundation for Detectron2 and countless downstream applications in medical imaging, autonomous driving, robotics, and video analysis.
Click any topic to jump in
RPN proposes regions then a head classifies and refines them.
Multi-scale feature pyramid for detecting objects across sizes.
Bilinear-interpolation pooling that preserves pixel alignment.
Per-class FCN producing 28x28 masks per RoI.
Joint classification, box regression, and mask losses.
Same head template extends to keypoints, person parsing, and more.
Upgrade to PixelBank Premium to unlock this content.