# Florence-2 vs Grounding DINO

> Florence-2 scores 48.5 (D) to Grounding DINO's 32.3 (F) for vision detect. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/florence-2-vs-grounding-dino
- Markdown: https://www.anchorterminal.com/compare/florence-2-vs-grounding-dino.md (~2,150 tokens)
- Slim: https://www.anchorterminal.com/compare/florence-2-vs-grounding-dino.min.md (~530 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/florence-2-vs-grounding-dino.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-12-01

Florence-2 scores 48.5 (D) on agent readiness against Grounding DINO's 32.3 (F), and leads in 2 of 4 scored categories. Both do vision detect.

- Florence-2: grade D, 48.5/100, rank #165 of 184 open-weight models. Markdown https://www.anchorterminal.com/tools/florence-2.md · JSON https://www.anchorterminal.com/api/v1/tools/florence-2.json
- Grounding DINO: grade F, 32.3/100, rank #184 of 184 open-weight models. Markdown https://www.anchorterminal.com/tools/grounding-dino.md · JSON https://www.anchorterminal.com/api/v1/tools/grounding-dino.json
- Best computer vision models, APIs and labelling tools for AI agents: https://www.anchorterminal.com/best/computer-vision/index.md
- All 118 computer vision comparisons: https://www.anchorterminal.com/compare/computer-vision/index.md

## Which one, for what

### Florence-2 (D)

Good for: Agents that need small local captioning, OCR with regions or box output from a task token, and can accept an older model

Ahead on:
- Reach, 65 against 30
- Risk, 35 against 25

Watch for: The card's example runs repository code with trust_remote_code=True, and pytorch_model.bin sits beside the safetensors

### Grounding DINO (F)

Good for: Agents that need zero-shot box detection from a text prompt on their own hardware and can accept an older repository

Watch for: The README's checkpoints are .pth pickle files, and no safetensors copy was seen on the pages read


## Why the edge

### Reach: Florence-2 +35

- Florence-2 (65): Memory 30 from the card's 0.77B parameters at float16. Runtimes 10, Transformers (native) and vLLM (plugin), 5 each. No quantised builds from Microsoft (0), MIT (15), not gated (10), and no host found (0).
- Grounding DINO (30): Memory scores 0 as absent, because no size or parameter count was found and the Hugging Face host limit stopped the reading. Runtimes 5 (Transformers). No quantised build (0), Apache 2.0 (15), a GitHub release download with no account (10) and no host for the original weights (0).

### Risk: Florence-2 +10

- Florence-2 (35): File safety 5, since pytorch_model.bin sits beside the safetensors (15) and the card's load runs repository code with trust_remote_code (10 off). Provenance 10, no checksums read. MIT leaves licence risk at 15. No safety results (0) and no agent guidance (0). A SECURITY.md and a valid security.txt earn 5.
- Grounding DINO (25): File safety 0, since the README's checkpoints are pickle .pth files and no safetensors copy was read. Provenance 10. No safety results (0), no agent guidance (0), Apache 2.0 leaves licence risk at 15, and no security policy was found (0).

## Score by category

| Category | Weight | Florence-2 | Grounding DINO | Edge |
| --- | --- | --- | --- | --- |
| Capability | 35%, pending | pending | pending | not scored in this run |
| Reach | 25% | 65 | 30 | Florence-2 +35 |
| Risk | 20% | 35 | 25 | Florence-2 +10 |
| Agent interface | 10% | 60 | 60 | even |
| Documentation and upkeep | 10% | 23 | 25 | Grounding DINO +2 |
| Negative events | ≤15 | 0 | 0 | |
| **Total** | | **48.5 · D** | **32.3 · F** | |

## Facts side by side

| Fact | Florence-2 | Grounding DINO |
| --- | --- | --- |
| Kind | Open-weight model | Open-weight model |
| Vendor | Microsoft | IDEA Research |
| Hosted endpoint | no (local only) | no (local only) |
| Transports |  |  |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2025-08-04 | 2023-04-07 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |

## Verdicts

