sakshamkr1
commited on
Commit
•
6ddcd47
1
Parent(s):
cb2a0e3
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 +22 -0
- checkpoint-3572/rng_state.pth +3 -0
- checkpoint-3572/scheduler.pt +3 -0
- checkpoint-3572/trainer_state.json +100 -0
- checkpoint-3572/training_args.bin +3 -0
- config.json +32 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- training_args.bin +3 -0
checkpoint-3572/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.43.2"
|
32 |
+
}
|
checkpoint-3572/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b0f96c802afa012b730cae4481038c8ef74dfa38d32eb400b7330d608c3a2913
|
3 |
+
size 343223968
|
checkpoint-3572/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3f158c8b193b26ed7053c7a1f2fa02daa4b46cce0ea47753877d07be5c0180da
|
3 |
+
size 686568453
|
checkpoint-3572/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-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,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.02370932325720787,
|
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.2799552071668533,
|
13 |
+
"grad_norm": 4.165268898010254,
|
14 |
+
"learning_rate": 8.722316865417377e-07,
|
15 |
+
"loss": 0.0511,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.5599104143337066,
|
20 |
+
"grad_norm": 3.690711498260498,
|
21 |
+
"learning_rate": 7.30266893810335e-07,
|
22 |
+
"loss": 0.0524,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.8398656215005599,
|
27 |
+
"grad_norm": 0.20677463710308075,
|
28 |
+
"learning_rate": 5.883021010789324e-07,
|
29 |
+
"loss": 0.0515,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 1.0,
|
34 |
+
"eval_accuracy": 0.9920431717020523,
|
35 |
+
"eval_loss": 0.023838115856051445,
|
36 |
+
"eval_runtime": 817.564,
|
37 |
+
"eval_samples_per_second": 93.156,
|
38 |
+
"eval_steps_per_second": 5.823,
|
39 |
+
"step": 1786
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 1.1198208286674132,
|
43 |
+
"grad_norm": 2.9442081451416016,
|
44 |
+
"learning_rate": 4.463373083475298e-07,
|
45 |
+
"loss": 0.0461,
|
46 |
+
"step": 2000
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 1.3997760358342666,
|
50 |
+
"grad_norm": 1.0677539110183716,
|
51 |
+
"learning_rate": 3.043725156161272e-07,
|
52 |
+
"loss": 0.0487,
|
53 |
+
"step": 2500
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 1.67973124300112,
|
57 |
+
"grad_norm": 3.8556222915649414,
|
58 |
+
"learning_rate": 1.6240772288472457e-07,
|
59 |
+
"loss": 0.0453,
|
60 |
+
"step": 3000
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"epoch": 1.9596864501679732,
|
64 |
+
"grad_norm": 3.174131393432617,
|
65 |
+
"learning_rate": 2.0442930153321974e-08,
|
66 |
+
"loss": 0.045,
|
67 |
+
"step": 3500
|
68 |
+
},
|
69 |
+
{
|
70 |
+
"epoch": 2.0,
|
71 |
+
"eval_accuracy": 0.9920431717020523,
|
72 |
+
"eval_loss": 0.02370932325720787,
|
73 |
+
"eval_runtime": 805.4241,
|
74 |
+
"eval_samples_per_second": 94.56,
|
75 |
+
"eval_steps_per_second": 5.911,
|
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 |
+
"stateful_callbacks": {
|
85 |
+
"TrainerControl": {
|
86 |
+
"args": {
|
87 |
+
"should_epoch_stop": false,
|
88 |
+
"should_evaluate": false,
|
89 |
+
"should_log": false,
|
90 |
+
"should_save": true,
|
91 |
+
"should_training_stop": true
|
92 |
+
},
|
93 |
+
"attributes": {}
|
94 |
+
}
|
95 |
+
},
|
96 |
+
"total_flos": 1.770552477112121e+19,
|
97 |
+
"train_batch_size": 64,
|
98 |
+
"trial_name": null,
|
99 |
+
"trial_params": null
|
100 |
+
}
|
checkpoint-3572/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3dc8fa7319cc37accb16585bb32d8aae83b812bf6c94e3757a01ac19f2b3cb7a
|
3 |
+
size 4667
|
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.43.2"
|
32 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b0f96c802afa012b730cae4481038c8ef74dfa38d32eb400b7330d608c3a2913
|
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:3dc8fa7319cc37accb16585bb32d8aae83b812bf6c94e3757a01ac19f2b3cb7a
|
3 |
+
size 4667
|