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") - Notebooks
- Google Colab
- Kaggle
Add metadata for dataset used to train model
#2
by davanstrien HF Staff - opened
README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
---
|
| 2 |
language: zh
|
| 3 |
license: creativeml-openrail-m
|
| 4 |
-
|
|
|
|
| 5 |
tags:
|
| 6 |
- stable-diffusion
|
| 7 |
- stable-diffusion-diffusers
|
|
|
|
| 1 |
---
|
| 2 |
language: zh
|
| 3 |
license: creativeml-openrail-m
|
| 4 |
+
datasets:
|
| 5 |
+
- laion/laion2B-en
|
| 6 |
tags:
|
| 7 |
- stable-diffusion
|
| 8 |
- stable-diffusion-diffusers
|