Instructions to use Dharma20/vit-base-fruits-360 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dharma20/vit-base-fruits-360 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Dharma20/vit-base-fruits-360") 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("Dharma20/vit-base-fruits-360") model = AutoModelForImageClassification.from_pretrained("Dharma20/vit-base-fruits-360") - Notebooks
- Google Colab
- Kaggle
vit-base-fruits-360
This model is a fine-tuned version of google/vit-base-patch16-224 on the PedroSampaio/fruits-360 dataset. It achieves the following results on the evaluation set:
- Loss: 0.1315
- Accuracy: 0.9919
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0003
- train_batch_size: 128
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 1
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.1353 | 1.0 | 424 | 0.1318 | 0.9928 |
Framework versions
- Transformers 4.44.2
- Pytorch 2.5.0+cu121
- Datasets 3.0.2
- Tokenizers 0.19.1
- Downloads last month
- -
Model tree for Dharma20/vit-base-fruits-360
Base model
google/vit-base-patch16-224