Upload 12 files
Browse files- checkpoint-3571/config.json +32 -0
- checkpoint-3571/model.safetensors +3 -0
- checkpoint-3571/optimizer.pt +3 -0
- checkpoint-3571/preprocessor_config.json +23 -0
- checkpoint-3571/rng_state.pth +3 -0
- checkpoint-3571/scheduler.pt +3 -0
- checkpoint-3571/trainer_state.json +92 -0
- checkpoint-3571/training_args.bin +3 -0
- config.json +32 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- training_args.bin +3 -0
checkpoint-3571/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.47.0"
|
32 |
+
}
|
checkpoint-3571/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a036d45ffedcaf1e80f859408c7021b08d5fed539d2b24e1feb5a13ecbd9e91
|
3 |
+
size 343223968
|
checkpoint-3571/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b734cfb5f88fa864999571568a606191d61875f5e15d61abd56c7eacbec636c7
|
3 |
+
size 686568890
|
checkpoint-3571/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-3571/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:013740e884d6c47e76f37df5c6cfde3f2478eb07b3fe4e3f11c9ebaab6c3b799
|
3 |
+
size 14244
|
checkpoint-3571/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:40b558767df991cc8e45c6dcf9148f05a483ff3a287ff6b4f8e9e7d93f46a1b7
|
3 |
+
size 1064
|
checkpoint-3571/trainer_state.json
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.025035962462425232,
|
3 |
+
"best_model_checkpoint": "ImageModel_epoch2/checkpoint-3571",
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 3571,
|
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.14001680201624195,
|
13 |
+
"grad_norm": 2.550574779510498,
|
14 |
+
"learning_rate": 9.365482233502537e-07,
|
15 |
+
"loss": 0.0555,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.2800336040324839,
|
20 |
+
"grad_norm": 9.52102279663086,
|
21 |
+
"learning_rate": 8.660462492949803e-07,
|
22 |
+
"loss": 0.0577,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.42005040604872584,
|
27 |
+
"grad_norm": 0.47586485743522644,
|
28 |
+
"learning_rate": 7.955442752397067e-07,
|
29 |
+
"loss": 0.0559,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.5600672080649678,
|
34 |
+
"grad_norm": 6.416574954986572,
|
35 |
+
"learning_rate": 7.250423011844331e-07,
|
36 |
+
"loss": 0.0523,
|
37 |
+
"step": 2000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.7000840100812098,
|
41 |
+
"grad_norm": 0.09677104651927948,
|
42 |
+
"learning_rate": 6.545403271291596e-07,
|
43 |
+
"loss": 0.0522,
|
44 |
+
"step": 2500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.8401008120974517,
|
48 |
+
"grad_norm": 9.409303665161133,
|
49 |
+
"learning_rate": 5.840383530738861e-07,
|
50 |
+
"loss": 0.0494,
|
51 |
+
"step": 3000
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.9801176141136937,
|
55 |
+
"grad_norm": 0.13393256068229675,
|
56 |
+
"learning_rate": 5.135363790186125e-07,
|
57 |
+
"loss": 0.0494,
|
58 |
+
"step": 3500
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 1.0,
|
62 |
+
"eval_accuracy": 0.9919643912238547,
|
63 |
+
"eval_loss": 0.025035962462425232,
|
64 |
+
"eval_model_preparation_time": 0.0054,
|
65 |
+
"eval_runtime": 956.5971,
|
66 |
+
"eval_samples_per_second": 79.617,
|
67 |
+
"eval_steps_per_second": 9.953,
|
68 |
+
"step": 3571
|
69 |
+
}
|
70 |
+
],
|
71 |
+
"logging_steps": 500,
|
72 |
+
"max_steps": 7142,
|
73 |
+
"num_input_tokens_seen": 0,
|
74 |
+
"num_train_epochs": 2,
|
75 |
+
"save_steps": 500,
|
76 |
+
"stateful_callbacks": {
|
77 |
+
"TrainerControl": {
|
78 |
+
"args": {
|
79 |
+
"should_epoch_stop": false,
|
80 |
+
"should_evaluate": false,
|
81 |
+
"should_log": false,
|
82 |
+
"should_save": true,
|
83 |
+
"should_training_stop": false
|
84 |
+
},
|
85 |
+
"attributes": {}
|
86 |
+
}
|
87 |
+
},
|
88 |
+
"total_flos": 8.852762385560605e+18,
|
89 |
+
"train_batch_size": 32,
|
90 |
+
"trial_name": null,
|
91 |
+
"trial_params": null
|
92 |
+
}
|
checkpoint-3571/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49a0c3ec9e078038f2711a6d08eb1ad2d9aa482130e5ceb6c393447e0e8a1073
|
3 |
+
size 5240
|
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.47.0"
|
32 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:864f2a687aa536dba96eb8e4714d3521a277995b26d9416e6f865d97d4dd2839
|
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:49a0c3ec9e078038f2711a6d08eb1ad2d9aa482130e5ceb6c393447e0e8a1073
|
3 |
+
size 5240
|