Instructions to use rbanfield/clip-vit-large-patch14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rbanfield/clip-vit-large-patch14 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="rbanfield/clip-vit-large-patch14") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("rbanfield/clip-vit-large-patch14") model = AutoModelForZeroShotImageClassification.from_pretrained("rbanfield/clip-vit-large-patch14", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update handler.py
418414b -
Update handler.py
8182cb1
-
Another GPU test
4dbb20c -
Try enabling GPU if available
e62633b -
Code is working
3c0b02a -
continue debugging adventures
e36f852 -
debugging error not seen locally
eddf2f6 -
Copy/paste error
76292e7 -
"inputs" is required
8e0a4cd -
Upload 2 files
Upload a handler.py and requirements.txt to run on inference endpointsb926327
-
Duplicate openai/clip-vit-large-patch14
ab71b31 -
initial commit
b3d0d90