Segment Anything Model (SAM) vs YOLOv8 Instance Segmentation
Compare Segment Anything Model (SAM) and YOLOv8 Instance Segmentation side-by-side.
Compare Segment Anything Model (SAM) vs YOLOv8 Instance Segmentation 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
Segment Anything Model (SAM) vs YOLOv8 Instance Segmentation Comparison Table
Evals updated July 10, 2026Pricing updated July 21, 2026
| Property | Segment Anything Model (SAM) | YOLOv8 Instance Segmentation |
|---|---|---|
| Organization | Meta | Ultralytics |
| Category | open | open |
| Modality | vision | vision |
| Release Date | Apr 2023 | Jan 2023 |
| Context Window | — | — |
| Parameters | 91M-636M | 2.7M-62.8M |
| License | Apache 2.0 | AGPL 3.0 |
| Model Sizes input resolution per size variant | ||
| Nano | 1280×1280, 640×640 | |
| Small | 1280×1280, 640×640 | |
| Medium | 1280×1280, 640×640 | |
| Large | 1280×1280, 640×640 | |
| XL | 1280×1280, 640×640 | |
| Vision Tasks | ||
| Instance Segmentation | Demo (COCO) | |
| Model Features | ||
| Foundation Vision | ||
| Real-Time Vision | ||
Segment Anything Model (SAM) vs YOLOv8 Instance Segmentation: Overview
The Segment Anything Model is a promptable image segmentation foundation model developed by Meta AI, released in April 2023 under the Apache 2.0 license. It introduces a general-purpose segmentation architecture trained on SA-1B, a dataset of over 1 billion masks across 11 million images collected using a data engine that leveraged the model itself. SAM accepts point, bounding box, and mask prompts and generates high-quality segmentation masks for any object in an image, including objects not seen during training.
SAM achieves strong zero-shot performance across a wide range of segmentation tasks and domains. Its promptable interface makes it suitable as a building block for automated annotation, interactive segmentation tools, and integration with detection models such as Grounding DINO. SAM has been extended by subsequent works including SAM 2, SAM 3, and Grounded-SAM.
YOLOv8 Instance Segmentation is the segmentation variant of the YOLOv8 model developed by Ultralytics, released in January 2023 under the AGPL-3.0 license. It extends the standard YOLOv8 detection head with a mask prediction branch that generates pixel-level segmentation masks for each detected object using a prototype mask approach. This enables real-time instance segmentation within a single forward pass.
YOLOv8 Instance Segmentation shares the same backbone and neck architecture as the base detection model and is available in the same size range. It is deployable through Roboflow Inference and supports fine-tuning on custom COCO-format segmentation datasets. It is suited for applications requiring both object localization and precise mask prediction at real-time speeds.