Roboflow

Florence-2 vs Segment Anything Model (SAM)

Compare Florence-2 and Segment Anything Model (SAM) side-by-side.

Compare Florence-2 vs Segment Anything Model (SAM) 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

Florence-2 vs Segment Anything Model (SAM) Comparison Table

Evals updated August 20, 2026Pricing updated August 24, 2026

PropertyFlorence-2Segment Anything Model (SAM)
OrganizationMicrosoftMeta
Categoryopenopen
Modalitymultimodalvision
Release DateJun 2025Apr 2023
Context Window
Parameters230M91M-636M
LicenseMITApache 2.0
Vision Tasks
Instance Segmentation
CaptioningDemo
Object DetectionDemo
OCRDemo
Open Vocabulary Object Detection
Phrase Grounding
Region Proposal
Model Features
Foundation Vision
Multimodal Vision
Zero-shot Detection

Florence-2 vs Segment Anything Model (SAM): Overview

Florence-2

Florence-2, introduced by Microsoft Research at CVPR 2024, is an open-source vision-language foundation model designed to unify diverse computer vision tasks within a single sequence-to-sequence framework. Unlike traditional models that specialize in specific tasks, Florence-2 accepts both images and text prompts and outputs text for tasks such as captioning, object detection, segmentation, OCR, and region-based grounding. It comes in two sizes—Florence-2-base (~230M parameters) and Florence-2-large (~770M parameters)—and is trained on FLD-5B, a large dataset of ~126M images with ~5.4B annotations.

The model demonstrates strong zero-shot and fine-tuned performance, often rivaling larger vision-language systems while remaining lightweight and efficient. Released under the MIT license, all weights are publicly available, making it accessible for fine-tuning and deployment in applications like VQA, content tagging, accessibility, and research. Florence-2’s compact design, versatility, and openness position it as a practical alternative to larger proprietary multimodal models.

Segment Anything Model (SAM)

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.