Discover how instance segmentation refines object detection with pixel-level precision, enabling detailed object masks for AI applications.
Instance segmentation is an advanced computer vision (CV) task that identifies and delineates individual objects within an image at the pixel level. Unlike other vision tasks, it does not just classify an image or draw a bounding box around objects; instead, it generates a precise pixel-wise mask for each distinct object instance. This technique provides a much deeper understanding of a scene, as it can differentiate between overlapping objects of the same class.
It is important to distinguish instance segmentation from other related computer vision tasks.
Instance segmentation models typically perform two main functions: first, they detect all object instances in an image, and second, they generate a segmentation mask for each detected instance. This process was famously popularized by architectures like Mask R-CNN, which extends object detectors like Faster R-CNN by adding a parallel branch that predicts a binary mask for each region of interest. Modern models have further refined this process for better speed and accuracy, enabling real-time inference in many applications. Development often relies on powerful deep learning frameworks such as PyTorch and TensorFlow.
The detailed object outlines provided by instance segmentation are valuable in numerous fields.
Ultralytics provides state-of-the-art models capable of performing efficient instance segmentation. Models like YOLOv8 and the latest YOLO11 are designed to deliver high performance on various vision tasks, including instance segmentation. You can find more details in our documentation for the segmentation task. Users can leverage pre-trained models or perform fine-tuning on custom datasets like COCO using tools like the Ultralytics HUB platform, which simplifies the machine learning (ML) workflow from data management to model deployment. For practical implementation, resources like our tutorial on segmentation with pre-trained Ultralytics YOLOv8 models or our guide on isolating segmentation objects are available. You can also learn how to use Ultralytics YOLO11 for instance segmentation.