Instructions to use HorcruxNo13/swin-tiny-patch4-window7-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HorcruxNo13/swin-tiny-patch4-window7-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="HorcruxNo13/swin-tiny-patch4-window7-224") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("HorcruxNo13/swin-tiny-patch4-window7-224") model = AutoModelForImageClassification.from_pretrained("HorcruxNo13/swin-tiny-patch4-window7-224") - Notebooks
- Google Colab
- Kaggle
Commit ·
1efc362
1
Parent(s): 4f31a7d
Model save
Browse files- README.md +11 -7
- pytorch_model.bin +1 -1
README.md
CHANGED
|
@@ -22,7 +22,7 @@ model-index:
|
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
-
value: 0.
|
| 26 |
---
|
| 27 |
|
| 28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -32,8 +32,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 32 |
|
| 33 |
This 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.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
-
- Loss: 0.
|
| 36 |
-
- Accuracy: 0.
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
@@ -61,15 +61,19 @@ The following hyperparameters were used during training:
|
|
| 61 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
- lr_scheduler_type: linear
|
| 63 |
- lr_scheduler_warmup_ratio: 0.1
|
| 64 |
-
- num_epochs:
|
| 65 |
|
| 66 |
### Training results
|
| 67 |
|
| 68 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 70 |
-
| No log | 1.0 | 8 | 0.
|
| 71 |
-
| 0.
|
| 72 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
|
| 75 |
### Framework versions
|
|
|
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
+
value: 0.7366666666666667
|
| 26 |
---
|
| 27 |
|
| 28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 32 |
|
| 33 |
This 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.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.5300
|
| 36 |
+
- Accuracy: 0.7367
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
|
|
| 61 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
- lr_scheduler_type: linear
|
| 63 |
- lr_scheduler_warmup_ratio: 0.1
|
| 64 |
+
- num_epochs: 7
|
| 65 |
|
| 66 |
### Training results
|
| 67 |
|
| 68 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 70 |
+
| No log | 1.0 | 8 | 0.5816 | 0.7333 |
|
| 71 |
+
| 0.6478 | 2.0 | 16 | 0.5634 | 0.7333 |
|
| 72 |
+
| 0.5746 | 3.0 | 24 | 0.5526 | 0.7375 |
|
| 73 |
+
| 0.5414 | 4.0 | 32 | 0.6044 | 0.7333 |
|
| 74 |
+
| 0.5159 | 5.0 | 40 | 0.5310 | 0.7542 |
|
| 75 |
+
| 0.5159 | 6.0 | 48 | 0.5481 | 0.7583 |
|
| 76 |
+
| 0.4901 | 7.0 | 56 | 0.5410 | 0.7583 |
|
| 77 |
|
| 78 |
|
| 79 |
### Framework versions
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 110394865
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cac8a5b27c54601914a1d7849e75bfe5c56ee04933b82f2889ea3cb58ba4c8d7
|
| 3 |
size 110394865
|