Siku788 commited on
Commit
51eeac5
·
verified ·
1 Parent(s): ab3ee4f

Upload folder using huggingface_hub

Browse files
checkpoint-7998/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/deepfake_vs_real_image_detection",
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": "Real",
13
+ "1": "Fake"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "Fake": 1,
20
+ "Real": 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.45.2"
32
+ }
checkpoint-7998/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aea2a191c0c835da20ce666c521582d1a8e9f62f0c0c2843acaeb7b7166a8e72
3
+ size 343223968
checkpoint-7998/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e82eb4b63699037cd3bc1dd397cf2b60f8ba7dc07656da05ecfbc0728a331a28
3
+ size 686568890
checkpoint-7998/preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
checkpoint-7998/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20bae3f2bc4aa6fb562ff7618eb05f3142a2ad0c068643ba295141ed61f83604
3
+ size 14244
checkpoint-7998/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f055a8f548ddd7c7aee91deb4607debd6093552dd7605ae7bd42f517dee034df
3
+ size 1064
checkpoint-7998/trainer_state.json ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.2657858431339264,
3
+ "best_model_checkpoint": "deepfake_vs_real_image_detection/checkpoint-7998",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 7998,
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.18754688672168043,
13
+ "grad_norm": 3.8869080543518066,
14
+ "learning_rate": 9.43381982888777e-07,
15
+ "loss": 0.9437,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.37509377344336087,
20
+ "grad_norm": 5.849929332733154,
21
+ "learning_rate": 8.804730749874182e-07,
22
+ "loss": 0.5025,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.5626406601650412,
27
+ "grad_norm": 10.627140045166016,
28
+ "learning_rate": 8.175641670860593e-07,
29
+ "loss": 0.4137,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 0.7501875468867217,
34
+ "grad_norm": 6.05531644821167,
35
+ "learning_rate": 7.546552591847005e-07,
36
+ "loss": 0.3563,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 0.9377344336084021,
41
+ "grad_norm": 7.301521301269531,
42
+ "learning_rate": 6.917463512833417e-07,
43
+ "loss": 0.3179,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "eval_accuracy": 0.8625868284533544,
49
+ "eval_loss": 0.3228318393230438,
50
+ "eval_model_preparation_time": 0.0055,
51
+ "eval_runtime": 634.6946,
52
+ "eval_samples_per_second": 89.594,
53
+ "eval_steps_per_second": 11.201,
54
+ "step": 2666
55
+ },
56
+ {
57
+ "epoch": 1.1252813203300824,
58
+ "grad_norm": 7.1418375968933105,
59
+ "learning_rate": 6.288374433819828e-07,
60
+ "loss": 0.2951,
61
+ "step": 3000
62
+ },
63
+ {
64
+ "epoch": 1.312828207051763,
65
+ "grad_norm": 12.518142700195312,
66
+ "learning_rate": 5.65928535480624e-07,
67
+ "loss": 0.2749,
68
+ "step": 3500
69
+ },
70
+ {
71
+ "epoch": 1.5003750937734432,
72
+ "grad_norm": 7.537821292877197,
73
+ "learning_rate": 5.030196275792652e-07,
74
+ "loss": 0.2542,
75
+ "step": 4000
76
+ },
77
+ {
78
+ "epoch": 1.6879219804951238,
79
+ "grad_norm": 8.785564422607422,
80
+ "learning_rate": 4.4011071967790636e-07,
81
+ "loss": 0.2496,
82
+ "step": 4500
83
+ },
84
+ {
85
+ "epoch": 1.8754688672168043,
86
+ "grad_norm": 8.230996131896973,
87
+ "learning_rate": 3.7720181177654754e-07,
88
+ "loss": 0.2347,
89
+ "step": 5000
90
+ },
91
+ {
92
+ "epoch": 2.0,
93
+ "eval_accuracy": 0.8783962015299394,
94
+ "eval_loss": 0.28315049409866333,
95
+ "eval_model_preparation_time": 0.0055,
96
+ "eval_runtime": 618.5578,
97
+ "eval_samples_per_second": 91.932,
98
+ "eval_steps_per_second": 11.493,
99
+ "step": 5332
100
+ },
101
+ {
102
+ "epoch": 2.0630157539384846,
103
+ "grad_norm": 8.427594184875488,
104
+ "learning_rate": 3.142929038751887e-07,
105
+ "loss": 0.2317,
106
+ "step": 5500
107
+ },
108
+ {
109
+ "epoch": 2.250562640660165,
110
+ "grad_norm": 7.748924732208252,
111
+ "learning_rate": 2.5138399597382987e-07,
112
+ "loss": 0.2347,
113
+ "step": 6000
114
+ },
115
+ {
116
+ "epoch": 2.4381095273818456,
117
+ "grad_norm": 8.576868057250977,
118
+ "learning_rate": 1.8847508807247105e-07,
119
+ "loss": 0.2228,
120
+ "step": 6500
121
+ },
122
+ {
123
+ "epoch": 2.625656414103526,
124
+ "grad_norm": 6.261688709259033,
125
+ "learning_rate": 1.2556618017111224e-07,
126
+ "loss": 0.2153,
127
+ "step": 7000
128
+ },
129
+ {
130
+ "epoch": 2.813203300825206,
131
+ "grad_norm": 10.823939323425293,
132
+ "learning_rate": 6.26572722697534e-08,
133
+ "loss": 0.2143,
134
+ "step": 7500
135
+ },
136
+ {
137
+ "epoch": 3.0,
138
+ "eval_accuracy": 0.8868196605996659,
139
+ "eval_loss": 0.2657858431339264,
140
+ "eval_model_preparation_time": 0.0055,
141
+ "eval_runtime": 609.2124,
142
+ "eval_samples_per_second": 93.342,
143
+ "eval_steps_per_second": 11.669,
144
+ "step": 7998
145
+ }
146
+ ],
147
+ "logging_steps": 500,
148
+ "max_steps": 7998,
149
+ "num_input_tokens_seen": 0,
150
+ "num_train_epochs": 3,
151
+ "save_steps": 500,
152
+ "stateful_callbacks": {
153
+ "TrainerControl": {
154
+ "args": {
155
+ "should_epoch_stop": false,
156
+ "should_evaluate": false,
157
+ "should_log": false,
158
+ "should_save": true,
159
+ "should_training_stop": true
160
+ },
161
+ "attributes": {}
162
+ }
163
+ },
164
+ "total_flos": 1.982950271446756e+19,
165
+ "train_batch_size": 32,
166
+ "trial_name": null,
167
+ "trial_params": null
168
+ }
checkpoint-7998/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be28f94bda083846811f1ec60f1f7943d3113cc3593577a5b73f47357e488f5d
3
+ size 5176
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/deepfake_vs_real_image_detection",
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": "Real",
13
+ "1": "Fake"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "Fake": 1,
20
+ "Real": 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.45.2"
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aea2a191c0c835da20ce666c521582d1a8e9f62f0c0c2843acaeb7b7166a8e72
3
+ size 343223968
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be28f94bda083846811f1ec60f1f7943d3113cc3593577a5b73f47357e488f5d
3
+ size 5176