Mask R-CNN vs YOLOv12

Compare Mask R-CNN and YOLOv12 side-by-side.

Compare Mask R-CNN vs YOLOv12 live

Run the same image across every model that supports a task and compare their outputs side-by-side.

These models don't share enough common tasks for a side-by-side demo. See the comparison table below for their capabilities.

Models in this comparison

Mask R-CNN vs YOLOv12: Overview

Mask R-CNN

Mask R-CNN is an instance segmentation model developed by Facebook AI Research (Meta), released in October 2017. It extends Faster R-CNN by adding a parallel branch that predicts binary segmentation masks for each detected object, independent of the classification and bounding box regression branches. A key contribution is RoIAlign, which replaces RoIPool with bilinear interpolation to preserve spatial correspondence between features and input pixels, significantly improving mask quality.

Mask R-CNN achieves strong performance on the COCO instance segmentation benchmark and supports keypoint detection as an additional output head. It remains a foundational architecture in instance segmentation and is available through Meta's Detectron2 framework. The model is most appropriate for tasks requiring pixel-level object delineation, such as medical imaging, autonomous driving, and industrial inspection.

YOLOv12

YOLOv12 is an attention-centric real-time object detection model developed by researchers at Tsinghua University, with the arXiv paper published in February 2025 under the AGPL-3.0 license. It introduces an Area Attention module that partitions feature maps into regions and applies self-attention within each region, reducing the quadratic complexity of full self-attention while capturing long-range dependencies. It also incorporates R-ELAN for improved feature aggregation and scaled residual connections for training stability.

YOLOv12-L achieves 54.0% AP on COCO, while the YOLOv12-N variant achieves 40.5% mAP at 1.62ms latency on an NVIDIA T4 GPU. The model is built on the Ultralytics codebase, supporting detection, segmentation, and other standard YOLO tasks at competitive real-time speeds.

Mask R-CNN vs YOLOv12 Comparison Table

PropertyMask R-CNNYOLOv12
OrganizationMetaTHU-MIG
Categoryopenopen
Modalityvisionvision
Release DateOct 2017Feb 2025
Context Window
Parameters44.4M2.6M-59.1M
LicenseMITAGPL 3.0
Vision Tasks
Instance Segmentation
Object Detection
Classification
Keypoint Detection
Pose Estimation
Model Features
Foundation Vision
Real-Time Vision