Instructions to use Dagachaco/vit-waste-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dagachaco/vit-waste-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Dagachaco/vit-waste-finetuned") 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("Dagachaco/vit-waste-finetuned") model = AutoModelForImageClassification.from_pretrained("Dagachaco/vit-waste-finetuned") - Notebooks
- Google Colab
- Kaggle
vit-waste-finetuned
This model is a fine-tuned version of google/vit-base-patch16-224 on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.2583
- Accuracy: 0.9387
- F1: 0.9395
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: 2e-05
- train_batch_size: 16
- eval_batch_size: 32
- seed: 42
- 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: cosine
- lr_scheduler_warmup_steps: 0.1
- num_epochs: 15
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 1.9482 | 1.0 | 167 | 1.2513 | 0.6375 | 0.5931 |
| 0.6893 | 2.0 | 334 | 0.4475 | 0.8739 | 0.8720 |
| 0.1862 | 3.0 | 501 | 0.2858 | 0.9159 | 0.9118 |
| 0.0426 | 4.0 | 668 | 0.2720 | 0.9194 | 0.9201 |
| 0.0085 | 5.0 | 835 | 0.2460 | 0.9405 | 0.9415 |
| 0.0025 | 6.0 | 1002 | 0.2502 | 0.9335 | 0.9332 |
| 0.0015 | 7.0 | 1169 | 0.2524 | 0.9387 | 0.9398 |
| 0.0012 | 8.0 | 1336 | 0.2583 | 0.9387 | 0.9395 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 20
Model tree for Dagachaco/vit-waste-finetuned
Base model
google/vit-base-patch16-224