Instructions to use Askaye/bird-identifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Askaye/bird-identifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Askaye/bird-identifier") 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("Askaye/bird-identifier") model = AutoModelForImageClassification.from_pretrained("Askaye/bird-identifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Askaye/bird-identifier: direct link, hf CLI and curl.
- Browser
- Download file 1.64 kB
-
https://huggingface.co/Askaye/bird-identifier/resolve/main/config.json
- Command line
-
hf download hf://Askaye/bird-identifier/config.json
-
curl -L -o config.json https://huggingface.co/Askaye/bird-identifier/resolve/main/config.json
1.64 kB
| { | |
| "architectures": [ | |
| "ViTForImageClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "dtype": "float32", | |
| "encoder_stride": 16, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "american-crow", | |
| "1": "american-goldfinch", | |
| "2": "bald-eagle", | |
| "3": "black-capped-chickadee", | |
| "4": "blue-jay", | |
| "5": "chipping-sparrow", | |
| "6": "common-loon", | |
| "7": "downy-woodpecker", | |
| "8": "hairy-woodpecker", | |
| "9": "merlin-falcon", | |
| "10": "mourning-dove", | |
| "11": "northern-cardinal", | |
| "12": "osprey", | |
| "13": "red-tailed-hawk", | |
| "14": "ruby-throated-hummingbird", | |
| "15": "ruffed-grouse", | |
| "16": "white-breasted-nuthatch" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "american-crow": 0, | |
| "american-goldfinch": 1, | |
| "bald-eagle": 2, | |
| "black-capped-chickadee": 3, | |
| "blue-jay": 4, | |
| "chipping-sparrow": 5, | |
| "common-loon": 6, | |
| "downy-woodpecker": 7, | |
| "hairy-woodpecker": 8, | |
| "merlin-falcon": 9, | |
| "mourning-dove": 10, | |
| "northern-cardinal": 11, | |
| "osprey": 12, | |
| "red-tailed-hawk": 13, | |
| "ruby-throated-hummingbird": 14, | |
| "ruffed-grouse": 15, | |
| "white-breasted-nuthatch": 16 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "vit", | |
| "num_attention_heads": 12, | |
| "num_channels": 3, | |
| "num_hidden_layers": 12, | |
| "patch_size": 16, | |
| "pooler_act": "tanh", | |
| "pooler_output_size": 768, | |
| "problem_type": "single_label_classification", | |
| "qkv_bias": true, | |
| "transformers_version": "4.56.0" | |
| } | |