Zero-shot object detection (open-vocabulary object detection)

Zero-shot object detection, also called open-vocabulary object detection, finds objects named in a text prompt, including classes the detector was never trained to label, by matching image regions against the meaning of the text instead of a fixed list of class outputs. In Supervisely, Grounding DINO and Florence-2 box each object of a named class with no training on it.

Tasks and trainingAlso called Open-vocabulary object detection, Open-set detection, Text-prompted detection

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.

Frequently asked questions.

What is zero-shot object detection?

Detecting objects of classes the model was not trained on, named at inference time by a text prompt or shown by an example. Models such as Grounding DINO, OWL-ViT and YOLOE do this.

What is the difference between zero-shot and open-vocabulary detection?

They overlap: open-vocabulary detectors accept any class name as input, and zero-shot describes using them on classes absent from their training data. In practice the two terms are often used for the same models.