OWLv2

OWLv2 is an open-vocabulary object detector, developed by Google Research, that scores image regions against text embeddings from a CLIP-style encoder. LibreYOLO wraps it as a predict-only family in its open-vocabulary detector tier.

Tasks
detection
Sizes
b16, l14 at 960 to 1008 px
Install
pip install libreyolo
Support tier
Sibling tier, since v. A separate product surface with its own factory and contract.
Upstream
OWLv2 by Google Research, Apache-2.0. Paper, source
Licenses
Code MIT, weights Apache-2.0. Commercial use

Install

OWLv2 loads through LibreYOLO's open-vocabulary detector tier, which needs the openvocab extra:

bash
pip install "libreyolo[openvocab]"

That extra pulls in transformers and timm, the Hugging Face libraries this tier calls into.

Predict

OWLv2 is not a checkpoint LibreYOLO loads through LibreYOLO(). It loads through the sibling LibreOpenVocab factory, which downloads a Hugging Face snapshot on first use and caches it under weights/.

Python
from libreyolo import LibreOpenVocab, SAMPLE_IMAGE model = LibreOpenVocab("owlv2-b16")model.set_classes(["person", "dog", "skateboard"]) result = model.predict(SAMPLE_IMAGE, conf=0.1)for box in result.boxes:    print(box.cls, box.conf, box.xyxy)
Default vocabulary
from libreyolo import LibreOpenVocab, SAMPLE_IMAGE # Skipping set_classes() keeps the tier's default COCO-80 vocabulary.model = LibreOpenVocab("owlv2-l14")result = model.predict(SAMPLE_IMAGE, conf=0.1)print(result.names)

set_classes() sets a sticky text vocabulary: call it again to replace the list, or skip it to keep the default COCO-80 labels. Each label is wrapped in a fixed prompt template before it reaches the text tower, matching how transformers' Owlv2ForObjectDetection was trained.

OWLv2 has no text-token threshold: only conf filters detections, and passing text_threshold raises. iou is accepted for API compatibility but warns and does nothing, since nothing here runs non-maximum suppression. imgsz and augment=True are rejected outright: the transformers processor owns resizing, and test-time augmentation is out of scope for this tier. predict() on a single image returns one Results, not a list; pass a directory, a list of images, or stream=True for a video source to get several. There is no CLI path for this family, libreyolo predict only loads .pt checkpoints through LibreYOLO(), so LibreOpenVocab families run from Python. See prediction for source types and streaming.

Variants

Two checkpoints, b16 (base, patch size 16) and l14 (large, patch size 14). b16 is this tier's default size when none is given. Both mirror the official Google Research release through transformers' Owlv2ForObjectDetection, downloaded once into a LibreYOLO-hosted Hugging Face snapshot that preserves the upstream files. No accuracy or latency numbers are published for this family yet.

Training, dataset validation and export are all out of scope for this tier: train(), val() and export() all raise NotImplementedError unconditionally. This is a predict-only wrapper around a published checkpoint.

Checkpoints

Every published weight file for this family.

FileInput (px)Weights license
Detection
LibreOWLv2b16.pt960apache-2.0
LibreOWLv2l14.pt1008apache-2.0

Every file above exists in the LibreYOLO org today and downloads on first use.

Licensing

Check the license on the Hugging Face repository of the specific weights you download. Every checkpoint in the LibreYOLO org carries one, and they are not always the same across a family. That repository is the authoritative source; the summary below describes what applied when this page was last verified.

This is a description of the licenses involved, not legal advice. If the answer matters commercially, read the licenses yourself and take your own counsel.

Original work
OWLv2, Google Research
Upstream license
Apache-2.0
LibreYOLO code
MIT
Weights
Apache-2.0, republished at huggingface.co/LibreYOLO
Interpretation
Apache-2.0 is a permissive license, so these checkpoints can be used in commercial and closed-source products. It asks you to keep the license text and attribution notices with any copy of the weights you redistribute, and it grants a patent license. LibreYOLO vendors no OWLv2 model source of its own: LibreOWLv2 calls the Apache-2.0 `transformers` implementation, `Owlv2ForObjectDetection`, directly, and downloads the official checkpoints into a LibreYOLO-hosted mirror repository that preserves the upstream snapshot files.

Citation

@article{minderer2023scaling,
  title={Scaling Open-Vocabulary Object Detection},
  author={Matthias Minderer, Alexey Gritsenko, Neil Houlsby},
  journal={NeurIPS},
  year={2023},
}

Copied from the authors' citation block at github.com/google-research/scenic/blob/main/scenic/projects/owl_vit/README.md#references.

Verified against LibreYOLO v1.5.0. Support tables, checkpoints and benchmark numbers on this page are generated from the released library and the published weights, not written by hand.