Upload 8 files
Browse files- checkpoint- 2626/config.json +32 -0
- checkpoint- 2626/model.safetensors +3 -0
- checkpoint- 2626/optimizer.pt +3 -0
- checkpoint- 2626/preprocessor_config.json +23 -0
- checkpoint- 2626/rng_state.pth +3 -0
- checkpoint- 2626/scheduler.pt +3 -0
- checkpoint- 2626/trainer_state.json +86 -0
- checkpoint- 2626/training_args.bin +3 -0
checkpoint- 2626/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.48.0"
|
32 |
+
}
|
checkpoint- 2626/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:db06b3d67dd9af1ae0c7cbd956ff0f24fe75a685272d67d6c6747aa23edbf8d4
|
3 |
+
size 343223968
|
checkpoint- 2626/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d7f0c37a75913bc54b136a1b9ad5f478a6b20a051d79ac7b59aced76ea236a1
|
3 |
+
size 686568453
|
checkpoint- 2626/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- 2626/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a1bc83aaad729c9c5d0eae35969398c775c5cf0200bdb49097c4f85d28c61ab1
|
3 |
+
size 14575
|
checkpoint- 2626/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8fcef76d6b9489e8effd3adf5d658c5f5749b102dcbb44a5918c8e278cae4f66
|
3 |
+
size 627
|
checkpoint- 2626/trainer_state.json
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.10275405645370483,
|
3 |
+
"best_model_checkpoint": "deepfake_vs_real_image_detection/checkpoint-2626",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 2626,
|
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.38080731150038083,
|
13 |
+
"grad_norm": 2.2971608638763428,
|
14 |
+
"learning_rate": 8.253105590062111e-07,
|
15 |
+
"loss": 1.772,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.7616146230007617,
|
20 |
+
"grad_norm": 2.6388144493103027,
|
21 |
+
"learning_rate": 6.312111801242236e-07,
|
22 |
+
"loss": 0.1174,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0,
|
27 |
+
"eval_accuracy": 0.9738218960375707,
|
28 |
+
"eval_loss": 0.1262863427400589,
|
29 |
+
"eval_runtime": 530.834,
|
30 |
+
"eval_samples_per_second": 105.496,
|
31 |
+
"eval_steps_per_second": 6.595,
|
32 |
+
"step": 1313
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 1.1424219345011424,
|
36 |
+
"grad_norm": 3.7955923080444336,
|
37 |
+
"learning_rate": 4.37111801242236e-07,
|
38 |
+
"loss": 0.1037,
|
39 |
+
"step": 1500
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 1.5232292460015233,
|
43 |
+
"grad_norm": 3.913268804550171,
|
44 |
+
"learning_rate": 2.4301242236024846e-07,
|
45 |
+
"loss": 0.0885,
|
46 |
+
"step": 2000
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 1.904036557501904,
|
50 |
+
"grad_norm": 3.9392764568328857,
|
51 |
+
"learning_rate": 4.891304347826087e-08,
|
52 |
+
"loss": 0.0819,
|
53 |
+
"step": 2500
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 2.0,
|
57 |
+
"eval_accuracy": 0.9770182675309369,
|
58 |
+
"eval_loss": 0.10275405645370483,
|
59 |
+
"eval_runtime": 531.7062,
|
60 |
+
"eval_samples_per_second": 105.323,
|
61 |
+
"eval_steps_per_second": 6.584,
|
62 |
+
"step": 2626
|
63 |
+
}
|
64 |
+
],
|
65 |
+
"logging_steps": 500,
|
66 |
+
"max_steps": 2626,
|
67 |
+
"num_input_tokens_seen": 0,
|
68 |
+
"num_train_epochs": 2,
|
69 |
+
"save_steps": 500,
|
70 |
+
"stateful_callbacks": {
|
71 |
+
"TrainerControl": {
|
72 |
+
"args": {
|
73 |
+
"should_epoch_stop": false,
|
74 |
+
"should_evaluate": false,
|
75 |
+
"should_log": false,
|
76 |
+
"should_save": true,
|
77 |
+
"should_training_stop": true
|
78 |
+
},
|
79 |
+
"attributes": {}
|
80 |
+
}
|
81 |
+
},
|
82 |
+
"total_flos": 1.3018809239230685e+19,
|
83 |
+
"train_batch_size": 64,
|
84 |
+
"trial_name": null,
|
85 |
+
"trial_params": null
|
86 |
+
}
|
checkpoint- 2626/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc493be87d5977e0cbd032446655802a62bb93d8d1eec2fd79f79f09685c7c8b
|
3 |
+
size 4859
|