AI-Lab-Makerere/beans
Viewer • Updated • 1.3k • 8.67k • 46
How to use sai4444/vit-finetuned-beans with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="sai4444/vit-finetuned-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("sai4444/vit-finetuned-beans")
model = AutoModelForImageClassification.from_pretrained("sai4444/vit-finetuned-beans", device_map="auto")This model is a fine-tuned version of google/vit-base-patch16-224 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 |
|---|---|---|---|---|
| No log | 1.0 | 17 | 0.0990 | 0.9624 |
| No log | 2.0 | 34 | 0.0396 | 0.9850 |
| 0.18 | 3.0 | 51 | 0.0511 | 0.9850 |
Base model
google/vit-base-patch16-224