Instructions to use BAAI/AltCLIP-m18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/AltCLIP-m18 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="BAAI/AltCLIP-m18") 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-m18") model = AutoModelForZeroShotImageClassification.from_pretrained("BAAI/AltCLIP-m18") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 6ac1c6222763bd52eee81f9ace12293e464acda614f7059746dfd73830dc7ebc
- Size of remote file:
- 4.78 GB
- SHA256:
- 16f1e0d4c281e1c3e5690b44042b1520b2e259b23b8f1e4f23f22602bb1b0494
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.