
hf_owlvit_base_patch32_detection
Detection and tracking652 ops153.2M params
CLIP-backed Vision Transformer with per-token heads for open-vocabulary detection.
Detection and tracking · 652 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
OWL-ViT, short for Vision Transformer for Open-World Localization, is an open-vocabulary detector: you query an image with one or more text strings and it finds the objects they describe. The recipe is deliberately plain: a standard Vision Transformer with minimal changes, contrastive image-text pre-training, then end-to-end detection fine-tuning.
Concretely it takes CLIP as its backbone, drops the final token pooling layer of the vision model, and attaches a lightweight classification and box head to each output token. Open vocabulary comes from swapping the fixed classifier weights for class-name embeddings from the text model, and the whole thing is fine-tuned with a bipartite matching loss on standard detection datasets.
The authors' scaling analysis found that more image-level pre-training and bigger models keep paying off on the downstream detection task. The captured members are the base patch-32 and patch-16 detectors plus the bare OwlViTModel, which gives text and image features without the heads.
Key idea. A simple recipe for open-vocabulary detection: a CLIP-pretrained Vision Transformer with per-token box and class heads, where class weights are text embeddings, fine-tuned end to end for zero-shot text-conditioned and one-shot image-conditioned detection.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.