OWL-ViT detects from a phrase or one example

OWL-ViT is Google's open-vocabulary detector: it finds objects described by a text query, or objects that look like one you framed on a reference image. In Supervisely you serve it for pre-labeling, in the image labeling tool and over whole images projects, with no training on your classes.

OWL-ViT finding corn from a text query or a reference box
Publisher
Google
Labels
  • Bounding boxes
Apps
Serve, Apply
Source
Paper, GitHub

Apps in the Supervisely Ecosystem

Every model in Supervisely comes as a Supervisely App: a module from the Ecosystem that plugs into the platform and runs on your own GPU, with no code to install. A Serve App puts the model behind the labeling tools, and where the model can be trained, a Train App fits it to your labeled project. All Apps work on the same projects, so you add a model, update it or swap it for another without changing anything else.

A vision transformer that reads queries

OWL-ViT comes from Google Research, in the paper "Simple Open-Vocabulary Object Detection with Vision Transformers". It starts from CLIP image and text encoders trained on image-text pairs and adds light detection heads, so a box is scored against an embedding. That embedding can come from text, which gives zero-shot text-conditioned detection, or from an object in another image, which gives one-shot image-conditioned detection.

Serve OWL-ViT offers three pretrained models: base with patch 32 (ViT-B/32), base with patch 16 (ViT-B/16) and large with patch 14 (ViT-L/14). You can also serve a custom checkpoint from Team Files. A GPU is preferred.

Text queries and reference images

ModeIn NN Image LabelingGood for
Text promptWrite the queries, then Apply model to imageObjects with a common name, such as "forklift"
Reference imageBox one example, then Apply model to ROIA specific part, logo or product with no good name

The reference mode is what sets OWL-ViT apart from the text-only detectors here: one box on one image is enough to look for more of the same. The OWL-ViT post walks through both modes.

When results disappoint, tune two thresholds. More boxes come from a lower confidence threshold and a higher NMS threshold; fewer duplicates, from the opposite.

Apply OWL-ViT To Images Project

  1. Start the app from the Ecosystem or the context menu of an images project and pick the project or a dataset.
  2. Select the running Serve OWL-ViT session.
  3. For a reference image, browse to an image of the project and box the object; for a text prompt, type the description.
  4. Set the confidence and NMS thresholds, then Set model input.
  5. Preview the predictions and run the model, saving to a new project or into the existing one.

What to know before you rely on it

OWL-ViT returns boxes only, and there is no training app for it. The implementation runs on TensorFlow: on NVIDIA Blackwell GPUs (RTX 5000 series) the first deployment compiles CUDA kernels and can take 15 to 30 minutes, after which the agent caches them.

For text-only prompts, compare it with Grounding DINO and YOLOE, which also takes visual prompts and runs in real time. When the pre-labels are corrected, train a detector of your own classes, such as YOLO or RT-DETRv2. The zero-shot detection entry explains where these models fall short.

Frequently asked questions.

Can I serve an OWL-ViT checkpoint of my own?

Yes. Copy the path of the model file in Team Files into the custom models section of Serve OWL-ViT, select its model type and press Serve.

Does OWL-ViT need a GPU?

A GPU is preferred but not required: the app can also run on a CPU, more slowly. For a whole project, a GPU agent saves a lot of waiting.

Train and serve models on your own data.

Label a project in a free account, train a model on it from the browser and deploy it on your own GPU. Or book a demo to run Supervisely on your servers.