Closed set versus open vocabulary
A conventional object detector has one output per class it was trained on; a new class means new labels and new training. An open-vocabulary detector takes the class as input. Ask for "forklift" or "cracked tile" and it returns boxes for whatever in the image matches the words, learned from large sets of images paired with text.
Three models, three approaches
- Grounding DINO fuses image and text features and uses language-guided query selection to decide where to look, then predicts boxes with the phrases they match.
- Florence-2 is a sequence-to-sequence model driven by task prompts; the Supervisely app uses its Caption to Phrase Grounding task to detect objects.
- SAM 3 takes a short noun phrase or an image exemplar and returns masks for every matching object, in images and video.
Earlier work on the same idea includes OWL-ViT, and CLIP supplies the image-text matching many of these models build on.
Where it fits
Text-prompted detection shines at the start of a project, when there is no trained model yet: it produces first labels for people to correct, which is model-assisted labeling with no training at all. Once a few hundred reviewed examples exist, a detector trained on them is usually faster and more precise on that narrow task.
Limits to expect
- Results change with wording: "car" and "vehicle" return different sets.
- Scores are not comparable across prompts, so one threshold rarely suits every class.
- Specialist domains, such as defects on a production line or medical findings, are poorly covered by web-scale image-text data.
In Supervisely
In the image labeling tool an annotator enters the name of a class, and Florence-2 or Grounding DINO boxes each object that fits it, without any training on that class. The Apply Florence-2 + SAM 2 to Images Project app does the same for a whole project, adding a mask to each box. OWL-ViT and YOLOE also accept a reference box instead of a word, and Molmo answers a prompt with points.