Downloads · 30 days
7
1% of all-time downloads
DunnBC22/vit-base-patch16-224-in21k_vegetables_clf
vit-base-patch16-224-in21k_vegetables_clf is a image classification model from DunnBC22. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of google/vit-base-patch16-224-in21k. It achieves the following results on the evaluation set: - Loss: 0.0014 - Accuracy: 1.0 - F1 - Weighted: 1.0 - Micro: 1.0 - Macro: 1.0 - Recall…
Downloads · 30 days
7
1% of all-time downloads
All-time downloads
1K
Public
Repo size
1.4 GB
Likes
5
Public
Click a slice to open those files.
.bin343 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of google/vit-base-patch16-224-in21k. It achieves the following results on the evaluation set:
This is a multiclass image classification model of different vegetables.
For more information on how it was created, check out the following link: https://github.com/DunnBC22/Vision_Audio_and_Multimodal_Projects/blob/main/Computer%20Vision/Image%20Classification/Multiclass%20Classification/Vegetable%20Image%20Classification/Vegetables_ViT.ipynb
This model is intended to demonstrate my ability to solve a complex problem using technology.
Dataset Source: https://www.kaggle.com/datasets/misrakahmed/vegetable-image-dataset
Sample Images From Dataset:

The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Weighted F1 | Micro F1 | Macro F1 | Weighted Recall | Micro Recall | Macro Recall | Weighted Precision | Micro Precision | Macro Precision |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.2079 | 1.0 | 938 | 0.0193 | 0.996 | 0.9960 | 0.996 | 0.9960 | 0.996 | 0.996 | 0.9960 | 0.9960 | 0.996 | 0.9960 |
| 0.0154 | 2.0 | 1876 | 0.0068 | 0.9987 | 0.9987 | 0.9987 | 0.9987 | 0.9987 | 0.9987 | 0.9987 | 0.9987 | 0.9987 | 0.9987 |
| 0.0018 | 3.0 | 2814 | 0.0014 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
This model is a fine-tuned derivative of a pretrained model. Users must comply with the original model license.
This model was fine-tuned on third-party datasets which may have separate licenses or usage restrictions.