Instructions to use maazie/EfficientNetB0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maazie/EfficientNetB0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="maazie/EfficientNetB0") 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("maazie/EfficientNetB0") model = AutoModelForImageClassification.from_pretrained("maazie/EfficientNetB0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -3
config.json
CHANGED
|
@@ -20,7 +20,6 @@
|
|
| 20 |
896,
|
| 21 |
1024
|
| 22 |
],
|
| 23 |
-
"num_classes": 1000,
|
| 24 |
|
| 25 |
"id2label": {
|
| 26 |
"0": "tench, Tinca tinca",
|
|
@@ -2025,9 +2024,9 @@
|
|
| 2025 |
"zebra": 340,
|
| 2026 |
"zucchini, courgette": 939
|
| 2027 |
},
|
| 2028 |
-
"layer_type": "
|
| 2029 |
"model_type": "efficientnet",
|
| 2030 |
"num_channels": 3,
|
| 2031 |
-
"
|
| 2032 |
"transformers_version": "4.18.0.dev0"
|
| 2033 |
}
|
|
|
|
| 20 |
896,
|
| 21 |
1024
|
| 22 |
],
|
|
|
|
| 23 |
|
| 24 |
"id2label": {
|
| 25 |
"0": "tench, Tinca tinca",
|
|
|
|
| 2024 |
"zebra": 340,
|
| 2025 |
"zucchini, courgette": 939
|
| 2026 |
},
|
| 2027 |
+
"layer_type": "efficient",
|
| 2028 |
"model_type": "efficientnet",
|
| 2029 |
"num_channels": 3,
|
| 2030 |
+
"dtype": "float32",
|
| 2031 |
"transformers_version": "4.18.0.dev0"
|
| 2032 |
}
|