Upload folder using huggingface_hub
Browse files- checkpoint-3572/config.json +32 -0
- checkpoint-3572/model.safetensors +3 -0
- checkpoint-3572/optimizer.pt +3 -0
- checkpoint-3572/preprocessor_config.json +36 -0
- checkpoint-3572/rng_state.pth +3 -0
- checkpoint-3572/scheduler.pt +3 -0
- checkpoint-3572/trainer_state.json +88 -0
- checkpoint-3572/training_args.bin +3 -0
- config.json +32 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- training_args.bin +3 -0
checkpoint-3572/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.39.3"
|
32 |
+
}
|
checkpoint-3572/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b074cfb8974d6281fcbb6b3596bd723226cffcf171463b7caf48d1a022c95fef
|
3 |
+
size 343223968
|
checkpoint-3572/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5184f5260d49ef8317d2d6735a0154f441ebba130c762c1b0314f0d5c52fbde4
|
3 |
+
size 686568453
|
checkpoint-3572/preprocessor_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_rescale",
|
8 |
+
"rescale_factor",
|
9 |
+
"do_normalize",
|
10 |
+
"image_mean",
|
11 |
+
"image_std",
|
12 |
+
"return_tensors",
|
13 |
+
"data_format",
|
14 |
+
"input_data_format"
|
15 |
+
],
|
16 |
+
"do_normalize": true,
|
17 |
+
"do_rescale": true,
|
18 |
+
"do_resize": true,
|
19 |
+
"image_mean": [
|
20 |
+
0.5,
|
21 |
+
0.5,
|
22 |
+
0.5
|
23 |
+
],
|
24 |
+
"image_processor_type": "ViTImageProcessor",
|
25 |
+
"image_std": [
|
26 |
+
0.5,
|
27 |
+
0.5,
|
28 |
+
0.5
|
29 |
+
],
|
30 |
+
"resample": 2,
|
31 |
+
"rescale_factor": 0.00392156862745098,
|
32 |
+
"size": {
|
33 |
+
"height": 224,
|
34 |
+
"width": 224
|
35 |
+
}
|
36 |
+
}
|
checkpoint-3572/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c30cec13efd6fed6d1ca812cbe9784170c6d1bd0256aee483eba74213d7dac15
|
3 |
+
size 14575
|
checkpoint-3572/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a30dbb7956e25517562c65aa603c50912c65d5ebd9d7fe31fee42f130baad30
|
3 |
+
size 627
|
checkpoint-3572/trainer_state.json
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.3636830747127533,
|
3 |
+
"best_model_checkpoint": "deepfake_vs_real_image_detection/checkpoint-3572",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 3572,
|
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.28,
|
13 |
+
"grad_norm": 0.8946375846862793,
|
14 |
+
"learning_rate": 8.722316865417377e-07,
|
15 |
+
"loss": 0.6502,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.56,
|
20 |
+
"grad_norm": 1.2956762313842773,
|
21 |
+
"learning_rate": 7.30266893810335e-07,
|
22 |
+
"loss": 0.438,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.84,
|
27 |
+
"grad_norm": 2.028836727142334,
|
28 |
+
"learning_rate": 5.883021010789324e-07,
|
29 |
+
"loss": 0.3113,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 1.0,
|
34 |
+
"eval_accuracy": 0.8912435498483475,
|
35 |
+
"eval_loss": 0.4092613160610199,
|
36 |
+
"eval_runtime": 1919.7082,
|
37 |
+
"eval_samples_per_second": 39.673,
|
38 |
+
"eval_steps_per_second": 2.48,
|
39 |
+
"step": 1786
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 1.12,
|
43 |
+
"grad_norm": 4.174021244049072,
|
44 |
+
"learning_rate": 4.463373083475298e-07,
|
45 |
+
"loss": 0.2652,
|
46 |
+
"step": 2000
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 1.4,
|
50 |
+
"grad_norm": 3.082073450088501,
|
51 |
+
"learning_rate": 3.043725156161272e-07,
|
52 |
+
"loss": 0.2386,
|
53 |
+
"step": 2500
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 1.68,
|
57 |
+
"grad_norm": 2.7529916763305664,
|
58 |
+
"learning_rate": 1.6240772288472457e-07,
|
59 |
+
"loss": 0.2299,
|
60 |
+
"step": 3000
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"epoch": 1.96,
|
64 |
+
"grad_norm": 2.8055806159973145,
|
65 |
+
"learning_rate": 2.0442930153321974e-08,
|
66 |
+
"loss": 0.2205,
|
67 |
+
"step": 3500
|
68 |
+
},
|
69 |
+
{
|
70 |
+
"epoch": 2.0,
|
71 |
+
"eval_accuracy": 0.9079844014653169,
|
72 |
+
"eval_loss": 0.3636830747127533,
|
73 |
+
"eval_runtime": 1896.0832,
|
74 |
+
"eval_samples_per_second": 40.168,
|
75 |
+
"eval_steps_per_second": 2.511,
|
76 |
+
"step": 3572
|
77 |
+
}
|
78 |
+
],
|
79 |
+
"logging_steps": 500,
|
80 |
+
"max_steps": 3572,
|
81 |
+
"num_input_tokens_seen": 0,
|
82 |
+
"num_train_epochs": 2,
|
83 |
+
"save_steps": 500,
|
84 |
+
"total_flos": 1.770552477112121e+19,
|
85 |
+
"train_batch_size": 64,
|
86 |
+
"trial_name": null,
|
87 |
+
"trial_params": null
|
88 |
+
}
|
checkpoint-3572/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30715c1e73d9a84360fdd3ccc8383c9160f452fd940b5a8315fc51a7d246cf08
|
3 |
+
size 4411
|
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.39.3"
|
32 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b074cfb8974d6281fcbb6b3596bd723226cffcf171463b7caf48d1a022c95fef
|
3 |
+
size 343223968
|
preprocessor_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_rescale",
|
8 |
+
"rescale_factor",
|
9 |
+
"do_normalize",
|
10 |
+
"image_mean",
|
11 |
+
"image_std",
|
12 |
+
"return_tensors",
|
13 |
+
"data_format",
|
14 |
+
"input_data_format"
|
15 |
+
],
|
16 |
+
"do_normalize": true,
|
17 |
+
"do_rescale": true,
|
18 |
+
"do_resize": true,
|
19 |
+
"image_mean": [
|
20 |
+
0.5,
|
21 |
+
0.5,
|
22 |
+
0.5
|
23 |
+
],
|
24 |
+
"image_processor_type": "ViTImageProcessor",
|
25 |
+
"image_std": [
|
26 |
+
0.5,
|
27 |
+
0.5,
|
28 |
+
0.5
|
29 |
+
],
|
30 |
+
"resample": 2,
|
31 |
+
"rescale_factor": 0.00392156862745098,
|
32 |
+
"size": {
|
33 |
+
"height": 224,
|
34 |
+
"width": 224
|
35 |
+
}
|
36 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30715c1e73d9a84360fdd3ccc8383c9160f452fd940b5a8315fc51a7d246cf08
|
3 |
+
size 4411
|