habibi26 commited on
Commit
90ed2ad
1 Parent(s): ad64813

Model save

Browse files
Files changed (2) hide show
  1. README.md +100 -0
  2. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: openai/clip-vit-base-patch32
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - imagefolder
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: document-spoof
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ dataset:
16
+ name: imagefolder
17
+ type: imagefolder
18
+ config: default
19
+ split: validation
20
+ args: default
21
+ metrics:
22
+ - name: Accuracy
23
+ type: accuracy
24
+ value: 0.9767441860465116
25
+ ---
26
+
27
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
28
+ should probably proofread and complete it, then remove this comment. -->
29
+
30
+ # document-spoof
31
+
32
+ This model is a fine-tuned version of [openai/clip-vit-base-patch32](https://huggingface.co/openai/clip-vit-base-patch32) on the imagefolder dataset.
33
+ It achieves the following results on the evaluation set:
34
+ - Loss: 0.1105
35
+ - Accuracy: 0.9767
36
+
37
+ ## Model description
38
+
39
+ More information needed
40
+
41
+ ## Intended uses & limitations
42
+
43
+ More information needed
44
+
45
+ ## Training and evaluation data
46
+
47
+ More information needed
48
+
49
+ ## Training procedure
50
+
51
+ ### Training hyperparameters
52
+
53
+ The following hyperparameters were used during training:
54
+ - learning_rate: 5e-05
55
+ - train_batch_size: 16
56
+ - eval_batch_size: 16
57
+ - seed: 42
58
+ - gradient_accumulation_steps: 4
59
+ - total_train_batch_size: 64
60
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
61
+ - lr_scheduler_type: linear
62
+ - lr_scheduler_warmup_ratio: 0.1
63
+ - num_epochs: 25
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
68
+ |:-------------:|:-------:|:----:|:---------------:|:--------:|
69
+ | No log | 0.9524 | 5 | 0.5211 | 0.8837 |
70
+ | No log | 1.9048 | 10 | 0.2271 | 0.8837 |
71
+ | 0.545 | 2.8571 | 15 | 0.0975 | 0.9884 |
72
+ | 0.545 | 4.0 | 21 | 0.1020 | 0.9767 |
73
+ | 0.545 | 4.9524 | 26 | 0.3087 | 0.9535 |
74
+ | 0.472 | 5.9048 | 31 | 0.3385 | 0.8023 |
75
+ | 0.472 | 6.8571 | 36 | 0.2358 | 0.8605 |
76
+ | 0.472 | 8.0 | 42 | 0.3675 | 0.8605 |
77
+ | 0.3762 | 8.9524 | 47 | 0.1460 | 0.9535 |
78
+ | 0.3762 | 9.9048 | 52 | 0.6158 | 0.8140 |
79
+ | 0.3762 | 10.8571 | 57 | 0.3228 | 0.9186 |
80
+ | 0.1586 | 12.0 | 63 | 0.0248 | 0.9884 |
81
+ | 0.1586 | 12.9524 | 68 | 0.0639 | 0.9651 |
82
+ | 0.1586 | 13.9048 | 73 | 0.5674 | 0.8488 |
83
+ | 0.1159 | 14.8571 | 78 | 0.0291 | 0.9884 |
84
+ | 0.1159 | 16.0 | 84 | 0.0539 | 0.9884 |
85
+ | 0.1159 | 16.9524 | 89 | 0.0772 | 0.9767 |
86
+ | 0.0366 | 17.9048 | 94 | 0.0031 | 1.0 |
87
+ | 0.0366 | 18.8571 | 99 | 0.1506 | 0.9535 |
88
+ | 0.0179 | 20.0 | 105 | 0.0007 | 1.0 |
89
+ | 0.0179 | 20.9524 | 110 | 0.1427 | 0.9535 |
90
+ | 0.0179 | 21.9048 | 115 | 0.2299 | 0.9419 |
91
+ | 0.0036 | 22.8571 | 120 | 0.1373 | 0.9767 |
92
+ | 0.0036 | 23.8095 | 125 | 0.1105 | 0.9767 |
93
+
94
+
95
+ ### Framework versions
96
+
97
+ - Transformers 4.41.2
98
+ - Pytorch 2.1.2
99
+ - Datasets 2.19.2
100
+ - Tokenizers 0.19.1
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:21c085b71e9b0e00ad78eefbc47ddf03014a6c97880a9c0a667c40024b6603a4
3
  size 349854120
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc077c874d8fbeeed57ea160388bd7f14b52e775c8c8a5578345042c3c818e1f
3
  size 349854120