Zero-Shot Image Classification
Transformers
PyTorch
Chinese
altclip
Zero-Shot Image Classification
bilingual
en
English
Chinese
Instructions to use BAAI/AltCLIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/AltCLIP with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="BAAI/AltCLIP") 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("BAAI/AltCLIP") model = AutoModelForZeroShotImageClassification.from_pretrained("BAAI/AltCLIP", device_map="auto") - Notebooks
- Google Colab
- Kaggle
updated model desc
Browse filesSigned-off-by: Anhforth <yanzhaodong2021@163.com>
README.md
CHANGED
|
@@ -27,10 +27,9 @@ extra_gated_fields:
|
|
| 27 |
|
| 28 |
# AltCLIPTextEncoder
|
| 29 |
|
| 30 |
-
|
| 31 |
-
-
|
| 32 |
-
|
| 33 |
-
- Size: 3.22G
|
| 34 |
|
| 35 |
## 简介 Brief Introduction
|
| 36 |
|
|
|
|
| 27 |
|
| 28 |
# AltCLIPTextEncoder
|
| 29 |
|
| 30 |
+
| 名称 Name | 任务 Task | 语言 Language(s) | 模型 Model | Github |
|
| 31 |
+
|:------------------:|:----------:|:-------------------:|:--------:|:------:|
|
| 32 |
+
| AltCLIPTextENcoder | 自然语言处理 NLP | 中英文 Chinese&English | CLIP | [FlaAI](https://github.com/FlagAI-Open/FlagAI) |
|
|
|
|
| 33 |
|
| 34 |
## 简介 Brief Introduction
|
| 35 |
|