Instructions to use kd13/Modern-MobileNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kd13/Modern-MobileNet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="kd13/Modern-MobileNet", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageClassification model = AutoModelForImageClassification.from_pretrained("kd13/Modern-MobileNet", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
"MobileNetForImageClassification"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
-
"AutoConfig": "configuration_mobilenet.
|
| 7 |
-
"AutoModelForImageClassification": "modeling_mobilenet.
|
| 8 |
},
|
| 9 |
"final_dropout": 0.5,
|
| 10 |
"block_dropout": 0.0,
|
|
|
|
| 3 |
"MobileNetForImageClassification"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
+
"AutoConfig": "configuration_mobilenet.MobileNetV1Config",
|
| 7 |
+
"AutoModelForImageClassification": "modeling_mobilenet.MobileNetV1ForImageClassification"
|
| 8 |
},
|
| 9 |
"final_dropout": 0.5,
|
| 10 |
"block_dropout": 0.0,
|