AI-Lab-Makerere/beans
Viewer • Updated • 1.3k • 8.95k • 45
How to use merve/beans-vit-224 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="merve/beans-vit-224")
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("merve/beans-vit-224")
model = AutoModelForImageClassification.from_pretrained("merve/beans-vit-224")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 |
|---|---|---|---|---|
| 1.0032 | 0.98 | 16 | 0.6540 | 0.8828 |
| 0.4711 | 1.97 | 32 | 0.4180 | 0.9297 |
| 0.3711 | 2.95 | 48 | 0.3256 | 0.9375 |
Base model
google/vit-base-patch16-224-in21k