# Florence-2 vs RF-DETR

> RF-DETR scores 59.3 (C) to Florence-2's 48.5 (D) for vision detect. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/florence-2-vs-rf-detr
- Markdown: https://www.anchorterminal.com/compare/florence-2-vs-rf-detr.md (~2,450 tokens)
- Slim: https://www.anchorterminal.com/compare/florence-2-vs-rf-detr.min.md (~680 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/florence-2-vs-rf-detr.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

RF-DETR scores 59.3 (C) on agent readiness against Florence-2's 48.5 (D), and leads in 3 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
- RF-DETR: grade C, 59.3/100, rank #101 of 184 open-weight models. Markdown https://www.anchorterminal.com/tools/rf-detr.md · JSON https://www.anchorterminal.com/api/v1/tools/rf-detr.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

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

### RF-DETR (C)

Good for: Developers who need real-time detection or instance segmentation they can ship in closed-source or self-hosted products, and who can fine-tune on their own dataset

Ahead on:
- Risk, 50 against 35
- Agent interface, 70 against 60
- Documentation and upkeep, 53 against 23

Watch for: Atto, Femto, Pico, XL, 2XL and NAS models are under PML 1.0, which needs a Roboflow plan and allows usage tracking


## Why the edge

### Documentation and upkeep: RF-DETR +30

- Florence-2 (23): The card has three of seven items (8) and a short description of FLD-5B (5). Last modified 484 days ago (0). Responsiveness is scored as absent because the host limit stopped the count (0). Versions sit in separate repositories (5), and open reports of broken custom code keep file health at 5.
- RF-DETR (53): Model card 8, intended use, architecture and parameters are given, and limitations, context, languages and cut-off are not. Training data 10, COCO is named with no cut-off or filtering. Last change 20, released 12 November 2026. Responsiveness 0, no question found on the Hub and GitHub issues were not readable. Version policy 10, dated changelog, docs for every version and deprecations with removal versions. File health 5, the card's example points at another namespace. 8 + 10 + 20 + 0 + 10 + 5 = 53.

### Risk: RF-DETR +15

- 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.
- RF-DETR (50): File safety 15, safetensors on the Hub with pickle .pth files beside them, loaded with weights_only=True by default. Provenance 15, Roboflow's own organisation and domain (10), SHA-256 and MD5 checks (5). Safety evaluation 0, none. Agent guidance 0, none found. Licence risk 15, Apache 2.0 for the graded sizes. Security programme 5, a private report address and no public advisories read. 15 + 15 + 0 + 0 + 15 + 5 = 50.

### Agent interface: RF-DETR +10

- Florence-2 (60): Read for a vision model. Task tokens and typed outputs through post_process_generation are documented (25 and 15). One task per call (10), prompts as task tokens in code (10), no reasoning mode (0) and a 4k context (0).
- RF-DETR (70): Chat template 10, none because it isn't a chat model, and the input format is given as code. Tool-calling format 25, read for a detector, inputs and the Detections it returns are documented. Trained tool calling 20, an iterable or batch tensor is one batch. Structured output 15, typed Detections with masks or keypoints. Reasoning control 0, none. Context 0, not applicable. 10 + 25 + 20 + 15 + 0 + 0 = 70.

## Score by category

| Category | Weight | Florence-2 | RF-DETR | Edge |
| --- | --- | --- | --- | --- |
| Capability | 35%, pending | pending | pending | not scored in this run |
| Reach | 25% | 65 | 65 | even |
| Risk | 20% | 35 | 50 | RF-DETR +15 |
| Agent interface | 10% | 60 | 70 | RF-DETR +10 |
| Documentation and upkeep | 10% | 23 | 53 | RF-DETR +30 |
| Negative events | ≤15 | 0 | 0 | |
| **Total** | | **48.5 · D** | **59.3 · C** | |

## Facts side by side

| Fact | Florence-2 | RF-DETR |
| --- | --- | --- |
| Kind | Open-weight model | Open-weight model |
| Vendor | Microsoft | Roboflow |
| Hosted endpoint | no (local only) | no (local only) |
| Transports |  |  |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | Apache 2.0 for the rfdetr package, RF-DETR Nano to Large detection, every RF-DETR-Seg size and RF-DETR Keypoint. Atto, Femto, Pico, XL, 2XL and NAS models are under Roboflow's Platform Model License 1.0, which needs a Roboflow plan |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2025-08-04 | 2026-11-12 |
| Terms last updated | no document linked | not read yet |
| Privacy policy last updated | no document linked | not read yet |

## 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.

**RF-DETR.** RF-DETR detects, segments and finds person keypoints from images and video, with Apache 2.0 weights for most sizes, safetensors on the Hub and a documented Python package that exports to many runtimes. The largest and smallest detection sizes need a Roboflow plan under PML 1.0, and no independent benchmark was read.

## 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.

### RF-DETR

1. Install with `pip install rfdetr`. Use `RFDETRSmall()` as the default, and the first call downloads the weights.
2. Stay with Nano to Large, Seg and Keypoint for closed-source or self-hosted use. `pip install "rfdetr[plus]"` brings PML 1.0 models that need a Roboflow plan.
3. Load only checkpoints you trust. Leave `trust_checkpoint` off, since it allows full pickle loading.
4. Pass `threshold` to `predict()`, or `ClassThresholds` for one bar per class, and `stream=True` on `RFDETRInference` for video.
5. Roboflow's pages say the YOLO models are AGPL-3.0 and that it sells hosting for them, so check Ultralytics' own licence page before choosing on licence alone.

## Questions

### Which is better for AI agents, Florence-2 or RF-DETR?

RF-DETR scores 59.3 (C) on agent readiness against Florence-2's 48.5 (D), and leads in 3 of 4 scored categories.


## For agents

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

## Other comparisons with Florence-2 or RF-DETR

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