Upload folder using huggingface_hub
Browse files- checkpoint-8440/config.json +32 -0
- checkpoint-8440/optimizer.pt +3 -0
- checkpoint-8440/preprocessor_config.json +22 -0
- checkpoint-8440/pytorch_model.bin +3 -0
- checkpoint-8440/rng_state.pth +3 -0
- checkpoint-8440/scheduler.pt +3 -0
- checkpoint-8440/trainer_state.json +160 -0
- checkpoint-8440/training_args.bin +3 -0
- config.json +32 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
checkpoint-8440/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": "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.34.0"
|
32 |
+
}
|
checkpoint-8440/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1b583e1fdf5005c72375e1a3a5f75f6f98f02ea7b896b335ea250c58d7c4ceb4
|
3 |
+
size 686568453
|
checkpoint-8440/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-8440/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3ee9511c4aea31585701b13cc75639e26bb4437581af161244d4996fc509d57
|
3 |
+
size 343268717
|
checkpoint-8440/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:675741f06bf0154188a79f5025905c62bfed9ad5666579ef8150b2dd8a73296f
|
3 |
+
size 14575
|
checkpoint-8440/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:39db12678132f9b7e5c5e223ce35b171c6743ec311ddf7d7ba16f4f26cdf58aa
|
3 |
+
size 627
|
checkpoint-8440/trainer_state.json
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.05447809770703316,
|
3 |
+
"best_model_checkpoint": "ai_vs_real_image_detection/checkpoint-8440",
|
4 |
+
"epoch": 5.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 8440,
|
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.3,
|
13 |
+
"learning_rate": 9.463647199046485e-06,
|
14 |
+
"loss": 0.2818,
|
15 |
+
"step": 500
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.59,
|
19 |
+
"learning_rate": 8.867699642431467e-06,
|
20 |
+
"loss": 0.1106,
|
21 |
+
"step": 1000
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.89,
|
25 |
+
"learning_rate": 8.27175208581645e-06,
|
26 |
+
"loss": 0.0871,
|
27 |
+
"step": 1500
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 1.0,
|
31 |
+
"eval_accuracy": 0.9599166666666666,
|
32 |
+
"eval_loss": 0.13126564025878906,
|
33 |
+
"eval_runtime": 108.7151,
|
34 |
+
"eval_samples_per_second": 110.38,
|
35 |
+
"eval_steps_per_second": 3.449,
|
36 |
+
"step": 1688
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"epoch": 1.18,
|
40 |
+
"learning_rate": 7.675804529201431e-06,
|
41 |
+
"loss": 0.0641,
|
42 |
+
"step": 2000
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"epoch": 1.48,
|
46 |
+
"learning_rate": 7.079856972586413e-06,
|
47 |
+
"loss": 0.0554,
|
48 |
+
"step": 2500
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"epoch": 1.78,
|
52 |
+
"learning_rate": 6.483909415971396e-06,
|
53 |
+
"loss": 0.0542,
|
54 |
+
"step": 3000
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 2.0,
|
58 |
+
"eval_accuracy": 0.97675,
|
59 |
+
"eval_loss": 0.06993511319160461,
|
60 |
+
"eval_runtime": 110.3278,
|
61 |
+
"eval_samples_per_second": 108.767,
|
62 |
+
"eval_steps_per_second": 3.399,
|
63 |
+
"step": 3376
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 2.07,
|
67 |
+
"learning_rate": 5.887961859356377e-06,
|
68 |
+
"loss": 0.0448,
|
69 |
+
"step": 3500
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 2.37,
|
73 |
+
"learning_rate": 5.2920143027413596e-06,
|
74 |
+
"loss": 0.0372,
|
75 |
+
"step": 4000
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 2.67,
|
79 |
+
"learning_rate": 4.696066746126342e-06,
|
80 |
+
"loss": 0.0344,
|
81 |
+
"step": 4500
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 2.96,
|
85 |
+
"learning_rate": 4.100119189511323e-06,
|
86 |
+
"loss": 0.031,
|
87 |
+
"step": 5000
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 3.0,
|
91 |
+
"eval_accuracy": 0.9773333333333334,
|
92 |
+
"eval_loss": 0.06398669630289078,
|
93 |
+
"eval_runtime": 110.6996,
|
94 |
+
"eval_samples_per_second": 108.401,
|
95 |
+
"eval_steps_per_second": 3.388,
|
96 |
+
"step": 5064
|
97 |
+
},
|
98 |
+
{
|
99 |
+
"epoch": 3.26,
|
100 |
+
"learning_rate": 3.5041716328963056e-06,
|
101 |
+
"loss": 0.0252,
|
102 |
+
"step": 5500
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"epoch": 3.55,
|
106 |
+
"learning_rate": 2.9082240762812874e-06,
|
107 |
+
"loss": 0.0226,
|
108 |
+
"step": 6000
|
109 |
+
},
|
110 |
+
{
|
111 |
+
"epoch": 3.85,
|
112 |
+
"learning_rate": 2.3122765196662693e-06,
|
113 |
+
"loss": 0.024,
|
114 |
+
"step": 6500
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 4.0,
|
118 |
+
"eval_accuracy": 0.9770833333333333,
|
119 |
+
"eval_loss": 0.06279084086418152,
|
120 |
+
"eval_runtime": 110.8304,
|
121 |
+
"eval_samples_per_second": 108.274,
|
122 |
+
"eval_steps_per_second": 3.384,
|
123 |
+
"step": 6752
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 4.15,
|
127 |
+
"learning_rate": 1.7163289630512518e-06,
|
128 |
+
"loss": 0.019,
|
129 |
+
"step": 7000
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 4.44,
|
133 |
+
"learning_rate": 1.1203814064362336e-06,
|
134 |
+
"loss": 0.0171,
|
135 |
+
"step": 7500
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 4.74,
|
139 |
+
"learning_rate": 5.244338498212158e-07,
|
140 |
+
"loss": 0.0158,
|
141 |
+
"step": 8000
|
142 |
+
},
|
143 |
+
{
|
144 |
+
"epoch": 5.0,
|
145 |
+
"eval_accuracy": 0.9804166666666667,
|
146 |
+
"eval_loss": 0.05447809770703316,
|
147 |
+
"eval_runtime": 108.5958,
|
148 |
+
"eval_samples_per_second": 110.502,
|
149 |
+
"eval_steps_per_second": 3.453,
|
150 |
+
"step": 8440
|
151 |
+
}
|
152 |
+
],
|
153 |
+
"logging_steps": 500,
|
154 |
+
"max_steps": 8440,
|
155 |
+
"num_train_epochs": 5,
|
156 |
+
"save_steps": 500,
|
157 |
+
"total_flos": 4.184567439187968e+19,
|
158 |
+
"trial_name": null,
|
159 |
+
"trial_params": null
|
160 |
+
}
|
checkpoint-8440/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:421bdc39b2ea43219c073f34e0d65a8548d36830f975957689c797414e940423
|
3 |
+
size 4027
|
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": "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.34.0"
|
32 |
+
}
|
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 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3ee9511c4aea31585701b13cc75639e26bb4437581af161244d4996fc509d57
|
3 |
+
size 343268717
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:421bdc39b2ea43219c073f34e0d65a8548d36830f975957689c797414e940423
|
3 |
+
size 4027
|