Image Classification
Transformers
PyTorch
TensorBoard
swin
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run Soulaimen/swin-tiny-patch4-window7-224-bottom_cleaned_data on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Soulaimen/swin-tiny-patch4-window7-224-bottom_cleaned_data. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Soulaimen/swin-tiny-patch4-window7-224-bottom_cleaned_data on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Soulaimen/swin-tiny-patch4-window7-224-bottom_cleaned_data with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Soulaimen/swin-tiny-patch4-window7-224-bottom_cleaned_data with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Soulaimen/swin-tiny-patch4-window7-224-bottom_cleaned_data") 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("Soulaimen/swin-tiny-patch4-window7-224-bottom_cleaned_data") model = AutoModelForImageClassification.from_pretrained("Soulaimen/swin-tiny-patch4-window7-224-bottom_cleaned_data", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update model card README.md
Browse files20 unmodified lines212223242526273 unmodified lines313233343536373812 unmodified lines515253545556571 unmodified line59606162636465666768697071727374757620 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.9259259259259259---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 0.2031- Accuracy: 0.9259## Model description12 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 1e-05- train_batch_size: 8- eval_batch_size: 8- seed: 421 unmodified line- total_train_batch_size: 32- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- lr_scheduler_warmup_ratio: 0.1- num_epochs: 5### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 0.6591 | 1.0 | 174 | 0.5232 | 0.8068 || 0.4104 | 2.0 | 349 | 0.3161 | 0.8889 || 0.3559 | 3.0 | 523 | 0.2237 | 0.9163 || 0.3487 | 4.0 | 698 | 0.1999 | 0.9195 || 0.3422 | 4.99 | 870 | 0.2031 | 0.9259 |### Framework versions20 unmodified lines212223242526273 unmodified lines313233343536373812 unmodified lines515253545556571 unmodified line596061626364656667686970717273747576777879808120 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.9726247987117552---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 0.0668- Accuracy: 0.9726## Model description12 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 8- eval_batch_size: 8- seed: 421 unmodified line- total_train_batch_size: 32- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- lr_scheduler_warmup_ratio: 0.01- num_epochs: 10### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 0.4444 | 1.0 | 174 | 0.2271 | 0.9163 || 0.3518 | 2.0 | 349 | 0.2449 | 0.9034 || 0.225 | 3.0 | 523 | 0.1325 | 0.9501 || 0.2195 | 4.0 | 698 | 0.1024 | 0.9549 || 0.2627 | 5.0 | 872 | 0.1046 | 0.9630 || 0.142 | 6.0 | 1047 | 0.0839 | 0.9726 || 0.1516 | 7.0 | 1221 | 0.0918 | 0.9630 || 0.1498 | 8.0 | 1396 | 0.0780 | 0.9726 || 0.1189 | 9.0 | 1570 | 0.0721 | 0.9662 || 0.1594 | 9.97 | 1740 | 0.0668 | 0.9726 |### Framework versions
README.md+16-11