Instructions to use Andron00e/CLIPForImageClassification-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Andron00e/CLIPForImageClassification-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Andron00e/CLIPForImageClassification-v1") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoProcessor, AutoModelForImageClassification processor = AutoProcessor.from_pretrained("Andron00e/CLIPForImageClassification-v1") model = AutoModelForImageClassification.from_pretrained("Andron00e/CLIPForImageClassification-v1") - Notebooks
- Google Colab
- Kaggle
changed model type from "clip_vision_model" to "clip"
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -17,6 +17,6 @@
|
|
| 17 |
"transformers_version": "4.35.2",
|
| 18 |
"vision_config": {
|
| 19 |
"dropout": 0.0,
|
| 20 |
-
"model_type": "
|
| 21 |
}
|
| 22 |
}
|
|
|
|
| 17 |
"transformers_version": "4.35.2",
|
| 18 |
"vision_config": {
|
| 19 |
"dropout": 0.0,
|
| 20 |
+
"model_type": "clip"
|
| 21 |
}
|
| 22 |
}
|