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")# 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 config.json from thelabel/image-labeling: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/thelabel/image-labeling/resolve/main/config.json
- Command line
-
hf download hf://thelabel/image-labeling/config.json
-
curl -L -o config.json https://huggingface.co/thelabel/image-labeling/resolve/main/config.json
1.03 kB
| { | |
| "architectures": [ | |
| "CLIPModel" | |
| ], | |
| "class_labels_mapping": { | |
| "Ghost > Studio > bottom > front": 12, | |
| "Ghost > Studio > top > front": 11, | |
| "Ghost > Studio > zoomed > front": 10, | |
| "Human > Indoor > half-body > back": 9, | |
| "Human > Indoor > half-body > front": 8, | |
| "Human > Studio > full-body > back": 7, | |
| "Human > Studio > full-body > front": 6, | |
| "Human > Studio > full-body > side": 5, | |
| "Human > Studio > half-body > back": 4, | |
| "Human > Studio > half-body > front": 3, | |
| "Human > Studio > half-body > side": 2, | |
| "Human > Studio > zoomed > front": 1, | |
| "Human > Studio > zoomed > side": 0 | |
| }, | |
| "initializer_factor": 1.0, | |
| "logit_scale_init_value": 2.6592, | |
| "model_type": "clip", | |
| "projection_dim": 512, | |
| "text_config": { | |
| "bos_token_id": 0, | |
| "dropout": 0.0, | |
| "eos_token_id": 2, | |
| "model_type": "clip_text_model" | |
| }, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.41.2", | |
| "vision_config": { | |
| "dropout": 0.0, | |
| "model_type": "clip_vision_model" | |
| } | |
| } | |