Upload folder using huggingface_hub
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 +22 -0
- checkpoint-3571/rng_state.pth +3 -0
- checkpoint-3571/scheduler.pt +3 -0
- checkpoint-3571/trainer_state.json +79 -0
- checkpoint-3571/training_args.bin +3 -0
- config.json +1 -1
- model.safetensors +1 -1
- training_args.bin +1 -1
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.38.2"
|
32 |
+
}
|
checkpoint-3571/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0c9d79a31dfd6cc06d7b238be742f88936198c7eee75656dd34ae40a20abb172
|
3 |
+
size 343223968
|
checkpoint-3571/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bfc71d18a94aa67c691a6d2b42ea911711e1200bc1ace883a77a8f1c2bebe06c
|
3 |
+
size 686568453
|
checkpoint-3571/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-3571/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8fe452b5f70718f5db70d775b7aebb6b74a417cf92e0cab3e346aac27e251e0
|
3 |
+
size 14575
|
checkpoint-3571/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2d8ae862eb872ca63527a4196c92bcd9af2aa0565512f1d314a5f0e3bed16f6f
|
3 |
+
size 627
|
checkpoint-3571/trainer_state.json
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.022927358746528625,
|
3 |
+
"best_model_checkpoint": "deepfake_vs_real_image_detection/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.14,
|
13 |
+
"grad_norm": 0.26625385880470276,
|
14 |
+
"learning_rate": 8.721953990343652e-07,
|
15 |
+
"loss": 0.0944,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.28,
|
20 |
+
"grad_norm": 0.4247075319290161,
|
21 |
+
"learning_rate": 7.301902868503266e-07,
|
22 |
+
"loss": 0.0715,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.42,
|
27 |
+
"grad_norm": 7.891324520111084,
|
28 |
+
"learning_rate": 5.881851746662879e-07,
|
29 |
+
"loss": 0.069,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.56,
|
34 |
+
"grad_norm": 6.847803115844727,
|
35 |
+
"learning_rate": 4.461800624822493e-07,
|
36 |
+
"loss": 0.0658,
|
37 |
+
"step": 2000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.7,
|
41 |
+
"grad_norm": 2.0988214015960693,
|
42 |
+
"learning_rate": 3.041749502982107e-07,
|
43 |
+
"loss": 0.0632,
|
44 |
+
"step": 2500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.84,
|
48 |
+
"grad_norm": 6.4862895011901855,
|
49 |
+
"learning_rate": 1.621698381141721e-07,
|
50 |
+
"loss": 0.0698,
|
51 |
+
"step": 3000
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.98,
|
55 |
+
"grad_norm": 0.6512278914451599,
|
56 |
+
"learning_rate": 2.0164725930133484e-08,
|
57 |
+
"loss": 0.0587,
|
58 |
+
"step": 3500
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 1.0,
|
62 |
+
"eval_accuracy": 0.9926865456073318,
|
63 |
+
"eval_loss": 0.022927358746528625,
|
64 |
+
"eval_runtime": 773.2123,
|
65 |
+
"eval_samples_per_second": 98.499,
|
66 |
+
"eval_steps_per_second": 12.314,
|
67 |
+
"step": 3571
|
68 |
+
}
|
69 |
+
],
|
70 |
+
"logging_steps": 500,
|
71 |
+
"max_steps": 3571,
|
72 |
+
"num_input_tokens_seen": 0,
|
73 |
+
"num_train_epochs": 1,
|
74 |
+
"save_steps": 500,
|
75 |
+
"total_flos": 8.852762385560605e+18,
|
76 |
+
"train_batch_size": 32,
|
77 |
+
"trial_name": null,
|
78 |
+
"trial_params": null
|
79 |
+
}
|
checkpoint-3571/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:992d4bc7f07ddce259b1dd27aeca6e78641e1544cdefa763b060e959db4c8f00
|
3 |
+
size 4411
|
config.json
CHANGED
@@ -28,5 +28,5 @@
|
|
28 |
"problem_type": "single_label_classification",
|
29 |
"qkv_bias": true,
|
30 |
"torch_dtype": "float32",
|
31 |
-
"transformers_version": "4.38.
|
32 |
}
|
|
|
28 |
"problem_type": "single_label_classification",
|
29 |
"qkv_bias": true,
|
30 |
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.38.2"
|
32 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343223968
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0c9d79a31dfd6cc06d7b238be742f88936198c7eee75656dd34ae40a20abb172
|
3 |
size 343223968
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4411
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:992d4bc7f07ddce259b1dd27aeca6e78641e1544cdefa763b060e959db4c8f00
|
3 |
size 4411
|