prithivMLmods
commited on
Upload folder using huggingface_hub
Browse files- checkpoint-5252/config.json +32 -0
- checkpoint-5252/model.safetensors +3 -0
- checkpoint-5252/optimizer.pt +3 -0
- checkpoint-5252/preprocessor_config.json +23 -0
- checkpoint-5252/rng_state.pth +3 -0
- checkpoint-5252/scheduler.pt +3 -0
- checkpoint-5252/trainer_state.json +123 -0
- checkpoint-5252/training_args.bin +3 -0
- config.json +32 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- training_args.bin +3 -0
checkpoint-5252/config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "Realism",
|
13 |
+
"1": "Deepfake"
|
14 |
+
},
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"Deepfake": 1,
|
20 |
+
"Realism": 0
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-12,
|
23 |
+
"model_type": "vit",
|
24 |
+
"num_attention_heads": 12,
|
25 |
+
"num_channels": 3,
|
26 |
+
"num_hidden_layers": 12,
|
27 |
+
"patch_size": 16,
|
28 |
+
"problem_type": "single_label_classification",
|
29 |
+
"qkv_bias": true,
|
30 |
+
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.49.0.dev0"
|
32 |
+
}
|
checkpoint-5252/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:88ac0939285009e3700cfc9b9a0912b14b092d200ef0df86efe4f2cf190ea4de
|
3 |
+
size 343223968
|
checkpoint-5252/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:153aa259991e716cdd80eb64b8e893699d2b7918922e047777037df4359701fe
|
3 |
+
size 686568890
|
checkpoint-5252/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 |
+
}
|
checkpoint-5252/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f3616591574c0816a5b6e91268bf6c52243eb9267b149460ada41cf03819730e
|
3 |
+
size 14244
|
checkpoint-5252/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ee8086db50b520b9f2e97607eeb75dd66111eaca904ca2be391171cd3e5fc881
|
3 |
+
size 1064
|
checkpoint-5252/trainer_state.json
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.26301252841949463,
|
3 |
+
"best_model_checkpoint": "Deep-Fake-Detector-v2-Model/checkpoint-5252",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 5252,
|
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.19040365575019041,
|
13 |
+
"grad_norm": 1.327303409576416,
|
14 |
+
"learning_rate": 9.134948096885813e-07,
|
15 |
+
"loss": 0.6732,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.38080731150038083,
|
20 |
+
"grad_norm": 1.7751009464263916,
|
21 |
+
"learning_rate": 8.173779315647827e-07,
|
22 |
+
"loss": 0.5327,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.5712109672505712,
|
27 |
+
"grad_norm": 1.6521474123001099,
|
28 |
+
"learning_rate": 7.212610534409842e-07,
|
29 |
+
"loss": 0.3786,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.7616146230007617,
|
34 |
+
"grad_norm": 2.2782256603240967,
|
35 |
+
"learning_rate": 6.251441753171857e-07,
|
36 |
+
"loss": 0.2915,
|
37 |
+
"step": 2000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.952018278750952,
|
41 |
+
"grad_norm": 3.206688404083252,
|
42 |
+
"learning_rate": 5.290272971933871e-07,
|
43 |
+
"loss": 0.2514,
|
44 |
+
"step": 2500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 1.0,
|
48 |
+
"eval_accuracy": 0.9014303316012214,
|
49 |
+
"eval_loss": 0.3288443684577942,
|
50 |
+
"eval_model_preparation_time": 0.0045,
|
51 |
+
"eval_runtime": 705.7746,
|
52 |
+
"eval_samples_per_second": 79.347,
|
53 |
+
"eval_steps_per_second": 9.92,
|
54 |
+
"step": 2626
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 1.1424219345011424,
|
58 |
+
"grad_norm": 1.8252031803131104,
|
59 |
+
"learning_rate": 4.329104190695886e-07,
|
60 |
+
"loss": 0.2291,
|
61 |
+
"step": 3000
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"epoch": 1.3328255902513328,
|
65 |
+
"grad_norm": 1.8791033029556274,
|
66 |
+
"learning_rate": 3.3679354094579007e-07,
|
67 |
+
"loss": 0.2105,
|
68 |
+
"step": 3500
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 1.5232292460015233,
|
72 |
+
"grad_norm": 3.629302978515625,
|
73 |
+
"learning_rate": 2.4067666282199155e-07,
|
74 |
+
"loss": 0.1987,
|
75 |
+
"step": 4000
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 1.7136329017517138,
|
79 |
+
"grad_norm": 4.405089855194092,
|
80 |
+
"learning_rate": 1.4455978469819298e-07,
|
81 |
+
"loss": 0.1951,
|
82 |
+
"step": 4500
|
83 |
+
},
|
84 |
+
{
|
85 |
+
"epoch": 1.904036557501904,
|
86 |
+
"grad_norm": 6.710102081298828,
|
87 |
+
"learning_rate": 4.8442906574394464e-08,
|
88 |
+
"loss": 0.1944,
|
89 |
+
"step": 5000
|
90 |
+
},
|
91 |
+
{
|
92 |
+
"epoch": 2.0,
|
93 |
+
"eval_accuracy": 0.9211621221049624,
|
94 |
+
"eval_loss": 0.26301252841949463,
|
95 |
+
"eval_model_preparation_time": 0.0045,
|
96 |
+
"eval_runtime": 705.6665,
|
97 |
+
"eval_samples_per_second": 79.359,
|
98 |
+
"eval_steps_per_second": 9.921,
|
99 |
+
"step": 5252
|
100 |
+
}
|
101 |
+
],
|
102 |
+
"logging_steps": 500,
|
103 |
+
"max_steps": 5252,
|
104 |
+
"num_input_tokens_seen": 0,
|
105 |
+
"num_train_epochs": 2,
|
106 |
+
"save_steps": 500,
|
107 |
+
"stateful_callbacks": {
|
108 |
+
"TrainerControl": {
|
109 |
+
"args": {
|
110 |
+
"should_epoch_stop": false,
|
111 |
+
"should_evaluate": false,
|
112 |
+
"should_log": false,
|
113 |
+
"should_save": true,
|
114 |
+
"should_training_stop": true
|
115 |
+
},
|
116 |
+
"attributes": {}
|
117 |
+
}
|
118 |
+
},
|
119 |
+
"total_flos": 1.3018809239230685e+19,
|
120 |
+
"train_batch_size": 32,
|
121 |
+
"trial_name": null,
|
122 |
+
"trial_params": null
|
123 |
+
}
|
checkpoint-5252/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e1d307efe97ad2b950b19663fa919e3bbd423f67768eda34dea61ffcd126e8a4
|
3 |
+
size 5304
|
config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "Realism",
|
13 |
+
"1": "Deepfake"
|
14 |
+
},
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"Deepfake": 1,
|
20 |
+
"Realism": 0
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-12,
|
23 |
+
"model_type": "vit",
|
24 |
+
"num_attention_heads": 12,
|
25 |
+
"num_channels": 3,
|
26 |
+
"num_hidden_layers": 12,
|
27 |
+
"patch_size": 16,
|
28 |
+
"problem_type": "single_label_classification",
|
29 |
+
"qkv_bias": true,
|
30 |
+
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.49.0.dev0"
|
32 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:88ac0939285009e3700cfc9b9a0912b14b092d200ef0df86efe4f2cf190ea4de
|
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 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e1d307efe97ad2b950b19663fa919e3bbd423f67768eda34dea61ffcd126e8a4
|
3 |
+
size 5304
|