Image Classification
Transformers
PyTorch
TensorBoard
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use sakethchalla/my_isl_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sakethchalla/my_isl_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="sakethchalla/my_isl_model") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("sakethchalla/my_isl_model") model = AutoModelForImageClassification.from_pretrained("sakethchalla/my_isl_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from sakethchalla/my_isl_model: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/sakethchalla/my_isl_model/resolve/main/config.json
- Command line
-
hf download hf://sakethchalla/my_isl_model/config.json
-
curl -L -o config.json https://huggingface.co/sakethchalla/my_isl_model/resolve/main/config.json
1.36 kB
| { | |
| "_name_or_path": "google/vit-base-patch16-224-in21k", | |
| "architectures": [ | |
| "ViTForImageClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "encoder_stride": 16, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "a", | |
| "1": "b", | |
| "10": "m", | |
| "11": "n", | |
| "12": "o", | |
| "13": "p", | |
| "14": "q", | |
| "15": "r", | |
| "16": "s", | |
| "17": "t", | |
| "18": "u", | |
| "19": "v", | |
| "2": "c", | |
| "20": "w", | |
| "21": "x", | |
| "22": "y", | |
| "23": "z", | |
| "3": "d", | |
| "4": "e", | |
| "5": "f", | |
| "6": "g", | |
| "7": "i", | |
| "8": "k", | |
| "9": "l" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "a": "0", | |
| "b": "1", | |
| "c": "2", | |
| "d": "3", | |
| "e": "4", | |
| "f": "5", | |
| "g": "6", | |
| "i": "7", | |
| "k": "8", | |
| "l": "9", | |
| "m": "10", | |
| "n": "11", | |
| "o": "12", | |
| "p": "13", | |
| "q": "14", | |
| "r": "15", | |
| "s": "16", | |
| "t": "17", | |
| "u": "18", | |
| "v": "19", | |
| "w": "20", | |
| "x": "21", | |
| "y": "22", | |
| "z": "23" | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "vit", | |
| "num_attention_heads": 12, | |
| "num_channels": 3, | |
| "num_hidden_layers": 12, | |
| "patch_size": 16, | |
| "problem_type": "single_label_classification", | |
| "qkv_bias": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.27.4" | |
| } | |