Instructions to use OFA-Sys/chinese-clip-vit-large-patch14-336px with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OFA-Sys/chinese-clip-vit-large-patch14-336px with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="OFA-Sys/chinese-clip-vit-large-patch14-336px") 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("OFA-Sys/chinese-clip-vit-large-patch14-336px") model = AutoModelForZeroShotImageClassification.from_pretrained("OFA-Sys/chinese-clip-vit-large-patch14-336px", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
567e85f
-
Update README.md
6102f52
-
Update README.md
fd45894 -
Update README.md
72e6325
-
Upload files
f029f78 -
Create config.json
f3de0ec
-
Upload clip_cn_vit-l-14-336.pt
f45aa8e -
Update README.md
81fe254 -
initial commit
925d061