itsLeen commited on
Commit
7f2227a
1 Parent(s): 5e79af6

🍻 cheers

Browse files
README.md CHANGED
@@ -2,6 +2,7 @@
2
  license: apache-2.0
3
  base_model: dima806/deepfake_vs_real_image_detection
4
  tags:
 
5
  - generated_from_trainer
6
  datasets:
7
  - imagefolder
@@ -14,7 +15,7 @@ model-index:
14
  name: Image Classification
15
  type: image-classification
16
  dataset:
17
- name: imagefolder
18
  type: imagefolder
19
  config: default
20
  split: train
@@ -22,7 +23,7 @@ model-index:
22
  metrics:
23
  - name: Accuracy
24
  type: accuracy
25
- value: 0.8767123287671232
26
  ---
27
 
28
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -30,10 +31,10 @@ should probably proofread and complete it, then remove this comment. -->
30
 
31
  # realFake-food
32
 
33
- This model is a fine-tuned version of [dima806/deepfake_vs_real_image_detection](https://huggingface.co/dima806/deepfake_vs_real_image_detection) on the imagefolder dataset.
34
  It achieves the following results on the evaluation set:
35
- - Loss: 0.3944
36
- - Accuracy: 0.8767
37
 
38
  ## Model description
39
 
 
2
  license: apache-2.0
3
  base_model: dima806/deepfake_vs_real_image_detection
4
  tags:
5
+ - image-classification
6
  - generated_from_trainer
7
  datasets:
8
  - imagefolder
 
15
  name: Image Classification
16
  type: image-classification
17
  dataset:
18
+ name: ai_real_images
19
  type: imagefolder
20
  config: default
21
  split: train
 
23
  metrics:
24
  - name: Accuracy
25
  type: accuracy
26
+ value: 0.9178082191780822
27
  ---
28
 
29
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
31
 
32
  # realFake-food
33
 
34
+ This model is a fine-tuned version of [dima806/deepfake_vs_real_image_detection](https://huggingface.co/dima806/deepfake_vs_real_image_detection) on the ai_real_images dataset.
35
  It achieves the following results on the evaluation set:
36
+ - Loss: 0.2681
37
+ - Accuracy: 0.9178
38
 
39
  ## Model description
40
 
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "epoch": 4.0,
3
- "eval_accuracy": 0.8972602739726028,
4
- "eval_loss": 0.28542718291282654,
5
- "eval_runtime": 5.2168,
6
- "eval_samples_per_second": 27.986,
7
- "eval_steps_per_second": 3.642,
8
  "total_flos": 2.5603353368661197e+17,
9
- "train_loss": 0.3724222911091951,
10
- "train_runtime": 164.4957,
11
- "train_samples_per_second": 20.086,
12
- "train_steps_per_second": 1.264
13
  }
 
1
  {
2
  "epoch": 4.0,
3
+ "eval_accuracy": 0.9178082191780822,
4
+ "eval_loss": 0.2680760622024536,
5
+ "eval_runtime": 6.3049,
6
+ "eval_samples_per_second": 23.157,
7
+ "eval_steps_per_second": 3.014,
8
  "total_flos": 2.5603353368661197e+17,
9
+ "train_loss": 0.14218728745786044,
10
+ "train_runtime": 177.8592,
11
+ "train_samples_per_second": 18.576,
12
+ "train_steps_per_second": 1.169
13
  }
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 4.0,
3
- "eval_accuracy": 0.8972602739726028,
4
- "eval_loss": 0.28542718291282654,
5
- "eval_runtime": 5.2168,
6
- "eval_samples_per_second": 27.986,
7
- "eval_steps_per_second": 3.642
8
  }
 
1
  {
2
  "epoch": 4.0,
3
+ "eval_accuracy": 0.9178082191780822,
4
+ "eval_loss": 0.2680760622024536,
5
+ "eval_runtime": 6.3049,
6
+ "eval_samples_per_second": 23.157,
7
+ "eval_steps_per_second": 3.014
8
  }
runs/Aug22_17-43-12_95d27f699f23/events.out.tfevents.1724352059.95d27f699f23.377.5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:870c5215aaed1c99f3db1ce46b0fd96464da2c9f9b49b40c5b6a8c3a855efcf0
3
+ size 411
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 4.0,
3
  "total_flos": 2.5603353368661197e+17,
4
- "train_loss": 0.3724222911091951,
5
- "train_runtime": 164.4957,
6
- "train_samples_per_second": 20.086,
7
- "train_steps_per_second": 1.264
8
  }
 
1
  {
2
  "epoch": 4.0,
3
  "total_flos": 2.5603353368661197e+17,
4
+ "train_loss": 0.14218728745786044,
5
+ "train_runtime": 177.8592,
6
+ "train_samples_per_second": 18.576,
7
+ "train_steps_per_second": 1.169
8
  }
