Instructions to use flax-community/clip-rsicd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flax-community/clip-rsicd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="flax-community/clip-rsicd") 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("flax-community/clip-rsicd") model = AutoModelForZeroShotImageClassification.from_pretrained("flax-community/clip-rsicd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from flax-community/clip-rsicd: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/flax-community/clip-rsicd/resolve/8357af47297adf43a37a88e424a7cfffc04ec95c/special_tokens_map.json
- Command line
-
hf download hf://flax-community/clip-rsicd@8357af47297adf43a37a88e424a7cfffc04ec95c/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/flax-community/clip-rsicd/resolve/8357af47297adf43a37a88e424a7cfffc04ec95c/special_tokens_map.json
389 Bytes
| {"bos_token": {"content": "<|startoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": "<|endoftext|>"} |