Instructions to use google/owlvit-base-patch16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/owlvit-base-patch16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-object-detection", model="google/owlvit-base-patch16")# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotObjectDetection processor = AutoProcessor.from_pretrained("google/owlvit-base-patch16") model = AutoModelForZeroShotObjectDetection.from_pretrained("google/owlvit-base-patch16") - Notebooks
- Google Colab
- Kaggle
Alara Dirik commited on
Commit ·
487edc7
1
Parent(s): 58f158d
Update config.json
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
"logit_scale_init_value": 2.6592,
|
| 8 |
"model_type": "owlvit",
|
| 9 |
"projection_dim": 512,
|
|
|
|
| 10 |
"text_config": {
|
| 11 |
"_name_or_path": "",
|
| 12 |
"add_cross_attention": false,
|
|
|
|
| 7 |
"logit_scale_init_value": 2.6592,
|
| 8 |
"model_type": "owlvit",
|
| 9 |
"projection_dim": 512,
|
| 10 |
+
"return_dict": true,
|
| 11 |
"text_config": {
|
| 12 |
"_name_or_path": "",
|
| 13 |
"add_cross_attention": false,
|