itsLeen commited on
Commit
30ab497
1 Parent(s): 5427f56

🍻 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.863013698630137
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.4853
36
- - Accuracy: 0.8630
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.8013698630136986
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.4344
37
+ - Accuracy: 0.8014
38
 
39
  ## Model description
40
 
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "epoch": 4.0,
3
- "eval_accuracy": 0.863013698630137,
4
- "eval_loss": 0.4011619985103607,
5
- "eval_runtime": 6.5507,
6
- "eval_samples_per_second": 22.288,
7
- "eval_steps_per_second": 2.9,
8
  "total_flos": 2.5603353368661197e+17,
9
- "train_loss": 0.40654734350167787,
10
- "train_runtime": 177.3408,
11
- "train_samples_per_second": 18.631,
12
- "train_steps_per_second": 1.173
13
  }
 
1
  {
2
  "epoch": 4.0,
3
+ "eval_accuracy": 0.8013698630136986,
4
+ "eval_loss": 0.4344363808631897,
5
+ "eval_runtime": 6.6648,
6
+ "eval_samples_per_second": 21.906,
7
+ "eval_steps_per_second": 2.851,
8
  "total_flos": 2.5603353368661197e+17,
9
+ "train_loss": 0.3531340624277408,
10
+ "train_runtime": 170.2734,
11
+ "train_samples_per_second": 19.404,
12
+ "train_steps_per_second": 1.222
13
  }
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 4.0,
3
- "eval_accuracy": 0.863013698630137,
4
- "eval_loss": 0.4011619985103607,
5
- "eval_runtime": 6.5507,
6
- "eval_samples_per_second": 22.288,
7
- "eval_steps_per_second": 2.9
8
  }
 
1
  {
2
  "epoch": 4.0,
3
+ "eval_accuracy": 0.8013698630136986,
4
+ "eval_loss": 0.4344363808631897,
5
+ "eval_runtime": 6.6648,
6
+ "eval_samples_per_second": 21.906,
7
+ "eval_steps_per_second": 2.851
8
  }
runs/Aug26_13-04-48_8fb34e2ffb9c/events.out.tfevents.1724677908.8fb34e2ffb9c.600.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dec3e5435a7f598b559f400225b571046a2cd0f121eec19a2b86d507804cfae
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.40654734350167787,
5
- "train_runtime": 177.3408,
6
- "train_samples_per_second": 18.631,
7
- "train_steps_per_second": 1.173
8
  }
 
1
  {
2
  "epoch": 4.0,
3
  "total_flos": 2.5603353368661197e+17,
4
+ "train_loss": 0.3531340624277408,
5
+ "train_runtime": 170.2734,
6
+ "train_samples_per_second": 19.404,
7
+ "train_steps_per_second": 1.222
8
  }
trainer_state.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "best_metric": 0.4011619985103607,
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": 2.2526018619537354,
14
  "learning_rate": 0.00019038461538461538,
15
- "loss": 0.8691,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.38461538461538464,
20
- "grad_norm": 3.1683309078216553,
21
  "learning_rate": 0.00018076923076923077,
22
- "loss": 0.6246,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.5769230769230769,
27
- "grad_norm": 1.3931829929351807,
28
  "learning_rate": 0.00017115384615384616,
29
- "loss": 0.6948,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.7692307692307693,
34
- "grad_norm": 1.4135185480117798,
35
  "learning_rate": 0.00016153846153846155,
36
- "loss": 0.6189,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.9615384615384616,
41
- "grad_norm": 1.1267380714416504,
42
  "learning_rate": 0.00015192307692307692,
43
- "loss": 0.5385,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 1.1538461538461537,
48
- "grad_norm": 2.51800799369812,
49
  "learning_rate": 0.0001423076923076923,
50
- "loss": 0.5534,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 1.3461538461538463,
55
- "grad_norm": 2.433380365371704,
56
  "learning_rate": 0.0001326923076923077,
57
- "loss": 0.4538,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 1.5384615384615383,
62
- "grad_norm": 2.7342333793640137,
63
  "learning_rate": 0.0001230769230769231,
64
- "loss": 0.4093,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 1.7307692307692308,
69
- "grad_norm": 2.5821759700775146,
70
  "learning_rate": 0.00011346153846153846,
71
- "loss": 0.4234,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 1.9230769230769231,
76
- "grad_norm": 1.005037546157837,
77
  "learning_rate": 0.00010384615384615386,
