Instructions to use OFA-Sys/chinese-clip-vit-huge-patch14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OFA-Sys/chinese-clip-vit-huge-patch14 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-huge-patch14") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("OFA-Sys/chinese-clip-vit-huge-patch14") model = AutoModelForZeroShotImageClassification.from_pretrained("OFA-Sys/chinese-clip-vit-huge-patch14", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
f785db3
1
Parent(s): baf7985
Upload clip_cn_vit-h-14.pt
Browse files- clip_cn_vit-h-14.pt +3 -0
clip_cn_vit-h-14.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4549b1a9775db38806dfa398e8e97be4e27299b84b71250d8d2ef0472e708aee
|
| 3 |
+
size 3830716726
|