AI SeedbankHelp preserve open and free AI for humanity's future

← All models

google_owlv2-base-patch16-ensemble

google · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: apache-2.0 tags:

  • vision
  • zero-shot-object-detection inference: false

Model Card: OWLv2

Model Details

The OWLv2 model (short for Open-World Localization) was proposed in Scaling Open-Vocabulary Object Detection by Matthias Minderer, Alexey Gritsenko, Neil Houlsby. OWLv2, like OWL-ViT, is a zero-shot text-conditioned object detection model that can be used to query an image with one or multiple text queries.

The model uses CLIP as its multi-modal backbone, with a ViT-like Transformer to get visual features and a causal language model to get the text features. To use CLIP for detection, OWL-ViT removes the final token pooling layer of the vision model and attaches a lightweight classification and box head to each transformer output token. Open-vocabulary classification is enabled by replacing the fixed classification layer weights with the class-name embeddings obtained from the text model. The authors first train CLIP from scratch and fine-tune it end-to-end with the classification and box heads on standard detection datasets using a bipartite matching loss. One or multiple text queries per image can be used to perform zero-shot text-conditioned object detection.

Model Date

June 2023

Model Type

The model uses a CLIP backbone with a ViT-B/16 Transformer architecture as an image encoder and uses a masked self-attention Transformer as a text encoder. These encoders are trained to maximize the similarity of (image, text) pairs via a contrastive loss. The CLIP backbone is trained from scratch and fine-tuned together with the box and class prediction heads with an object detection objective.

Documents

  • OWLv2 Paper

Use with Transformers

import requests
from PIL import Image
import torch

from transformers import Owlv2Processor, Owlv2ForObjectDetection

processor = Owlv2Processor.from_pretrained("google/owlv2-base-patch16-ensemble")
model = Owlv2ForObjectDetection.from_pretrained("google/owlv2-base-patch16-ensemble")

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
texts = [["a photo of a cat", "a photo of a dog"]]
inputs = processor(text=texts, images=image, return_tensors="pt")

with torch.no_grad():
  outputs = model(**inputs)

# Target image sizes (height, width) to rescale box predictions [batch_size, 2]
target_sizes = torch.Tensor([image.size[::-1]])
# Convert outputs (bounding boxes and class logits) to Pascal VOC Format (xmin, ymin, xmax, ymax)
results = processor.post_process_object_detection(outputs=outputs, target_sizes=target_sizes, threshold=0.1)
i = 0  # Retrieve predictions for the first image for the corresponding text queries
text = texts[i]
boxes, scores, labels = results[i]["boxes"], results[i]["scores"], results[i]["labels"]
for box, score, label in zip(boxes, scores, labels):
    box = [round(i, 2) for i in box.tolist()]
    print(f"Detected {text[label]} with confidence {round(score.item(), 3)} at location {box}")

Model Use

Intended Use

The model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, text-conditioned object detection. We also hope it can be used for interdisciplinary studies of the potential impact of such models, especially in areas that commonly require identifying objects whose label is unavailable during training.

Primary intended uses

The primary intended users of these models are AI researchers.

We primarily imagine the model will be used by researchers to better understand robustness, generalization, and other capabilities, biases, and constraints of computer vision models.

Data

The CLIP backbone of the model was trained on publicly available image-caption data. This was done through a combination of crawling a handful of websites and using commonly-used pre-existing image datasets such as YFCC100M. A large portion of the data comes from our crawling of the internet. This means that the data is more representative of people and societies most connected to the internet. The prediction heads of OWL-ViT, along with the CLIP backbone, are fine-tuned on publicly available object detection datasets such as COCO and OpenImages.

(to be updated for v2)

BibTeX entry and citation info

@misc{minderer2023scaling,
      title={Scaling Open-Vocabulary Object Detection}, 
      author={Matthias Minderer and Alexey Gritsenko and Neil Houlsby},
      year={2023},
      eprint={2306.09683},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:cffc11dd75f42841cfed3f9f3f36be194ad34574&dn=google_owlv2-base-patch16-ensemble

Open magnet in torrent client · infohash cffc11dd75f42841cfed3f9f3f36be194ad34574

Files & hashes

PathSizesha1sha256
README.md4.7 KB (4,838 B)f9b9d65cdb5b30e39154300969f765e81bdd9f057c7426bc5ec939a42d1f96fb093031b6263400cceac4129ebb941a0c8c11b9b9
added_tokens.json67 B (67 B)5ff4ac542d5e800dd3aadbdcda354868b5f24ddde5dc0da35d20111e8ff3fdfc03682beca23d5f94ed74331bce81786b2636a24f
config.json414 B (414 B)dfc1049705d082052a81e7d18bde6d11fc137a0dba9df8c25a4b8461887dd0a93d9252c9cd84697fe8d49a9d8794ce409af9acb2
merges.txt512.3 KB (524,619 B)76e821f1b6f0a9709293c3b6b51ed90980b3166b9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a
model.safetensors591.2 MB (619,918,824 B)5a47476d5dd59ebac5f9a7912b651ae1656d9d0ce1e130b9e404cf91a75ad45644c1da9d7fa5284085eecc864266a6923efb99e7
preprocessor_config.json425 B (425 B)b24bfd579e8682df31c7794a3e1c3ef6a9a22a7acf3e396635b797ee1a464e1b2836e98748f8edac19e89aaa2c93b55ac15b0064
pytorch_model.bin591.3 MB (620,006,741 B)2e476d5e752fa5d408f2820e16a8c96e48e5d53869feda8b53b1c9e2a85ae756bf58c120c3c1b4b4a4d97d4876578c1809a63d76
special_tokens_map.json121 B (121 B)39808ac074d69141c0b2f065d16f56dfa5194cacd6e2b9cf664efbad2d22998b8d3da986abcbeed3e0825ad33605c9401f9cf73e
tokenizer_config.json1.1 KB (1,100 B)1c4c373d81adc0c63bb3368a89f4a92574395c2cb55cda6198e152ded427c8a9b3faf1cccf27a7fa080697a62f6ff143f511f44f
vocab.json1.0 MB (1,059,962 B)469be27c5c010538f845f518c4f5e8574c78f7c8e089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349

Cite this release

Canonical URL
https://aiseedbank.org/models/google_owlv2-base-patch16-ensemble/
Slug
google_owlv2-base-patch16-ensemble
Infohash
cffc11dd75f42841cfed3f9f3f36be194ad34574
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: google_owlv2-base-patch16-ensemble.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorygoogle/owlv2-base-patch16-ensemble
Revision (pinned)cfd3195ba4ea9592eec887ded089f4c08eff231d
Fetched at2026-09-04T00:23:46Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T00:23:59Z

apache-2.01.16 GB (1,241,517,111 bytes)transformerspytorchsafetensorsowlv2zero-shot-object-detectionvisionpaper: 2306.09683