Instructions to use pericmi1/vit-car-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pericmi1/vit-car-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="pericmi1/vit-car-classification") 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("pericmi1/vit-car-classification") model = AutoModelForImageClassification.from_pretrained("pericmi1/vit-car-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
vit-car-classification
This model is a fine-tuned version of google/vit-base-patch16-224 on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 1.3580
- Accuracy: 0.44
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: 8
- eval_batch_size: 8
- 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: linear
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.6988 | 1.0 | 19 | 1.5246 | 0.32 |
| 1.1305 | 2.0 | 38 | 1.4436 | 0.36 |
| 0.7678 | 3.0 | 57 | 1.4152 | 0.4 |
| 0.5965 | 4.0 | 76 | 1.3638 | 0.4 |
| 0.4967 | 5.0 | 95 | 1.3580 | 0.44 |
Framework versions
- Transformers 5.5.0
- Pytorch 2.8.0+cu128
- Datasets 4.8.4
- Tokenizers 0.22.2
- Downloads last month
- 8
Model tree for pericmi1/vit-car-classification
Base model
google/vit-base-patch16-224Space using pericmi1/vit-car-classification 1
Evaluation results
- Accuracy on imagefoldertest set self-reported0.440