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
Commit History
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 b0212c0
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 71ef93f
BAAI-OpenPlatform commited on