Instructions to use natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-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("natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-classification") model = AutoModelForImageClassification.from_pretrained("natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
swin-tiny-patch4-window7-224-finetuned-car-models-classification
This model is a fine-tuned version of natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-classification on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 1.5736
- Accuracy: 0.6365
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: 4
- eval_batch_size: 4
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 16
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 4
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 2.0139 | 1.0 | 1033 | 2.3991 | 0.4659 |
| 1.8061 | 2.0 | 2066 | 1.9816 | 0.5564 |
| 1.652 | 3.0 | 3099 | 1.7068 | 0.6158 |
| 1.2835 | 4.0 | 4132 | 1.5736 | 0.6365 |
Framework versions
- Transformers 4.54.1
- Pytorch 2.7.1+cu126
- Datasets 4.0.0
- Tokenizers 0.21.4
- Downloads last month
- 60
Model tree for natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-classification
Unable to build the model tree, the base model loops to the model itself. Learn more.
Evaluation results
- Accuracy on imagefolderself-reported0.637