trainer_state.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "best_metric": 0.28542718291282654,
3
- "best_model_checkpoint": "realFake-food/checkpoint-200",
4
  "epoch": 4.0,
5
  "eval_steps": 100,
6
  "global_step": 208,
@@ -10,170 +10,170 @@
10
  "log_history": [
11
  {
12
  "epoch": 0.19230769230769232,
13
- "grad_norm": 3.0538153648376465,
14
  "learning_rate": 0.00019038461538461538,
15
- "loss": 0.9178,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.38461538461538464,
20
- "grad_norm": 2.667586088180542,
21
  "learning_rate": 0.00018076923076923077,
22
- "loss": 0.5836,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.5769230769230769,
27
- "grad_norm": 2.382235050201416,
28
  "learning_rate": 0.00017115384615384616,
29
- "loss": 0.5912,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.7692307692307693,
34
- "grad_norm": 2.7990283966064453,
35
  "learning_rate": 0.00016153846153846155,
36
- "loss": 0.7117,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.9615384615384616,
41
- "grad_norm": 2.5314412117004395,
42
  "learning_rate": 0.00015192307692307692,
43
- "loss": 0.5335,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 1.1538461538461537,
48
- "grad_norm": 4.905477046966553,
49
  "learning_rate": 0.0001423076923076923,
50
- "loss": 0.4325,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 1.3461538461538463,
55
- "grad_norm": 3.4876744747161865,
56
  "learning_rate": 0.0001326923076923077,
57
- "loss": 0.3949,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 1.5384615384615383,
62
- "grad_norm": 2.3716630935668945,
63
  "learning_rate": 0.0001230769230769231,
64
- "loss": 0.4488,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 1.7307692307692308,
69
- "grad_norm": 3.4231088161468506,
70
  "learning_rate": 0.00011346153846153846,
71
- "loss": 0.4485,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 1.9230769230769231,
76
- "grad_norm": 3.3511643409729004,
77
  "learning_rate": 0.00010384615384615386,
78
- "loss": 0.3931,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 1.9230769230769231,
83
- "eval_accuracy": 0.8287671232876712,
84
- "eval_loss": 0.37481045722961426,
85
- "eval_runtime": 5.0568,
86
- "eval_samples_per_second": 28.872,
87
- "eval_steps_per_second": 3.757,
88
  "step": 100
89
  },
90
  {
91
  "epoch": 2.1153846153846154,
92
- "grad_norm": 1.5598195791244507,
93
  "learning_rate": 9.423076923076924e-05,
94
- "loss": 0.2722,
95
  "step": 110
96
  },
97
  {
98
  "epoch": 2.3076923076923075,
99
- "grad_norm": 2.543069839477539,
100
  "learning_rate": 8.461538461538461e-05,
101
- "loss": 0.2621,
102
  "step": 120
103
  },
104
  {
105
  "epoch": 2.5,
106
- "grad_norm": 1.5606470108032227,
107
  "learning_rate": 7.500000000000001e-05,
108
- "loss": 0.3406,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 2.6923076923076925,
113
- "grad_norm": 3.8972668647766113,
114
  "learning_rate": 6.538461538461539e-05,
115
- "loss": 0.2587,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 2.8846153846153846,
120
- "grad_norm": 2.5675690174102783,
121
  "learning_rate": 5.576923076923077e-05,
122
- "loss": 0.1856,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 3.076923076923077,
127
- "grad_norm": 1.1091891527175903,
128
  "learning_rate": 4.615384615384616e-05,
129
- "loss": 0.2306,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 3.269230769230769,
134
- "grad_norm": 1.6599169969558716,
135
  "learning_rate": 3.653846153846154e-05,
136
- "loss": 0.1367,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 3.4615384615384617,
141
- "grad_norm": 0.4873194396495819,
142
  "learning_rate": 2.6923076923076923e-05,
143
- "loss": 0.1868,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 3.6538461538461537,
148
- "grad_norm": 1.8959814310073853,
149
  "learning_rate": 1.730769230769231e-05,
150
- "loss": 0.1289,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 3.8461538461538463,
155
- "grad_norm": 3.15872859954834,
156
  "learning_rate": 7.692307692307694e-06,
157
- "loss": 0.1422,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 3.8461538461538463,
162
- "eval_accuracy": 0.8972602739726028,
163
- "eval_loss": 0.28542718291282654,
164
- "eval_runtime": 5.1649,
165
- "eval_samples_per_second": 28.268,
166
- "eval_steps_per_second": 3.679,
167
  "step": 200
168
  },
169
  {
170
  "epoch": 4.0,
171
  "step": 208,
172
  "total_flos": 2.5603353368661197e+17,
173
- "train_loss": 0.3724222911091951,
174
- "train_runtime": 164.4957,
175
- "train_samples_per_second": 20.086,
176
- "train_steps_per_second": 1.264
177
  }
178
  ],
179
  "logging_steps": 10,
 
