AI-Lab-Makerere/beans
Viewer • Updated • 1.3k • 8.81k • 45
How to use saiharsha/vit-base-beans with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="saiharsha/vit-base-beans")
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("saiharsha/vit-base-beans")
model = AutoModelForImageClassification.from_pretrained("saiharsha/vit-base-beans")This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the beans 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.672 | 1.0 | 44 | 0.5672 | 0.9398 |
| 0.411 | 2.0 | 88 | 0.3027 | 0.9699 |
| 0.2542 | 3.0 | 132 | 0.2078 | 0.9699 |
| 0.1886 | 4.0 | 176 | 0.1882 | 0.9699 |
| 0.1931 | 5.0 | 220 | 0.1824 | 0.9699 |