Instructions to use thelabel/image-labeling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thelabel/image-labeling with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="thelabel/image-labeling") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("thelabel/image-labeling") model = AutoModelForZeroShotImageClassification.from_pretrained("thelabel/image-labeling", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from thelabel/image-labeling: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/thelabel/image-labeling/resolve/61f80ef06aecf856df2437814babbf07f271c000/special_tokens_map.json
- Command line
-
hf download hf://thelabel/image-labeling@61f80ef06aecf856df2437814babbf07f271c000/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/thelabel/image-labeling/resolve/61f80ef06aecf856df2437814babbf07f271c000/special_tokens_map.json
588 Bytes
| { | |
| "bos_token": { | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |