← all notes

Open-source object detection models in 2026: what to run

Open-source object detection models compared: YOLO26, RF-DETR, D-FINE, SAM 3 and Qwen3-VL. What each is for, where it runs, and what the licence allows.

Object detection is the job of finding things in an image and drawing a box around each one. A forklift in a lane it should not be in. A pallet with no label. A person without a helmet. A crack on a weld.

Two years ago the honest advice was to buy a cloud API and live with the bill. That has changed. Open-source object detection models now match or beat the paid ones on most of the work I see, they run on a small GPU next to the camera, and the images never leave the building.

The models are not the hard part any more. The choice is. It comes down to three questions:

  1. Do you know the list of things to find, or does it change?
  2. Where does it run, and how fast must it answer?
  3. What does the licence let you ship?

Three kinds of object detection model

Fixed-class detectors: YOLO26, RF-DETR, D-FINE

You give these a list of classes and a few hundred labelled images per class. They learn that list and nothing else. In return they are fast, small, and accurate on your cameras.

  • YOLO26 from Ultralytics. The newest of the YOLO line. Easy to train, exports to almost everything, and the best tooling for CPUs and edge boards.
  • RF-DETR from Roboflow. A transformer detector that fine-tunes well on small custom datasets. The top sizes are the most accurate real-time detectors on COCO right now.
  • D-FINE and DEIM. Research detectors from the same family as RF-DETR. Plain Apache 2.0, strong at the medium sizes, a little more work to train.

On the standard COCO benchmark, the medium versions of D-FINE, DEIM and RF-DETR sit a point or two ahead of YOLO at the same speed. On your data, that gap can go either way. Treat the benchmark as a shortlist, not an answer.

Open-vocabulary detectors: Grounding DINO, OWLv2, YOLOE, SAM 3

These take a text prompt instead of a fixed list. Type "forklift", "blue crate", "person on a ladder", and they look for it. No training.

  • Grounding DINO. Strong at finding what you describe, slow for live video.
  • OWLv2 from Google. Lighter, and handles long-tail objects well.
  • YOLOE. Open-vocabulary detection with YOLO speed, for when the prompt has to run live.
  • SAM 3 from Meta. Takes a short phrase or an example crop and returns masks for every match, in images and video. Use it when the outline matters, not only the box.

They are less precise than a trained detector on a narrow job. They are very good at the first week of a project, when you do not know the classes yet.

Vision-language models: Qwen3-VL, Florence-2

A model like Qwen3-VL or Florence-2 reads the image and answers in text, boxes included. Ask "which shelves are empty?" and you get coordinates back.

This is the slowest option by far, and the only one that can reason about a scene. "Is the person in the yellow vest inside the marked zone?" is one question to a VLM and three models plus a rule to everything else. If you already run Qwen on your own hardware, you have a visual model too.

Comparison table

Model Type Licence Best for
YOLO26 Fixed classes AGPL-3.0 or paid CPUs and edge boards
RF-DETR (Nano–Large) Fixed classes Apache 2.0 Accuracy on small custom datasets
D-FINE, DEIM Fixed classes Apache 2.0 Accuracy with a plain licence
Grounding DINO Text prompt Apache 2.0 Finding described objects, offline
OWLv2 Text prompt Apache 2.0 Rare and long-tail objects
YOLOE Text prompt AGPL-3.0 Prompted detection in real time
SAM 3 Text or example, masks Meta SAM Licence Outlines and auto-labelling
Qwen3-VL Vision-language Apache 2.0 Questions about a scene
Florence-2 Vision-language MIT Small captioning and grounding model

Licences: YOLO26 AGPL vs RF-DETR and D-FINE Apache 2.0

Most teams pick by accuracy and read the licence after the demo. Do it the other way round.

  • YOLO26 is AGPL-3.0. Ultralytics says this covers the models you train with it too. A product, an internal tool, or an API that uses it must be open-sourced under AGPL, or you buy their Enterprise Licence. That is a fine deal for many companies. It is a bad surprise in month six.
  • RF-DETR is Apache 2.0 from Nano to Large. The XL and 2XL sizes are under Roboflow's own platform licence, with different terms for self-hosting. Check the size you pick.
  • D-FINE, DEIM, Grounding DINO and OWLv2 are Apache 2.0. Florence-2 is MIT. Qwen3-VL is Apache 2.0.
  • SAM 3 has its own licence from Meta. Commercial use is allowed, with conditions and a list of banned uses. SAM and SAM 2 were Apache 2.0. Do not assume the same.

If the code will ever sit in something you sell, put a lawyer's eye on the licence before the first labelled image.

Auto-labelling with SAM 3, then training a small detector

For most camera projects I end up with two models, not one.

  1. Label with a big model. Point an open-vocabulary detector or SAM 3 at a few thousand frames from the real cameras. It drafts the boxes. A person fixes the wrong ones, which is far quicker than drawing them from scratch.
  2. Train a small model to run. Fine-tune RF-DETR or D-FINE on those corrected labels. It learns your classes, your lighting, your camera angles.
  3. Run the small one at the edge. It answers in a few milliseconds on a modest GPU. The big model stays offline, for labelling the next batch.
  4. Send the odd cases back. Low-confidence frames go to a queue. They become next month's training data.

The big model knows the world. The small one knows your warehouse. You need both.

Why object detection projects fail

The benchmark is not your camera. COCO is well-lit photos of everyday things. Your images are a dirty lens at 4 a.m., a forklift half behind a rack, a part 30 pixels wide. Collect frames from the actual site before you compare models.

Latency measured somewhere else. Published speeds are on a data-centre GPU with a batch of one and no decoding. Add video decode, resize, tracking, and the network hop. Time the whole path on the box you will deploy.

Small objects. Most detectors lose accuracy fast below about 32 pixels. Higher input resolution or cropping tiles of the frame helps more than a bigger model.

Detection is not counting. A box per frame does not tell you how many pallets passed. Counting and dwell time need a tracker on top, and a rule for when an object leaves and comes back.

Drift. New packaging, a repainted floor, winter light. Accuracy falls quietly. Keep a small labelled test set from each month and run it after every change.

When to build your own object detection

Build your own detection when the cameras already exist, the question is narrow and repeats all day, and the images should not leave the site. Safety zones, stock on shelves, counting at a dock door, defects on a line.

Buy a cloud API, or wait, when you have a few hundred images a month, no one to own the labels, or a question that changes every week. That last one is a job for a VLM and a person, not a trained detector.


If you have cameras and a question you keep answering by hand, get in touch. The first step is a week of real frames and a list of what should be found in them.