Instructions to use google/owlvit-base-patch32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/owlvit-base-patch32 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-object-detection", model="google/owlvit-base-patch32")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotObjectDetection processor = AutoProcessor.from_pretrained("google/owlvit-base-patch32") model = AutoModelForZeroShotObjectDetection.from_pretrained("google/owlvit-base-patch32", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download merges.txt from google/owlvit-base-patch32: direct link, hf CLI and curl.
- Browser
- Download file 525 kB
-
https://huggingface.co/google/owlvit-base-patch32/resolve/main/merges.txt
- Command line
-
hf download hf://google/owlvit-base-patch32/merges.txt
-
curl -L -o merges.txt https://huggingface.co/google/owlvit-base-patch32/resolve/main/merges.txt
525 kB
File too large to display, you can check the raw version instead.