Instructions to use google/owlv2-base-patch16-ensemble with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/owlv2-base-patch16-ensemble with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-object-detection", model="google/owlv2-base-patch16-ensemble")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotObjectDetection processor = AutoProcessor.from_pretrained("google/owlv2-base-patch16-ensemble") model = AutoModelForZeroShotObjectDetection.from_pretrained("google/owlv2-base-patch16-ensemble", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from google/owlv2-base-patch16-ensemble: direct link, hf CLI and curl.
- Browser
- Download file 121 Bytes
-
https://huggingface.co/google/owlv2-base-patch16-ensemble/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://google/owlv2-base-patch16-ensemble/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/google/owlv2-base-patch16-ensemble/resolve/main/special_tokens_map.json
121 Bytes
| { | |
| "bos_token": "<|startoftext|>", | |
| "eos_token": "<|endoftext|>", | |
| "pad_token": "!", | |
| "unk_token": "<|endoftext|>" | |
| } | |