Image Classification
Transformers
Safetensors
English
vit
vision
biology
ecology
phenology
plants
plant-phenology
iNaturalist
Eval Results (legacy)
Instructions to use phenobase/phenovision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use phenobase/phenovision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="phenobase/phenovision") 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("phenobase/phenovision") model = AutoModelForImageClassification.from_pretrained("phenobase/phenovision", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add id2label [fruit, flower] + multi_label_classification problem_type
Browse files- config.json +10 -0
config.json
CHANGED
|
@@ -7,17 +7,27 @@
|
|
| 7 |
"hidden_act": "gelu",
|
| 8 |
"hidden_dropout_prob": 0.0,
|
| 9 |
"hidden_size": 1024,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"image_size": 224,
|
| 11 |
"initializer_range": 0.02,
|
| 12 |
"intermediate_size": 4096,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"layer_norm_eps": 1e-12,
|
| 14 |
"model_type": "vit",
|
| 15 |
"num_attention_heads": 16,
|
| 16 |
"num_channels": 3,
|
| 17 |
"num_hidden_layers": 24,
|
|
|
|
| 18 |
"patch_size": 16,
|
| 19 |
"pooler_act": "tanh",
|
| 20 |
"pooler_output_size": 768,
|
|
|
|
| 21 |
"qkv_bias": true,
|
| 22 |
"torch_dtype": "float32",
|
| 23 |
"transformers_version": "4.52.4"
|
|
|
|
| 7 |
"hidden_act": "gelu",
|
| 8 |
"hidden_dropout_prob": 0.0,
|
| 9 |
"hidden_size": 1024,
|
| 10 |
+
"id2label": {
|
| 11 |
+
"0": "fruit",
|
| 12 |
+
"1": "flower"
|
| 13 |
+
},
|
| 14 |
"image_size": 224,
|
| 15 |
"initializer_range": 0.02,
|
| 16 |
"intermediate_size": 4096,
|
| 17 |
+
"label2id": {
|
| 18 |
+
"fruit": 0,
|
| 19 |
+
"flower": 1
|
| 20 |
+
},
|
| 21 |
"layer_norm_eps": 1e-12,
|
| 22 |
"model_type": "vit",
|
| 23 |
"num_attention_heads": 16,
|
| 24 |
"num_channels": 3,
|
| 25 |
"num_hidden_layers": 24,
|
| 26 |
+
"num_labels": 2,
|
| 27 |
"patch_size": 16,
|
| 28 |
"pooler_act": "tanh",
|
| 29 |
"pooler_output_size": 768,
|
| 30 |
+
"problem_type": "multi_label_classification",
|
| 31 |
"qkv_bias": true,
|
| 32 |
"torch_dtype": "float32",
|
| 33 |
"transformers_version": "4.52.4"
|