78
- "loss": 0.398,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 1.9230769230769231,
83
- "eval_accuracy": 0.773972602739726,
84
- "eval_loss": 0.5322885513305664,
85
- "eval_runtime": 5.4109,
86
- "eval_samples_per_second": 26.983,
87
- "eval_steps_per_second": 3.511,
88
  "step": 100
89
  },
90
  {
91
  "epoch": 2.1153846153846154,
92
- "grad_norm": 1.1994967460632324,
93
  "learning_rate": 9.423076923076924e-05,
94
- "loss": 0.3894,
95
  "step": 110
96
  },
97
  {
98
  "epoch": 2.3076923076923075,
99
- "grad_norm": 3.602186679840088,
100
  "learning_rate": 8.461538461538461e-05,
101
- "loss": 0.2986,
102
  "step": 120
103
  },
104
  {
105
  "epoch": 2.5,
106
- "grad_norm": 3.0683720111846924,
107
  "learning_rate": 7.500000000000001e-05,
108
- "loss": 0.3787,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 2.6923076923076925,
113
- "grad_norm": 1.893823504447937,
114
  "learning_rate": 6.538461538461539e-05,
115
- "loss": 0.253,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 2.8846153846153846,
120
- "grad_norm": 4.061652183532715,
121
  "learning_rate": 5.576923076923077e-05,
122
- "loss": 0.2849,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 3.076923076923077,
127
- "grad_norm": 1.501720666885376,
128
  "learning_rate": 4.615384615384616e-05,
129
- "loss": 0.203,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 3.269230769230769,
134
- "grad_norm": 1.777280330657959,
135
  "learning_rate": 3.653846153846154e-05,
136
- "loss": 0.2886,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 3.4615384615384617,
141
- "grad_norm": 3.2315940856933594,
142
  "learning_rate": 2.6923076923076923e-05,
143
- "loss": 0.2468,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 3.6538461538461537,
148
- "grad_norm": 3.8452298641204834,
149
  "learning_rate": 1.730769230769231e-05,
150
- "loss": 0.1768,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 3.8461538461538463,
155
- "grad_norm": 1.731667399406433,
156
  "learning_rate": 7.692307692307694e-06,
157
- "loss": 0.2281,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 3.8461538461538463,
162
  "eval_accuracy": 0.863013698630137,
163
- "eval_loss": 0.4011619985103607,
164
- "eval_runtime": 6.6761,
165
- "eval_samples_per_second": 21.869,
166
- "eval_steps_per_second": 2.846,
167
  "step": 200
168
  },
169
  {
170
  "epoch": 4.0,
171
  "step": 208,
172
  "total_flos": 2.5603353368661197e+17,
173
- "train_loss": 0.40654734350167787,
174
- "train_runtime": 177.3408,
175
- "train_samples_per_second": 18.631,
176
- "train_steps_per_second": 1.173
177
  }
178
  ],
179
  "logging_steps": 10,
 
1
  {
2
+ "best_metric": 0.4344363808631897,
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": 3.506465435028076,
14
  "learning_rate": 0.00019038461538461538,
15
+ "loss": 0.8817,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.38461538461538464,
20
+ "grad_norm": 1.9431121349334717,
21
  "learning_rate": 0.00018076923076923077,
22
+ "loss": 0.6353,
23
  "step": 20
24
  },
25
  {
26
  "epoch": 0.5769230769230769,
27
+ "grad_norm": 1.186186671257019,
28
  "learning_rate": 0.00017115384615384616,
29
+ "loss": 0.5035,
30
  "step": 30
31
  },
32
  {
33
  "epoch": 0.7692307692307693,
34
+ "grad_norm": 2.654287099838257,
35
  "learning_rate": 0.00016153846153846155,
36
+ "loss": 0.4855,
37
  "step": 40
38
  },
39
  {
40
  "epoch": 0.9615384615384616,
41
+ "grad_norm": 3.7120602130889893,
42
  "learning_rate": 0.00015192307692307692,
43
+ "loss": 0.5474,
44
  "step": 50
45
  },
46
  {
47
  "epoch": 1.1538461538461537,
48
+ "grad_norm": 1.7464962005615234,
49
  "learning_rate": 0.0001423076923076923,
50
+ "loss": 0.4245,
51
  "step": 60
52
  },