**Florence-2.** Florence-2 turns one task token into captions, boxes, grounded phrases, OCR with regions or segmentation from 0.23B or 0.77B parameters under MIT, and Transformers and vLLM run it. Microsoft's own repository needs trust_remote_code and ships a pickle file, and its files last changed on 4 August 2025.

**Grounding DINO.** Grounding DINO detects named things in an image from a text prompt and returns boxes with matched words, as a PyTorch repository under Apache 2.0 and in Transformers. The checkpoints are pickle files, the training code was never released, and the last commit is dated 12 August 2024.

## Before you call either

### Florence-2

1. Load a florence-community checkpoint with Transformers' native class when you can (its docs use florence-community/Florence-2-base). Microsoft's repository needs trust_remote_code=True, which runs its Python files.
2. Send one task token per call, such as <OD> or <CAPTION>, and pass the output to processor.post_process_generation with the task and the image size.
3. Use float16 on a GPU and float32 on a CPU. The card says all models were trained in float16.
4. Pick -ft for the tasks it was fine-tuned on and the pretrained model for prompts it wasn't. The card describes both and compares them.
5. To find named things, use the caption to phrase grounding task with a caption. <OD> returns boxes with the labels the model learned.

### Grounding DINO

1. Use Transformers' GroundingDinoForObjectDetection when you can. It avoids compiling the repository's CUDA extension and loads IDEA-Research checkpoints.
2. Separate category names with a full stop in the text prompt, for example `chair . person . dog .`, as the README suggests.
3. Set box_threshold and text_threshold yourself. The README's example uses 0.35 and 0.25, and the model returns 900 candidate boxes by default.
4. Download .pth checkpoints only from IDEA Research's GitHub releases, and load them with the repository's own code, since PyTorch pickles can run code when loaded.
5. For masks, pair it with a segmentation model. The README points to Grounded SAM 2.

## Questions

### Which is better for AI agents, Florence-2 or Grounding DINO?

Florence-2 scores 48.5 (D) on agent readiness against Grounding DINO's 32.3 (F), and leads in 2 of 4 scored categories.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/florence-2-vs-grounding-dino.json, and with the fewest tokens: https://www.anchorterminal.com/compare/florence-2-vs-grounding-dino.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "florence-2", "b": "grounding-dino"}`. From a terminal: `anchor compare florence-2 grounding-dino`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/florence-2.json and https://www.anchorterminal.com/api/v1/tools/grounding-dino.json

## Other comparisons with Florence-2 or Grounding DINO

- [DINOv3 vs Florence-2](https://www.anchorterminal.com/compare/dinov3-vs-florence-2.md)
- [DINOv3 vs Grounding DINO](https://www.anchorterminal.com/compare/dinov3-vs-grounding-dino.md)
- [Florence-2 vs Moondream](https://www.anchorterminal.com/compare/florence-2-vs-moondream.md)
- [Florence-2 vs PaliGemma](https://www.anchorterminal.com/compare/florence-2-vs-paligemma.md)
- [Florence-2 vs RF-DETR](https://www.anchorterminal.com/compare/florence-2-vs-rf-detr.md)
- [Florence-2 vs Segment Anything (SAM 3.1)](https://www.anchorterminal.com/compare/florence-2-vs-segment-anything.md)
- [Florence-2 vs Ultralytics YOLO](https://www.anchorterminal.com/compare/florence-2-vs-ultralytics-yolo.md)
- [Grounding DINO vs Moondream](https://www.anchorterminal.com/compare/grounding-dino-vs-moondream.md)
- [Grounding DINO vs PaliGemma](https://www.anchorterminal.com/compare/grounding-dino-vs-paligemma.md)
- [Grounding DINO vs RF-DETR](https://www.anchorterminal.com/compare/grounding-dino-vs-rf-detr.md)
- [Grounding DINO vs Segment Anything (SAM 3.1)](https://www.anchorterminal.com/compare/grounding-dino-vs-segment-anything.md)
- [Grounding DINO vs Ultralytics YOLO](https://www.anchorterminal.com/compare/grounding-dino-vs-ultralytics-yolo.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
