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 -2
config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
"depths": [
|
| 6 |
3,
|
|
@@ -2021,7 +2021,7 @@
|
|
| 2021 |
"zucchini, courgette": 939
|
| 2022 |
},
|
| 2023 |
"layer_type": "bottleneck",
|
| 2024 |
-
"model_type": "
|
| 2025 |
"num_channels": 3,
|
| 2026 |
"torch_dtype": "float32",
|
| 2027 |
"transformers_version": "4.18.0.dev0"
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"EfficientNetForImageClassification"
|
| 4 |
],
|
| 5 |
"depths": [
|
| 6 |
3,
|
|
|
|
| 2021 |
"zucchini, courgette": 939
|
| 2022 |
},
|
| 2023 |
"layer_type": "bottleneck",
|
| 2024 |
+
"model_type": "efficientnet",
|
| 2025 |
"num_channels": 3,
|
| 2026 |
"torch_dtype": "float32",
|
| 2027 |
"transformers_version": "4.18.0.dev0"
|