AI-Lab-Makerere/beans
Viewer • Updated • 1.3k • 8.81k • 45
How to use pwk666/Beans_disease_classfication with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="pwk666/Beans_disease_classfication")
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("pwk666/Beans_disease_classfication")
model = AutoModelForImageClassification.from_pretrained("pwk666/Beans_disease_classfication")This model is a fine-tuned version of google/vit-base-patch16-224-in21k on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
Class Label Mappings: { "angular_leaf_spot": 0, "bean_rust": 1, "healthy": 2, }
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 6.5716 | 0.98 | 16 | 5.5579 | 0.7734 |
| 5.1591 | 1.97 | 32 | 4.9286 | 0.9062 |
| 4.8776 | 2.95 | 48 | 4.7350 | 0.8984 |