hchcsuim commited on
Commit
99e5e46
1 Parent(s): a3359e9

Model save

Browse files
Files changed (1) hide show
  1. README.md +97 -0
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - precision
11
+ - recall
12
+ - f1
13
+ model-index:
14
+ - name: swin-tiny-patch4-window7-224-finetuned-FaceAIorNot-105330
15
+ results:
16
+ - task:
17
+ name: Image Classification
18
+ type: image-classification
19
+ dataset:
20
+ name: imagefolder
21
+ type: imagefolder
22
+ config: default
23
+ split: train
24
+ args: default
25
+ metrics:
26
+ - name: Accuracy
27
+ type: accuracy
28
+ value: 0.9935440994968195
29
+ - name: Precision
30
+ type: precision
31
+ value: 0.9925121677274429
32
+ - name: Recall
33
+ type: recall
34
+ value: 0.9947467166979362
35
+ - name: F1
36
+ type: f1
37
+ value: 0.9936281859070465
38
+ ---
39
+
40
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
41
+ should probably proofread and complete it, then remove this comment. -->
42
+
43
+ # swin-tiny-patch4-window7-224-finetuned-FaceAIorNot-105330
44
+
45
+ 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.
46
+ It achieves the following results on the evaluation set:
47
+ - Loss: 0.0233
48
+ - Accuracy: 0.9935
49
+ - Precision: 0.9925
50
+ - Recall: 0.9947
51
+ - F1: 0.9936
52
+
53
+ ## Model description
54
+
55
+ More information needed
56
+
57
+ ## Intended uses & limitations
58
+
59
+ More information needed
60
+
61
+ ## Training and evaluation data
62
+
63
+ More information needed
64
+
65
+ ## Training procedure
66
+
67
+ ### Training hyperparameters
68
+
69
+ The following hyperparameters were used during training:
70
+ - learning_rate: 5e-05
71
+ - train_batch_size: 32
72
+ - eval_batch_size: 32
73
+ - seed: 42
74
+ - gradient_accumulation_steps: 4
75
+ - total_train_batch_size: 128
76
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
77
+ - lr_scheduler_type: linear
78
+ - lr_scheduler_warmup_ratio: 0.1
79
+ - num_epochs: 5
80
+
81
+ ### Training results
82
+
83
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
84
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
85
+ | 0.0862 | 1.0 | 740 | 0.0694 | 0.9740 | 0.9731 | 0.9756 | 0.9743 |
86
+ | 0.0914 | 2.0 | 1481 | 0.0396 | 0.9862 | 0.9814 | 0.9916 | 0.9865 |
87
+ | 0.0184 | 3.0 | 2222 | 0.0784 | 0.9777 | 0.9618 | 0.9955 | 0.9783 |
88
+ | 0.0181 | 4.0 | 2963 | 0.0330 | 0.9907 | 0.9879 | 0.9938 | 0.9908 |
89
+ | 0.03 | 4.99 | 3700 | 0.0233 | 0.9935 | 0.9925 | 0.9947 | 0.9936 |
90
+
91
+
92
+ ### Framework versions
93
+
94
+ - Transformers 4.34.0
95
+ - Pytorch 2.1.1+cu118
96
+ - Datasets 2.14.5
97
+ - Tokenizers 0.14.1