Image Classification
Transformers
PyTorch
TensorBoard
Safetensors
swin
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run djbp/swin-tiny-patch4-window7-224-Mid-NonMidMarket-Classification 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/djbp/swin-tiny-patch4-window7-224-Mid-NonMidMarket-Classification. 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/djbp/swin-tiny-patch4-window7-224-Mid-NonMidMarket-Classification 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 djbp/swin-tiny-patch4-window7-224-Mid-NonMidMarket-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use djbp/swin-tiny-patch4-window7-224-Mid-NonMidMarket-Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="djbp/swin-tiny-patch4-window7-224-Mid-NonMidMarket-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("djbp/swin-tiny-patch4-window7-224-Mid-NonMidMarket-Classification") model = AutoModelForImageClassification.from_pretrained("djbp/swin-tiny-patch4-window7-224-Mid-NonMidMarket-Classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (2)
- README.md+13-13
- pytorch_model.bin+1-1
21 unmodified lines222324252627283 unmodified lines323334353637383927 unmodified lines6768697071727374757677787980818221 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.9172749391727494---<!-- 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.2099- Accuracy: 0.9173## Model description27 unmodified lines| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:------:|:----:|:---------------:|:--------:|| 0.2558 | 0.9836 | 30 | 0.2284 | 0.9124 || 0.2409 | 2.0 | 61 | 0.2099 | 0.9173 || 0.2151 | 2.9836 | 91 | 0.2273 | 0.9051 || 0.2085 | 4.0 | 122 | 0.2338 | 0.9002 || 0.1793 | 4.9836 | 152 | 0.2289 | 0.9051 || 0.1817 | 6.0 | 183 | 0.2174 | 0.9075 || 0.1852 | 6.9836 | 213 | 0.2230 | 0.9002 || 0.1739 | 8.0 | 244 | 0.2171 | 0.9100 || 0.1569 | 8.9836 | 274 | 0.2114 | 0.9148 || 0.1589 | 9.8361 | 300 | 0.2154 | 0.9100 |### Framework versions21 unmodified lines222324252627283 unmodified lines323334353637383927 unmodified lines6768697071727374757677787980818221 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.8978102189781022---<!-- 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.2350- Accuracy: 0.8978## Model description27 unmodified lines| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:------:|:----:|:---------------:|:--------:|| 0.4375 | 0.9836 | 30 | 0.4385 | 0.8564 || 0.3408 | 2.0 | 61 | 0.2872 | 0.8978 || 0.3106 | 2.9836 | 91 | 0.2598 | 0.9100 || 0.3167 | 4.0 | 122 | 0.2609 | 0.9124 || 0.2533 | 4.9836 | 152 | 0.2426 | 0.9075 || 0.256 | 6.0 | 183 | 0.2372 | 0.9075 || 0.2492 | 6.9836 | 213 | 0.2418 | 0.9148 || 0.2364 | 8.0 | 244 | 0.2352 | 0.9051 || 0.2301 | 8.9836 | 274 | 0.2348 | 0.9075 || 0.2255 | 9.8361 | 300 | 0.2350 | 0.8978 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:7b5dbba1e7eb4edc633db4ed8b984bf6bab0c06a1f636da99e1293ce4e4b091asize 110395951123version https://git-lfs.github.com/spec/v1oid sha256:42f764cb7756e9b8f97bd7931f2bd90264693acf0639be2692169e68f5f17856size 110395951
README.md+13-13
pytorch_model.bin+1-1