Instructions to use wkcn/TinyCLIP-ViT-61M-32-Text-29M-LAION400M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wkcn/TinyCLIP-ViT-61M-32-Text-29M-LAION400M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="wkcn/TinyCLIP-ViT-61M-32-Text-29M-LAION400M") 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("wkcn/TinyCLIP-ViT-61M-32-Text-29M-LAION400M") model = AutoModelForZeroShotImageClassification.from_pretrained("wkcn/TinyCLIP-ViT-61M-32-Text-29M-LAION400M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
94cbbea | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:0c0670dfa6fbf32c3158ef57b10772d5c9668093bda676d78e1452268585d230
size 461571500
|