gcperk20 commited on
Commit
7c65f24
1 Parent(s): 4d0c9f0

Model save

Browse files
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: microsoft/swin-base-patch4-window7-224
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: swin-base-patch4-window7-224-finetuned-piid
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: val
21
+ args: default
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.8127853881278538
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-base-patch4-window7-224-finetuned-piid
32
+
33
+ This model is a fine-tuned version of [microsoft/swin-base-patch4-window7-224](https://huggingface.co/microsoft/swin-base-patch4-window7-224) on the imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.6630
36
+ - Accuracy: 0.8128
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: 8
57
+ - eval_batch_size: 8
58
+ - seed: 42
59
+ - gradient_accumulation_steps: 4
60
+ - total_train_batch_size: 32
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: 20
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | 1.1815 | 0.98 | 20 | 1.0441 | 0.5251 |
71
+ | 0.6548 | 2.0 | 41 | 0.8150 | 0.6393 |
72
+ | 0.6083 | 2.98 | 61 | 0.6395 | 0.6986 |
73
+ | 0.4925 | 4.0 | 82 | 0.6273 | 0.6804 |
74
+ | 0.4448 | 4.98 | 102 | 0.4812 | 0.8174 |
75
+ | 0.3387 | 6.0 | 123 | 0.5868 | 0.7945 |
76
+ | 0.2622 | 6.98 | 143 | 0.7868 | 0.7260 |
77
+ | 0.2656 | 8.0 | 164 | 0.4432 | 0.8128 |
78
+ | 0.2259 | 8.98 | 184 | 0.6553 | 0.7489 |
79
+ | 0.1997 | 10.0 | 205 | 0.5143 | 0.7854 |
80
+ | 0.1892 | 10.98 | 225 | 0.5657 | 0.7945 |
81
+ | 0.1522 | 12.0 | 246 | 0.7339 | 0.7580 |
82
+ | 0.1309 | 12.98 | 266 | 0.6064 | 0.8174 |
83
+ | 0.1482 | 14.0 | 287 | 0.5875 | 0.8128 |
84
+ | 0.1459 | 14.98 | 307 | 0.6443 | 0.7900 |
85
+ | 0.1224 | 16.0 | 328 | 0.6521 | 0.8037 |
86
+ | 0.0533 | 16.98 | 348 | 0.5915 | 0.8493 |
87
+ | 0.1133 | 18.0 | 369 | 0.6152 | 0.8265 |
88
+ | 0.0923 | 18.98 | 389 | 0.6819 | 0.7854 |
89
+ | 0.086 | 19.51 | 400 | 0.6630 | 0.8128 |
90
+
91
+
92
+ ### Framework versions
93
+
94
+ - Transformers 4.35.0
95
+ - Pytorch 2.1.0+cu118
96
+ - Datasets 2.14.6
97
+ - Tokenizers 0.14.1
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:60e7674cf40a73c60fefe10223c7a2989114454fa91394e4992d2e43200c49ef
3
  size 347507016
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:399610d19568deeb2781c11c12635f4492d7a79ff708f943ca8b5be3f40a1d8d
3
  size 347507016
runs/Nov02_21-48-41_a4709a859fdb/events.out.tfevents.1698961736.a4709a859fdb.1287.4 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d697c95031340d7ad5d6d87031600a0723f8333710fd01624e281c2508d2714f
3
- size 16889
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6188518460c250eee39a4eed75d974666319084bf9356fed33d7ec38a690cda0
3
+ size 17723