Instructions to use natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-classification-outer-layer 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-outer-layer 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-outer-layer") 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-outer-layer") model = AutoModelForImageClassification.from_pretrained("natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-classification-outer-layer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
swin-tiny-patch4-window7-224-finetuned-car-models-classification-outer-layer
This model is a fine-tuned version of microsoft/swin-tiny-patch4-window7-224 on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 0.3849
- Accuracy: 0.8616
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: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.6792 | 1.0 | 1033 | 0.7845 | 0.7243 |
| 0.5324 | 2.0 | 2066 | 0.4463 | 0.8458 |
| 0.3248 | 3.0 | 3099 | 0.3849 | 0.8616 |
Framework versions
- Transformers 4.54.1
- Pytorch 2.7.1+cu126
- Datasets 4.0.0
- Tokenizers 0.21.4
- Downloads last month
- 11
Model tree for natsu39/swin-tiny-patch4-window7-224-finetuned-car-models-classification-outer-layer
Base model
microsoft/swin-tiny-patch4-window7-224Evaluation results
- Accuracy on imagefolderself-reported0.862