A2H0H0R1/plant-disease
Viewer โข Updated โข 70.3k โข 19 โข 2
How to use A2H0H0R1/mobilenet_v2_1.0_224-plant-disease2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="A2H0H0R1/mobilenet_v2_1.0_224-plant-disease2")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("A2H0H0R1/mobilenet_v2_1.0_224-plant-disease2")
model = AutoModelForImageClassification.from_pretrained("A2H0H0R1/mobilenet_v2_1.0_224-plant-disease2", device_map="auto")# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("A2H0H0R1/mobilenet_v2_1.0_224-plant-disease2")
model = AutoModelForImageClassification.from_pretrained("A2H0H0R1/mobilenet_v2_1.0_224-plant-disease2", device_map="auto")This model is a fine-tuned version of google/mobilenet_v2_1.0_224 on the imagefolder dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.2171 | 1.0 | 158 | 1.0595 | 0.8188 |
| 0.4082 | 2.0 | 316 | 0.3154 | 0.9387 |
| 0.295 | 3.0 | 474 | 0.2191 | 0.9555 |
| 0.2266 | 4.0 | 633 | 0.1747 | 0.9595 |
| 0.2168 | 5.0 | 791 | 0.2135 | 0.9499 |
| 0.2091 | 5.99 | 948 | 0.1510 | 0.9639 |
Base model
google/mobilenet_v2_1.0_224
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="A2H0H0R1/mobilenet_v2_1.0_224-plant-disease2") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")