53
  {
54
  "epoch": 1.3461538461538463,
55
+ "grad_norm": 5.969783306121826,
56
  "learning_rate": 0.0001326923076923077,
57
+ "loss": 0.3409,
58
  "step": 70
59
  },
60
  {
61
  "epoch": 1.5384615384615383,
62
+ "grad_norm": 1.9254281520843506,
63
  "learning_rate": 0.0001230769230769231,
64
+ "loss": 0.4396,
65
  "step": 80
66
  },
67
  {
68
  "epoch": 1.7307692307692308,
69
+ "grad_norm": 4.965914726257324,
70
  "learning_rate": 0.00011346153846153846,
71
+ "loss": 0.4246,
72
  "step": 90
73
  },
74
  {
75
  "epoch": 1.9230769230769231,
76
+ "grad_norm": 1.8691182136535645,
77
  "learning_rate": 0.00010384615384615386,
78
+ "loss": 0.3941,
79
  "step": 100
80
  },
81
  {
82
  "epoch": 1.9230769230769231,
83
+ "eval_accuracy": 0.8013698630136986,
84
+ "eval_loss": 0.4344363808631897,
85
+ "eval_runtime": 6.6454,
86
+ "eval_samples_per_second": 21.97,
87
+ "eval_steps_per_second": 2.859,
88
  "step": 100
89
  },
90
  {
91
  "epoch": 2.1153846153846154,
92
+ "grad_norm": 1.4907684326171875,
93
  "learning_rate": 9.423076923076924e-05,
94
+ "loss": 0.2651,
95
  "step": 110
96
  },
97
  {
98
  "epoch": 2.3076923076923075,
99
+ "grad_norm": 3.2301297187805176,
100
  "learning_rate": 8.461538461538461e-05,
101
+ "loss": 0.2996,
102
  "step": 120
103
  },
104
  {
105
  "epoch": 2.5,
106
+ "grad_norm": 3.9394240379333496,
107
  "learning_rate": 7.500000000000001e-05,
108
+ "loss": 0.2653,
109
  "step": 130
110
  },
111
  {
112
  "epoch": 2.6923076923076925,
113
+ "grad_norm": 1.300915002822876,
114
  "learning_rate": 6.538461538461539e-05,
115
+ "loss": 0.2041,
116
  "step": 140
117
  },
118
  {
119
  "epoch": 2.8846153846153846,
120
+ "grad_norm": 5.265963077545166,
121
  "learning_rate": 5.576923076923077e-05,
122
+ "loss": 0.1664,
123
  "step": 150
124
  },
125
  {
126
  "epoch": 3.076923076923077,
127
+ "grad_norm": 0.55958092212677,
128
  "learning_rate": 4.615384615384616e-05,
129
+ "loss": 0.2053,
130
  "step": 160
131
  },
132
  {
133
  "epoch": 3.269230769230769,
134
+ "grad_norm": 0.2694534361362457,
135
  "learning_rate": 3.653846153846154e-05,
136
+ "loss": 0.1057,
137
  "step": 170
138
  },
139
  {
140
  "epoch": 3.4615384615384617,
141
+ "grad_norm": 3.485574960708618,
142
  "learning_rate": 2.6923076923076923e-05,
143
+ "loss": 0.1739,
144
  "step": 180
145
  },
146
  {
147
  "epoch": 3.6538461538461537,
148
+ "grad_norm": 8.615453720092773,
149
  "learning_rate": 1.730769230769231e-05,
150
+ "loss": 0.1928,
151
  "step": 190
152
  },
153
  {
154
  "epoch": 3.8461538461538463,
155
+ "grad_norm": 0.40829136967658997,
156
  "learning_rate": 7.692307692307694e-06,
157
+ "loss": 0.2366,
158
  "step": 200
159
  },
160
  {
161
  "epoch": 3.8461538461538463,
162
  "eval_accuracy": 0.863013698630137,
163
+ "eval_loss": 0.4852786064147949,
164
+ "eval_runtime": 5.3876,
165
+ "eval_samples_per_second": 27.099,
166
+ "eval_steps_per_second": 3.527,
167
  "step": 200
168
  },
169
  {
170
  "epoch": 4.0,
171
  "step": 208,
172
  "total_flos": 2.5603353368661197e+17,
173
+ "train_loss": 0.3531340624277408,
174
+ "train_runtime": 170.2734,
175
+ "train_samples_per_second": 19.404,
176
+ "train_steps_per_second": 1.222
177
  }
178
  ],
179
  "logging_steps": 10,