Instructions to use cdb-0/my_awesome_food_model-full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cdb-0/my_awesome_food_model-full with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="cdb-0/my_awesome_food_model-full") 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("cdb-0/my_awesome_food_model-full") model = AutoModelForImageClassification.from_pretrained("cdb-0/my_awesome_food_model-full") - Notebooks
- Google Colab
- Kaggle
my_awesome_food_model-full
This model is a fine-tuned version of google/vit-base-patch16-224-in21k on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 1.0707
- Accuracy: 0.7953
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: 5e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 64
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 0.1
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.9844 | 1.0 | 947 | 1.9589 | 0.7267 |
| 1.0701 | 2.0 | 1894 | 1.2317 | 0.7788 |
| 0.9445 | 3.0 | 2841 | 1.0707 | 0.7953 |
Framework versions
- Transformers 5.8.1
- Pytorch 2.12.0+cu132
- Datasets 3.6.0
- Tokenizers 0.22.2
- Downloads last month
- 1
Model tree for cdb-0/my_awesome_food_model-full
Base model
google/vit-base-patch16-224-in21k