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"], )# pip install -U transformers accelerate # 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
Commit History
-
Update README.md
Verified signature17788d7
-
Upload 6 files
b989a7b -
Delete special_tokens_map.json
f372c04 -
Delete tokenizer_config.json
3ad1276 -
Delete preprocessor_config.json
80c15ee -
Delete config.json
64bdd4d -
Delete sentencepiece.bpe.model
e2c78cc -
Upload pytorch_model.bin
delete the weights of text_model.roberta.pooler.dense.bias and text_model.roberta.pooler.dense.weightb0212c0 -
Delete pytorch_model.bin
ca9a63b
-
Update config.json
4d06f38
-
fix mismatch in text_config_dict
ca52245
-
Update README.md
ef54ab5 -
Update README.md
aefb768 -
Update README.md
6506e5f -
Update README.md
2466802 -
updated
BAAI-OpenPlatform71ef93f
-
Upload pytorch_model.bin
4d69167 -
Upload pytorch_model.bin
c26661c -
Create preprocessor_config.json
5a42e5f -
Delete pytorch_model.bin
03faca5 -
Update config.json
e32d985 -
Update README.md
3705fa7 -
uploaded img file
Signed-off-by: Anhforth <yanzhaodong2021@163.com>fb8dc97 -
Update README.md
82dd418 -
Update README.md
3e8c5fe
-
updated model desc
Signed-off-by: Anhforth <yanzhaodong2021@163.com>cbb73b8 -
added license
Signed-off-by: Anhforth <yanzhaodong2021@163.com>4c7ab2f -
updatde readme
Signed-off-by: Anhforth <yanzhaodong2021@163.com>86c77fb -
reorganiced struct
Signed-off-by: Anhforth <yanzhaodong2021@163.com>1ce16c2 -
updated text encoder files
Signed-off-by: Anhforth <yanzhaodong2021@163.com>5b2a99c -
initial commit
ef3dd32