AI-Lab-Makerere/beans
Viewer • Updated • 1.3k • 7.83k • 46
How to use pwk666/Beans_disease_classficationv4 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="pwk666/Beans_disease_classficationv4")
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_classficationv4")
model = AutoModelForImageClassification.from_pretrained("pwk666/Beans_disease_classficationv4")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
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.0023 | 1.0 | 17 | 0.1371 | 0.9774 |
| 0.002 | 2.0 | 34 | 0.0993 | 0.9774 |
| 0.0234 | 3.0 | 51 | 0.0419 | 0.9925 |