1
  {
2
+ "best_metric": 0.2680760622024536,
3
+ "best_model_checkpoint": "realFake-food/checkpoint-100",
4
  "epoch": 4.0,
5
  "eval_steps": 100,
6
  "global_step": 208,
 
10
  "log_history": [
11
  {
12
  "epoch": 0.19230769230769232,
13
+ "grad_norm": 0.42639100551605225,
14
  "learning_rate": 0.00019038461538461538,
15
+ "loss": 0.2031,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.38461538461538464,
20
+ "grad_norm": 7.584949016571045,
21
  "learning_rate": 0.00018076923076923077,
22
+ "loss": 0.2328,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.5769230769230769,
27
+ "grad_norm": 3.8331034183502197,
28
  "learning_rate": 0.00017115384615384616,
29
+ "loss": 0.3073,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.7692307692307693,
34
+ "grad_norm": 0.4520980715751648,
35
  "learning_rate": 0.00016153846153846155,
36
+ "loss": 0.1455,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.9615384615384616,
41
+ "grad_norm": 2.673344135284424,
42
  "learning_rate": 0.00015192307692307692,
43
+ "loss": 0.1449,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 1.1538461538461537,
48
+ "grad_norm": 2.577897310256958,
49
  "learning_rate": 0.0001423076923076923,
50
+ "loss": 0.3205,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 1.3461538461538463,
55
+ "grad_norm": 3.368375301361084,
56
  "learning_rate": 0.0001326923076923077,
57
+ "loss": 0.2337,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 1.5384615384615383,
62
+ "grad_norm": 0.37733569741249084,
63
  "learning_rate": 0.0001230769230769231,
64
+ "loss": 0.1425,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 1.7307692307692308,
69
+ "grad_norm": 2.8604488372802734,
70
  "learning_rate": 0.00011346153846153846,
71
+ "loss": 0.1523,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 1.9230769230769231,
76
+ "grad_norm": 5.182437419891357,
77
  "learning_rate": 0.00010384615384615386,
78
+ "loss": 0.1549,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 1.9230769230769231,
83
+ "eval_accuracy": 0.9178082191780822,
84
+ "eval_loss": 0.2680760622024536,
85
+ "eval_runtime": 5.4875,
86
+ "eval_samples_per_second": 26.606,
87
+ "eval_steps_per_second": 3.462,
88
  "step": 100
89
  },
90
  {
91
  "epoch": 2.1153846153846154,
92
+ "grad_norm": 0.14010025560855865,
93
  "learning_rate": 9.423076923076924e-05,
94
+ "loss": 0.1043,
95
  "step": 110
96
  },
97
  {
98
  "epoch": 2.3076923076923075,
99
+ "grad_norm": 5.399143218994141,
100
  "learning_rate": 8.461538461538461e-05,
101
+ "loss": 0.2221,
102
  "step": 120
103
  },
104
  {
105
  "epoch": 2.5,
106
+ "grad_norm": 0.09939516335725784,
107
  "learning_rate": 7.500000000000001e-05,
108
+ "loss": 0.1421,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 2.6923076923076925,
113
+ "grad_norm": 0.2428288459777832,
114
  "learning_rate": 6.538461538461539e-05,
115
+ "loss": 0.075,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 2.8846153846153846,
120
+ "grad_norm": 0.21341218054294586,
121
  "learning_rate": 5.576923076923077e-05,
122
+ "loss": 0.0729,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 3.076923076923077,
127
+ "grad_norm": 2.646660804748535,
128
  "learning_rate": 4.615384615384616e-05,
129
+ "loss": 0.0576,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 3.269230769230769,
134
+ "grad_norm": 0.04149604216217995,
135
  "learning_rate": 3.653846153846154e-05,
136
+ "loss": 0.0252,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 3.4615384615384617,
141
+ "grad_norm": 0.206838920712471,
142
  "learning_rate": 2.6923076923076923e-05,
143
+ "loss": 0.0396,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 3.6538461538461537,
148
+ "grad_norm": 1.5528465509414673,
149
  "learning_rate": 1.730769230769231e-05,
150
+ "loss": 0.1108,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 3.8461538461538463,
155
+ "grad_norm": 2.278879165649414,
156
  "learning_rate": 7.692307692307694e-06,
157
+ "loss": 0.0406,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 3.8461538461538463,
162
+ "eval_accuracy": 0.8767123287671232,
163
+ "eval_loss": 0.3943769633769989,
164
+ "eval_runtime": 5.4639,
165
+ "eval_samples_per_second": 26.721,
166
+ "eval_steps_per_second": 3.477,
167
  "step": 200
168
  },
169
  {
170
  "epoch": 4.0,
171
  "step": 208,
172
  "total_flos": 2.5603353368661197e+17,
173
+ "train_loss": 0.14218728745786044,
174
+ "train_runtime": 177.8592,
175
+ "train_samples_per_second": 18.576,
176
+ "train_steps_per_second": 1.169
177
  }
178
  ],
179
  "logging_steps": 10,