Instructions to use JackyWW/vit-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JackyWW/vit-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="JackyWW/vit-finetuned") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("JackyWW/vit-finetuned") model = AutoModelForImageClassification.from_pretrained("JackyWW/vit-finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
vit-finetuned
This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 1.2270
- Accuracy: 0.5563
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: 10
- eval_batch_size: 10
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.0026 | 1.0 | 64 | 1.3046 | 0.5125 |
| 0.6945 | 2.0 | 128 | 1.2227 | 0.5437 |
| 0.4462 | 3.0 | 192 | 1.2127 | 0.5563 |
| 0.2831 | 4.0 | 256 | 1.2013 | 0.55 |
| 0.2379 | 5.0 | 320 | 1.2270 | 0.5563 |
Framework versions
- Transformers 4.48.3
- Pytorch 2.5.1+cu124
- Datasets 3.3.2
- Tokenizers 0.21.0
- Downloads last month
- 6
Model tree for JackyWW/vit-finetuned
Base model
google/vit-base-patch16-224-in21kEvaluation results
- Accuracy on imagefolderself-reported0.556