Instructions to use therealcyberlord/bigcatvit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use therealcyberlord/bigcatvit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="therealcyberlord/bigcatvit") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("therealcyberlord/bigcatvit") model = AutoModelForImageClassification.from_pretrained("therealcyberlord/bigcatvit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from therealcyberlord/bigcatvit: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/therealcyberlord/bigcatvit/resolve/6e1d2cd3d07fe925439624211b3e7bbb1b637b93/config.json
- Command line
-
hf download hf://therealcyberlord/bigcatvit@6e1d2cd3d07fe925439624211b3e7bbb1b637b93/config.json
-
curl -L -o config.json https://huggingface.co/therealcyberlord/bigcatvit/resolve/6e1d2cd3d07fe925439624211b3e7bbb1b637b93/config.json
1.07 kB
| { | |
| "_name_or_path": "google/vit-base-patch16-224", | |
| "architectures": [ | |
| "ViTForImageClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "encoder_stride": 16, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "CHEETAH", | |
| "1": "LIONS", | |
| "2": "SNOW LEOPARD", | |
| "3": "CARACAL", | |
| "4": "TIGER", | |
| "5": "CLOUDED LEOPARD", | |
| "6": "PUMA", | |
| "7": "JAGUAR", | |
| "8": "OCELOT", | |
| "9": "AFRICAN LEOPARD" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "AFRICAN LEOPARD": "9", | |
| "CARACAL": "3", | |
| "CHEETAH": "0", | |
| "CLOUDED LEOPARD": "5", | |
| "JAGUAR": "7", | |
| "LIONS": "1", | |
| "OCELOT": "8", | |
| "PUMA": "6", | |
| "SNOW LEOPARD": "2", | |
| "TIGER": "4" | |
| }, | |
| "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.26.1" | |
| } | |