Zero-Shot Object Detection
ZeroModels
Keras
PyTorch
JAX
TensorFlow
owlvit
open-vocabulary
object-detection
Instructions to use zeromodels/owlvit-large-patch14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/owlvit-large-patch14 with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/owlvit-large-patch14") - Keras
How to use zeromodels/owlvit-large-patch14 with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://zeromodels/owlvit-large-patch14") - Notebooks
- Google Colab
- Kaggle
Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge)
6352875 verified Download zm_preprocessor.json from zeromodels/owlvit-large-patch14: direct link, hf CLI and curl.
- Browser
- Download file 556 Bytes
-
https://huggingface.co/zeromodels/owlvit-large-patch14/resolve/main/zm_preprocessor.json
- Command line
-
hf download hf://zeromodels/owlvit-large-patch14/zm_preprocessor.json
-
curl -L -o zm_preprocessor.json https://huggingface.co/zeromodels/owlvit-large-patch14/resolve/main/zm_preprocessor.json
556 Bytes
| { | |
| "library_name": "zeromodels", | |
| "zeromodels_version": "1.1.3", | |
| "preprocessor_module": "zeromodels.models.owlvit", | |
| "preprocessor_class": "OwlViTImageProcessor", | |
| "variant": "owlvit-large-patch14", | |
| "size": { | |
| "height": 840, | |
| "width": 840 | |
| }, | |
| "resample": "bicubic", | |
| "do_rescale": true, | |
| "rescale_factor": 0.00392156862745098, | |
| "do_normalize": true, | |
| "image_mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "image_std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ], | |
| "return_tensor": true, | |
| "data_format": null | |
| } |