purabp1249
commited on
Commit
•
2a32571
1
Parent(s):
ea4ac0f
Model save
Browse files- README.md +110 -0
- pytorch_model.bin +1 -1
README.md
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/swin-tiny-patch4-window7-224
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: swin-tiny-patch4-window7-224-finetuned-herbify
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Image Classification
|
15 |
+
type: image-classification
|
16 |
+
dataset:
|
17 |
+
name: imagefolder
|
18 |
+
type: imagefolder
|
19 |
+
config: default
|
20 |
+
split: train
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 1.0
|
26 |
+
---
|
27 |
+
|
28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
29 |
+
should probably proofread and complete it, then remove this comment. -->
|
30 |
+
|
31 |
+
# swin-tiny-patch4-window7-224-finetuned-herbify
|
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.0004
|
36 |
+
- Accuracy: 1.0
|
37 |
+
|
38 |
+
## Model description
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Intended uses & limitations
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training and evaluation data
|
47 |
+
|
48 |
+
More information needed
|
49 |
+
|
50 |
+
## Training procedure
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
- learning_rate: 5e-05
|
56 |
+
- train_batch_size: 32
|
57 |
+
- eval_batch_size: 32
|
58 |
+
- seed: 42
|
59 |
+
- gradient_accumulation_steps: 4
|
60 |
+
- total_train_batch_size: 128
|
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: 35
|
65 |
+
|
66 |
+
### Training results
|
67 |
+
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
69 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
70 |
+
| No log | 0.94 | 4 | 1.8723 | 0.2787 |
|
71 |
+
| No log | 1.88 | 8 | 1.5899 | 0.6885 |
|
72 |
+
| 1.8465 | 2.82 | 12 | 1.1661 | 0.8197 |
|
73 |
+
| 1.8465 | 4.0 | 17 | 0.5156 | 0.9508 |
|
74 |
+
| 0.9675 | 4.94 | 21 | 0.2177 | 0.9836 |
|
75 |
+
| 0.9675 | 5.88 | 25 | 0.0929 | 0.9836 |
|
76 |
+
| 0.9675 | 6.82 | 29 | 0.0378 | 1.0 |
|
77 |
+
| 0.2342 | 8.0 | 34 | 0.0128 | 1.0 |
|
78 |
+
| 0.2342 | 8.94 | 38 | 0.0075 | 1.0 |
|
79 |
+
| 0.1022 | 9.88 | 42 | 0.0053 | 1.0 |
|
80 |
+
| 0.1022 | 10.82 | 46 | 0.0049 | 1.0 |
|
81 |
+
| 0.0553 | 12.0 | 51 | 0.0032 | 1.0 |
|
82 |
+
| 0.0553 | 12.94 | 55 | 0.0022 | 1.0 |
|
83 |
+
| 0.0553 | 13.88 | 59 | 0.0017 | 1.0 |
|
84 |
+
| 0.0278 | 14.82 | 63 | 0.0018 | 1.0 |
|
85 |
+
| 0.0278 | 16.0 | 68 | 0.0012 | 1.0 |
|
86 |
+
| 0.0266 | 16.94 | 72 | 0.0011 | 1.0 |
|
87 |
+
| 0.0266 | 17.88 | 76 | 0.0006 | 1.0 |
|
88 |
+
| 0.046 | 18.82 | 80 | 0.0007 | 1.0 |
|
89 |
+
| 0.046 | 20.0 | 85 | 0.0007 | 1.0 |
|
90 |
+
| 0.046 | 20.94 | 89 | 0.0012 | 1.0 |
|
91 |
+
| 0.0245 | 21.88 | 93 | 0.0015 | 1.0 |
|
92 |
+
| 0.0245 | 22.82 | 97 | 0.0011 | 1.0 |
|
93 |
+
| 0.0249 | 24.0 | 102 | 0.0007 | 1.0 |
|
94 |
+
| 0.0249 | 24.94 | 106 | 0.0006 | 1.0 |
|
95 |
+
| 0.0201 | 25.88 | 110 | 0.0005 | 1.0 |
|
96 |
+
| 0.0201 | 26.82 | 114 | 0.0005 | 1.0 |
|
97 |
+
| 0.0201 | 28.0 | 119 | 0.0004 | 1.0 |
|
98 |
+
| 0.0208 | 28.94 | 123 | 0.0004 | 1.0 |
|
99 |
+
| 0.0208 | 29.88 | 127 | 0.0004 | 1.0 |
|
100 |
+
| 0.0122 | 30.82 | 131 | 0.0004 | 1.0 |
|
101 |
+
| 0.0122 | 32.0 | 136 | 0.0004 | 1.0 |
|
102 |
+
| 0.0222 | 32.94 | 140 | 0.0004 | 1.0 |
|
103 |
+
|
104 |
+
|
105 |
+
### Framework versions
|
106 |
+
|
107 |
+
- Transformers 4.33.2
|
108 |
+
- Pytorch 2.0.1+cpu
|
109 |
+
- Datasets 2.14.5
|
110 |
+
- Tokenizers 0.13.3
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 110406961
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa71e3976372bc352cb39a6cc0a86b336d7b830ffb5c14d5cc9a3749953464f0
|
3 |
size 110406961
|