AI-Lab-Makerere/beans
Viewer • Updated • 1.3k • 8.81k • 45
How to use nickmuchi/vit-base-beans with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="nickmuchi/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("nickmuchi/vit-base-beans")
model = AutoModelForImageClassification.from_pretrained("nickmuchi/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.1166 | 1.54 | 100 | 0.0764 | 0.9850 |
| 0.1607 | 3.08 | 200 | 0.2114 | 0.9398 |
| 0.0067 | 4.62 | 300 | 0.0692 | 0.9774 |
| 0.005 | 6.15 | 400 | 0.0944 | 0.9624 |
| 0.0043 | 7.69 | 500 | 0.0505 | 0.9850 |
Base model
google/vit-base-patch16-224-in21k