Upload folder using huggingface_hub
Browse files- README.md +31 -0
- checkpoint-1500/config.json +33 -0
- checkpoint-1500/model.safetensors +3 -0
- checkpoint-1500/optimizer.pt +3 -0
- checkpoint-1500/rng_state.pth +3 -0
- checkpoint-1500/scheduler.pt +3 -0
- checkpoint-1500/trainer_state.json +501 -0
- checkpoint-1500/training_args.bin +3 -0
- config.json +33 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- runs/Jan12_12-46-04_r-vivi3n789-re-train-deepfake-n6nox6vn-7a2e4-06dsf/events.out.tfevents.1736685966.r-vivi3n789-re-train-deepfake-n6nox6vn-7a2e4-06dsf.170.0 +2 -2
- runs/Jan12_12-46-04_r-vivi3n789-re-train-deepfake-n6nox6vn-7a2e4-06dsf/events.out.tfevents.1736698181.r-vivi3n789-re-train-deepfake-n6nox6vn-7a2e4-06dsf.170.1 +3 -0
- training_args.bin +3 -0
- training_params.json +29 -0
README.md
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- autotrain
|
5 |
+
- image-classification
|
6 |
+
base_model: dima806/deepfake_vs_real_image_detection
|
7 |
+
widget:
|
8 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
9 |
+
example_title: Tiger
|
10 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
|
11 |
+
example_title: Teapot
|
12 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
13 |
+
example_title: Palace
|
14 |
+
---
|
15 |
+
|
16 |
+
# Model Trained Using AutoTrain
|
17 |
+
|
18 |
+
- Problem type: Image Classification
|
19 |
+
|
20 |
+
## Validation Metrics
|
21 |
+
loss: 0.1797216236591339
|
22 |
+
|
23 |
+
f1: 0.9353233830845771
|
24 |
+
|
25 |
+
precision: 0.9306930693069307
|
26 |
+
|
27 |
+
recall: 0.94
|
28 |
+
|
29 |
+
auc: 0.986464
|
30 |
+
|
31 |
+
accuracy: 0.935
|
checkpoint-1500/config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/deepfake_vs_real_image_detection",
|
3 |
+
"_num_labels": 2,
|
4 |
+
"architectures": [
|
5 |
+
"ViTForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"encoder_stride": 16,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.0,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "fake",
|
14 |
+
"1": "real"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"fake": 0,
|
21 |
+
"real": 1
|
22 |
+
},
|
23 |
+
"layer_norm_eps": 1e-12,
|
24 |
+
"model_type": "vit",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_channels": 3,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"patch_size": 16,
|
29 |
+
"problem_type": "single_label_classification",
|
30 |
+
"qkv_bias": true,
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.47.1"
|
33 |
+
}
|
checkpoint-1500/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f26fcd9120244a7fc94d2a8a3b4df35a080f8db36606338d092b74c24aa73fc7
|
3 |
+
size 343223968
|
checkpoint-1500/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ede7762317e9ba7fa6972969dc3ba43d98fc9dbe1e319cf5b84308d335944f6a
|
3 |
+
size 686563258
|
checkpoint-1500/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ddf7cbb8a895087798abbfdd757b7aa6b51ebecb531825f3c3497b9e2ffffccd
|
3 |
+
size 13990
|
checkpoint-1500/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e7592e941fa77449d9f7015724b6a3901e596c11e155596880b96def1f284283
|
3 |
+
size 1064
|
checkpoint-1500/trainer_state.json
ADDED
@@ -0,0 +1,501 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.1797216236591339,
|
3 |
+
"best_model_checkpoint": "autotrain-vivi3n/checkpoint-1500",
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 1500,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.05,
|
13 |
+
"grad_norm": 20.401409149169922,
|
14 |
+
"learning_rate": 8.333333333333334e-06,
|
15 |
+
"loss": 1.7642,
|
16 |
+
"step": 25
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.1,
|
20 |
+
"grad_norm": 12.83076286315918,
|
21 |
+
"learning_rate": 1.6666666666666667e-05,
|
22 |
+
"loss": 1.133,
|
23 |
+
"step": 50
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.15,
|
27 |
+
"grad_norm": 3.4568631649017334,
|
28 |
+
"learning_rate": 2.5e-05,
|
29 |
+
"loss": 0.7359,
|
30 |
+
"step": 75
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.2,
|
34 |
+
"grad_norm": 3.5798301696777344,
|
35 |
+
"learning_rate": 3.3333333333333335e-05,
|
36 |
+
"loss": 0.7359,
|
37 |
+
"step": 100
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.25,
|
41 |
+
"grad_norm": 4.27333402633667,
|
42 |
+
"learning_rate": 4.166666666666667e-05,
|
43 |
+
"loss": 0.6872,
|
44 |
+
"step": 125
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.3,
|
48 |
+
"grad_norm": 5.849865436553955,
|
49 |
+
"learning_rate": 5e-05,
|
50 |
+
"loss": 0.6644,
|
51 |
+
"step": 150
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.35,
|
55 |
+
"grad_norm": 3.0048937797546387,
|
56 |
+
"learning_rate": 4.9074074074074075e-05,
|
57 |
+
"loss": 0.667,
|
58 |
+
"step": 175
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.4,
|
62 |
+
"grad_norm": 6.366631031036377,
|
63 |
+
"learning_rate": 4.814814814814815e-05,
|
64 |
+
"loss": 0.6231,
|
65 |
+
"step": 200
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.45,
|
69 |
+
"grad_norm": 4.609536170959473,
|
70 |
+
"learning_rate": 4.722222222222222e-05,
|
71 |
+
"loss": 0.6099,
|
72 |
+
"step": 225
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 0.5,
|
76 |
+
"grad_norm": 4.420734882354736,
|
77 |
+
"learning_rate": 4.62962962962963e-05,
|
78 |
+
"loss": 0.563,
|
79 |
+
"step": 250
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.55,
|
83 |
+
"grad_norm": 2.8860912322998047,
|
84 |
+
"learning_rate": 4.5370370370370374e-05,
|
85 |
+
"loss": 0.6232,
|
86 |
+
"step": 275
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 0.6,
|
90 |
+
"grad_norm": 4.6798577308654785,
|
91 |
+
"learning_rate": 4.4444444444444447e-05,
|
92 |
+
"loss": 0.5028,
|
93 |
+
"step": 300
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.65,
|
97 |
+
"grad_norm": 6.540982246398926,
|
98 |
+
"learning_rate": 4.351851851851852e-05,
|
99 |
+
"loss": 0.529,
|
100 |
+
"step": 325
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 0.7,
|
104 |
+
"grad_norm": 3.8343939781188965,
|
105 |
+
"learning_rate": 4.259259259259259e-05,
|
106 |
+
"loss": 0.5219,
|
107 |
+
"step": 350
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.75,
|
111 |
+
"grad_norm": 2.1247823238372803,
|
112 |
+
"learning_rate": 4.166666666666667e-05,
|
113 |
+
"loss": 0.4827,
|
114 |
+
"step": 375
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.8,
|
118 |
+
"grad_norm": 7.609323501586914,
|
119 |
+
"learning_rate": 4.074074074074074e-05,
|
120 |
+
"loss": 0.4975,
|
121 |
+
"step": 400
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.85,
|
125 |
+
"grad_norm": 5.313252925872803,
|
126 |
+
"learning_rate": 3.981481481481482e-05,
|
127 |
+
"loss": 0.5284,
|
128 |
+
"step": 425
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 0.9,
|
132 |
+
"grad_norm": 7.599594593048096,
|
133 |
+
"learning_rate": 3.888888888888889e-05,
|
134 |
+
"loss": 0.4581,
|
135 |
+
"step": 450
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.95,
|
139 |
+
"grad_norm": 3.263301134109497,
|
140 |
+
"learning_rate": 3.7962962962962964e-05,
|
141 |
+
"loss": 0.5126,
|
142 |
+
"step": 475
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"epoch": 1.0,
|
146 |
+
"grad_norm": 5.882161617279053,
|
147 |
+
"learning_rate": 3.7037037037037037e-05,
|
148 |
+
"loss": 0.397,
|
149 |
+
"step": 500
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 1.0,
|
153 |
+
"eval_accuracy": 0.852,
|
154 |
+
"eval_auc": 0.943408,
|
155 |
+
"eval_f1": 0.8366445916114791,
|
156 |
+
"eval_loss": 0.32579681277275085,
|
157 |
+
"eval_precision": 0.9334975369458128,
|
158 |
+
"eval_recall": 0.758,
|
159 |
+
"eval_runtime": 284.8907,
|
160 |
+
"eval_samples_per_second": 3.51,
|
161 |
+
"eval_steps_per_second": 0.221,
|
162 |
+
"step": 500
|
163 |
+
},
|
164 |
+
{
|
165 |
+
"epoch": 1.05,
|
166 |
+
"grad_norm": 4.248765468597412,
|
167 |
+
"learning_rate": 3.611111111111111e-05,
|
168 |
+
"loss": 0.3009,
|
169 |
+
"step": 525
|
170 |
+
},
|
171 |
+
{
|
172 |
+
"epoch": 1.1,
|
173 |
+
"grad_norm": 16.29542350769043,
|
174 |
+
"learning_rate": 3.518518518518519e-05,
|
175 |
+
"loss": 0.3521,
|
176 |
+
"step": 550
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"epoch": 1.15,
|
180 |
+
"grad_norm": 4.925727367401123,
|
181 |
+
"learning_rate": 3.425925925925926e-05,
|
182 |
+
"loss": 0.3923,
|
183 |
+
"step": 575
|
184 |
+
},
|
185 |
+
{
|
186 |
+
"epoch": 1.2,
|
187 |
+
"grad_norm": 9.481324195861816,
|
188 |
+
"learning_rate": 3.3333333333333335e-05,
|
189 |
+
"loss": 0.3771,
|
190 |
+
"step": 600
|
191 |
+
},
|
192 |
+
{
|
193 |
+
"epoch": 1.25,
|
194 |
+
"grad_norm": 5.314146041870117,
|
195 |
+
"learning_rate": 3.240740740740741e-05,
|
196 |
+
"loss": 0.3731,
|
197 |
+
"step": 625
|
198 |
+
},
|
199 |
+
{
|
200 |
+
"epoch": 1.3,
|
201 |
+
"grad_norm": 5.7874531745910645,
|
202 |
+
"learning_rate": 3.148148148148148e-05,
|
203 |
+
"loss": 0.276,
|
204 |
+
"step": 650
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"epoch": 1.35,
|
208 |
+
"grad_norm": 11.975399017333984,
|
209 |
+
"learning_rate": 3.055555555555556e-05,
|
210 |
+
"loss": 0.4218,
|
211 |
+
"step": 675
|
212 |
+
},
|
213 |
+
{
|
214 |
+
"epoch": 1.4,
|
215 |
+
"grad_norm": 3.5423085689544678,
|
216 |
+
"learning_rate": 2.962962962962963e-05,
|
217 |
+
"loss": 0.2853,
|
218 |
+
"step": 700
|
219 |
+
},
|
220 |
+
{
|
221 |
+
"epoch": 1.45,
|
222 |
+
"grad_norm": 2.484663486480713,
|
223 |
+
"learning_rate": 2.8703703703703706e-05,
|
224 |
+
"loss": 0.2941,
|
225 |
+
"step": 725
|
226 |
+
},
|
227 |
+
{
|
228 |
+
"epoch": 1.5,
|
229 |
+
"grad_norm": 8.482043266296387,
|
230 |
+
"learning_rate": 2.777777777777778e-05,
|
231 |
+
"loss": 0.2908,
|
232 |
+
"step": 750
|
233 |
+
},
|
234 |
+
{
|
235 |
+
"epoch": 1.55,
|
236 |
+
"grad_norm": 11.303189277648926,
|
237 |
+
"learning_rate": 2.6851851851851855e-05,
|
238 |
+
"loss": 0.2806,
|
239 |
+
"step": 775
|
240 |
+
},
|
241 |
+
{
|
242 |
+
"epoch": 1.6,
|
243 |
+
"grad_norm": 7.4056291580200195,
|
244 |
+
"learning_rate": 2.5925925925925925e-05,
|
245 |
+
"loss": 0.2928,
|
246 |
+
"step": 800
|
247 |
+
},
|
248 |
+
{
|
249 |
+
"epoch": 1.65,
|
250 |
+
"grad_norm": 3.922528028488159,
|
251 |
+
"learning_rate": 2.5e-05,
|
252 |
+
"loss": 0.3142,
|
253 |
+
"step": 825
|
254 |
+
},
|
255 |
+
{
|
256 |
+
"epoch": 1.7,
|
257 |
+
"grad_norm": 9.461620330810547,
|
258 |
+
"learning_rate": 2.4074074074074074e-05,
|
259 |
+
"loss": 0.5345,
|
260 |
+
"step": 850
|
261 |
+
},
|
262 |
+
{
|
263 |
+
"epoch": 1.75,
|
264 |
+
"grad_norm": 3.0611841678619385,
|
265 |
+
"learning_rate": 2.314814814814815e-05,
|
266 |
+
"loss": 0.273,
|
267 |
+
"step": 875
|
268 |
+
},
|
269 |
+
{
|
270 |
+
"epoch": 1.8,
|
271 |
+
"grad_norm": 6.015491962432861,
|
272 |
+
"learning_rate": 2.2222222222222223e-05,
|
273 |
+
"loss": 0.3177,
|
274 |
+
"step": 900
|
275 |
+
},
|
276 |
+
{
|
277 |
+
"epoch": 1.85,
|
278 |
+
"grad_norm": 7.551340103149414,
|
279 |
+
"learning_rate": 2.1296296296296296e-05,
|
280 |
+
"loss": 0.2656,
|
281 |
+
"step": 925
|
282 |
+
},
|
283 |
+
{
|
284 |
+
"epoch": 1.9,
|
285 |
+
"grad_norm": 13.884527206420898,
|
286 |
+
"learning_rate": 2.037037037037037e-05,
|
287 |
+
"loss": 0.3409,
|
288 |
+
"step": 950
|
289 |
+
},
|
290 |
+
{
|
291 |
+
"epoch": 1.95,
|
292 |
+
"grad_norm": 0.6236781477928162,
|
293 |
+
"learning_rate": 1.9444444444444445e-05,
|
294 |
+
"loss": 0.222,
|
295 |
+
"step": 975
|
296 |
+
},
|
297 |
+
{
|
298 |
+
"epoch": 2.0,
|
299 |
+
"grad_norm": 1.7288349866867065,
|
300 |
+
"learning_rate": 1.8518518518518518e-05,
|
301 |
+
"loss": 0.2162,
|
302 |
+
"step": 1000
|
303 |
+
},
|
304 |
+
{
|
305 |
+
"epoch": 2.0,
|
306 |
+
"eval_accuracy": 0.913,
|
307 |
+
"eval_auc": 0.978072,
|
308 |
+
"eval_f1": 0.9144542772861357,
|
309 |
+
"eval_loss": 0.22896826267242432,
|
310 |
+
"eval_precision": 0.8994197292069632,
|
311 |
+
"eval_recall": 0.93,
|
312 |
+
"eval_runtime": 285.1891,
|
313 |
+
"eval_samples_per_second": 3.506,
|
314 |
+
"eval_steps_per_second": 0.221,
|
315 |
+
"step": 1000
|
316 |
+
},
|
317 |
+
{
|
318 |
+
"epoch": 2.05,
|
319 |
+
"grad_norm": 24.80970001220703,
|
320 |
+
"learning_rate": 1.7592592592592595e-05,
|
321 |
+
"loss": 0.2816,
|
322 |
+
"step": 1025
|
323 |
+
},
|
324 |
+
{
|
325 |
+
"epoch": 2.1,
|
326 |
+
"grad_norm": 3.5682404041290283,
|
327 |
+
"learning_rate": 1.6666666666666667e-05,
|
328 |
+
"loss": 0.1733,
|
329 |
+
"step": 1050
|
330 |
+
},
|
331 |
+
{
|
332 |
+
"epoch": 2.15,
|
333 |
+
"grad_norm": 11.192222595214844,
|
334 |
+
"learning_rate": 1.574074074074074e-05,
|
335 |
+
"loss": 0.2307,
|
336 |
+
"step": 1075
|
337 |
+
},
|
338 |
+
{
|
339 |
+
"epoch": 2.2,
|
340 |
+
"grad_norm": 3.6742281913757324,
|
341 |
+
"learning_rate": 1.4814814814814815e-05,
|
342 |
+
"loss": 0.1328,
|
343 |
+
"step": 1100
|
344 |
+
},
|
345 |
+
{
|
346 |
+
"epoch": 2.25,
|
347 |
+
"grad_norm": 12.249692916870117,
|
348 |
+
"learning_rate": 1.388888888888889e-05,
|
349 |
+
"loss": 0.2833,
|
350 |
+
"step": 1125
|
351 |
+
},
|
352 |
+
{
|
353 |
+
"epoch": 2.3,
|
354 |
+
"grad_norm": 9.88560676574707,
|
355 |
+
"learning_rate": 1.2962962962962962e-05,
|
356 |
+
"loss": 0.2459,
|
357 |
+
"step": 1150
|
358 |
+
},
|
359 |
+
{
|
360 |
+
"epoch": 2.35,
|
361 |
+
"grad_norm": 2.8054721355438232,
|
362 |
+
"learning_rate": 1.2037037037037037e-05,
|
363 |
+
"loss": 0.2079,
|
364 |
+
"step": 1175
|
365 |
+
},
|
366 |
+
{
|
367 |
+
"epoch": 2.4,
|
368 |
+
"grad_norm": 10.091593742370605,
|
369 |
+
"learning_rate": 1.1111111111111112e-05,
|
370 |
+
"loss": 0.2933,
|
371 |
+
"step": 1200
|
372 |
+
},
|
373 |
+
{
|
374 |
+
"epoch": 2.45,
|
375 |
+
"grad_norm": 0.920978844165802,
|
376 |
+
"learning_rate": 1.0185185185185185e-05,
|
377 |
+
"loss": 0.1921,
|
378 |
+
"step": 1225
|
379 |
+
},
|
380 |
+
{
|
381 |
+
"epoch": 2.5,
|
382 |
+
"grad_norm": 0.0899479016661644,
|
383 |
+
"learning_rate": 9.259259259259259e-06,
|
384 |
+
"loss": 0.1607,
|
385 |
+
"step": 1250
|
386 |
+
},
|
387 |
+
{
|
388 |
+
"epoch": 2.55,
|
389 |
+
"grad_norm": 15.381816864013672,
|
390 |
+
"learning_rate": 8.333333333333334e-06,
|
391 |
+
"loss": 0.2516,
|
392 |
+
"step": 1275
|
393 |
+
},
|
394 |
+
{
|
395 |
+
"epoch": 2.6,
|
396 |
+
"grad_norm": 0.061589837074279785,
|
397 |
+
"learning_rate": 7.4074074074074075e-06,
|
398 |
+
"loss": 0.2309,
|
399 |
+
"step": 1300
|
400 |
+
},
|
401 |
+
{
|
402 |
+
"epoch": 2.65,
|
403 |
+
"grad_norm": 7.775277614593506,
|
404 |
+
"learning_rate": 6.481481481481481e-06,
|
405 |
+
"loss": 0.312,
|
406 |
+
"step": 1325
|
407 |
+
},
|
408 |
+
{
|
409 |
+
"epoch": 2.7,
|
410 |
+
"grad_norm": 5.62130880355835,
|
411 |
+
"learning_rate": 5.555555555555556e-06,
|
412 |
+
"loss": 0.2236,
|
413 |
+
"step": 1350
|
414 |
+
},
|
415 |
+
{
|
416 |
+
"epoch": 2.75,
|
417 |
+
"grad_norm": 15.061668395996094,
|
418 |
+
"learning_rate": 4.6296296296296296e-06,
|
419 |
+
"loss": 0.2173,
|
420 |
+
"step": 1375
|
421 |
+
},
|
422 |
+
{
|
423 |
+
"epoch": 2.8,
|
424 |
+
"grad_norm": 4.630084991455078,
|
425 |
+
"learning_rate": 3.7037037037037037e-06,
|
426 |
+
"loss": 0.2465,
|
427 |
+
"step": 1400
|
428 |
+
},
|
429 |
+
{
|
430 |
+
"epoch": 2.85,
|
431 |
+
"grad_norm": 6.20747184753418,
|
432 |
+
"learning_rate": 2.777777777777778e-06,
|
433 |
+
"loss": 0.1715,
|
434 |
+
"step": 1425
|
435 |
+
},
|
436 |
+
{
|
437 |
+
"epoch": 2.9,
|
438 |
+
"grad_norm": 1.773815393447876,
|
439 |
+
"learning_rate": 1.8518518518518519e-06,
|
440 |
+
"loss": 0.2216,
|
441 |
+
"step": 1450
|
442 |
+
},
|
443 |
+
{
|
444 |
+
"epoch": 2.95,
|
445 |
+
"grad_norm": 5.9370436668396,
|
446 |
+
"learning_rate": 9.259259259259259e-07,
|
447 |
+
"loss": 0.1786,
|
448 |
+
"step": 1475
|
449 |
+
},
|
450 |
+
{
|
451 |
+
"epoch": 3.0,
|
452 |
+
"grad_norm": 4.292758464813232,
|
453 |
+
"learning_rate": 0.0,
|
454 |
+
"loss": 0.1342,
|
455 |
+
"step": 1500
|
456 |
+
},
|
457 |
+
{
|
458 |
+
"epoch": 3.0,
|
459 |
+
"eval_accuracy": 0.935,
|
460 |
+
"eval_auc": 0.986464,
|
461 |
+
"eval_f1": 0.9353233830845771,
|
462 |
+
"eval_loss": 0.1797216236591339,
|
463 |
+
"eval_precision": 0.9306930693069307,
|
464 |
+
"eval_recall": 0.94,
|
465 |
+
"eval_runtime": 285.872,
|
466 |
+
"eval_samples_per_second": 3.498,
|
467 |
+
"eval_steps_per_second": 0.22,
|
468 |
+
"step": 1500
|
469 |
+
}
|
470 |
+
],
|
471 |
+
"logging_steps": 25,
|
472 |
+
"max_steps": 1500,
|
473 |
+
"num_input_tokens_seen": 0,
|
474 |
+
"num_train_epochs": 3,
|
475 |
+
"save_steps": 500,
|
476 |
+
"stateful_callbacks": {
|
477 |
+
"EarlyStoppingCallback": {
|
478 |
+
"args": {
|
479 |
+
"early_stopping_patience": 5,
|
480 |
+
"early_stopping_threshold": 0.01
|
481 |
+
},
|
482 |
+
"attributes": {
|
483 |
+
"early_stopping_patience_counter": 0
|
484 |
+
}
|
485 |
+
},
|
486 |
+
"TrainerControl": {
|
487 |
+
"args": {
|
488 |
+
"should_epoch_stop": false,
|
489 |
+
"should_evaluate": false,
|
490 |
+
"should_log": false,
|
491 |
+
"should_save": true,
|
492 |
+
"should_training_stop": true
|
493 |
+
},
|
494 |
+
"attributes": {}
|
495 |
+
}
|
496 |
+
},
|
497 |
+
"total_flos": 9.29903875375104e+17,
|
498 |
+
"train_batch_size": 8,
|
499 |
+
"trial_name": null,
|
500 |
+
"trial_params": null
|
501 |
+
}
|
checkpoint-1500/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83d00562131c54a361af2516916ac8bc9870755a6c719bc1e41a37b1efac132f
|
3 |
+
size 5368
|
config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/deepfake_vs_real_image_detection",
|
3 |
+
"_num_labels": 2,
|
4 |
+
"architectures": [
|
5 |
+
"ViTForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"encoder_stride": 16,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.0,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "fake",
|
14 |
+
"1": "real"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"fake": 0,
|
21 |
+
"real": 1
|
22 |
+
},
|
23 |
+
"layer_norm_eps": 1e-12,
|
24 |
+
"model_type": "vit",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_channels": 3,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"patch_size": 16,
|
29 |
+
"problem_type": "single_label_classification",
|
30 |
+
"qkv_bias": true,
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.47.1"
|
33 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f26fcd9120244a7fc94d2a8a3b4df35a080f8db36606338d092b74c24aa73fc7
|
3 |
+
size 343223968
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_convert_rgb": null,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.5,
|
8 |
+
0.5,
|
9 |
+
0.5
|
10 |
+
],
|
11 |
+
"image_processor_type": "ViTImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.5,
|
14 |
+
0.5,
|
15 |
+
0.5
|
16 |
+
],
|
17 |
+
"resample": 2,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 224,
|
21 |
+
"width": 224
|
22 |
+
}
|
23 |
+
}
|
runs/Jan12_12-46-04_r-vivi3n789-re-train-deepfake-n6nox6vn-7a2e4-06dsf/events.out.tfevents.1736685966.r-vivi3n789-re-train-deepfake-n6nox6vn-7a2e4-06dsf.170.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:14f4e2ec36032f1dc4ffc46223e13dd6a93ad1ec025d02993db0c494e3c0c1df
|
3 |
+
size 19729
|
runs/Jan12_12-46-04_r-vivi3n789-re-train-deepfake-n6nox6vn-7a2e4-06dsf/events.out.tfevents.1736698181.r-vivi3n789-re-train-deepfake-n6nox6vn-7a2e4-06dsf.170.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:08d869686415a600cbc444d262b8166b7cde11b11ac4a5d1627a829f32b258f6
|
3 |
+
size 607
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83d00562131c54a361af2516916ac8bc9870755a6c719bc1e41a37b1efac132f
|
3 |
+
size 5368
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "autotrain-vivi3n/autotrain-data",
|
3 |
+
"model": "dima806/deepfake_vs_real_image_detection",
|
4 |
+
"username": "vivi3n789",
|
5 |
+
"lr": 5e-05,
|
6 |
+
"epochs": 3,
|
7 |
+
"batch_size": 8,
|
8 |
+
"warmup_ratio": 0.1,
|
9 |
+
"gradient_accumulation": 1,
|
10 |
+
"optimizer": "adamw_torch",
|
11 |
+
"scheduler": "linear",
|
12 |
+
"weight_decay": 0.0,
|
13 |
+
"max_grad_norm": 1.0,
|
14 |
+
"seed": 42,
|
15 |
+
"train_split": "train",
|
16 |
+
"valid_split": "validation",
|
17 |
+
"logging_steps": -1,
|
18 |
+
"project_name": "autotrain-vivi3n",
|
19 |
+
"auto_find_batch_size": false,
|
20 |
+
"mixed_precision": "fp16",
|
21 |
+
"save_total_limit": 1,
|
22 |
+
"push_to_hub": true,
|
23 |
+
"eval_strategy": "epoch",
|
24 |
+
"image_column": "autotrain_image",
|
25 |
+
"target_column": "autotrain_label",
|
26 |
+
"log": "tensorboard",
|
27 |
+
"early_stopping_patience": 5,
|
28 |
+
"early_stopping_threshold": 0.01
|
29 |
+
}
|