Upload folder using huggingface_hub
Browse files- checkpoint-3376/config.json +32 -0
- checkpoint-3376/model.safetensors +3 -0
- checkpoint-3376/optimizer.pt +3 -0
- checkpoint-3376/preprocessor_config.json +22 -0
- checkpoint-3376/rng_state.pth +3 -0
- checkpoint-3376/scheduler.pt +3 -0
- checkpoint-3376/trainer_state.json +75 -0
- checkpoint-3376/training_args.bin +3 -0
- config.json +2 -2
- model.safetensors +3 -0
- training_args.bin +2 -2
checkpoint-3376/config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/ai_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.37.2"
|
32 |
+
}
|
checkpoint-3376/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e29987acb635c72bf0ddbf8e97d450100a659a7a3045868b39e0895e9ccd6886
|
3 |
+
size 343223968
|
checkpoint-3376/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ffef92ad6ce1ef84e57372a66fae38101844582d0edd651062e1e1ef1e11fa4
|
3 |
+
size 686568453
|
checkpoint-3376/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-3376/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7cb07e277af58db9873c66c481f77c9d8a2f7df5512c2a1734d50061fb0c7a28
|
3 |
+
size 14575
|
checkpoint-3376/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b2934a790c6f18e31f2cdba5c9f1f6a967665082adb6a4e04fc37a3f82da9c5f
|
3 |
+
size 627
|
checkpoint-3376/trainer_state.json
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.04589328542351723,
|
3 |
+
"best_model_checkpoint": "ai_vs_real_image_detection/checkpoint-3376",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 3376,
|
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.3,
|
13 |
+
"learning_rate": 2.5941070354780515e-06,
|
14 |
+
"loss": 0.0863,
|
15 |
+
"step": 500
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.59,
|
19 |
+
"learning_rate": 2.143114852675887e-06,
|
20 |
+
"loss": 0.0678,
|
21 |
+
"step": 1000
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.89,
|
25 |
+
"learning_rate": 1.6921226698737221e-06,
|
26 |
+
"loss": 0.0594,
|
27 |
+
"step": 1500
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 1.0,
|
31 |
+
"eval_accuracy": 0.9836666666666667,
|
32 |
+
"eval_loss": 0.04780834540724754,
|
33 |
+
"eval_runtime": 114.3864,
|
34 |
+
"eval_samples_per_second": 104.908,
|
35 |
+
"eval_steps_per_second": 3.278,
|
36 |
+
"step": 1688
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"epoch": 1.18,
|
40 |
+
"learning_rate": 1.2411304870715576e-06,
|
41 |
+
"loss": 0.0527,
|
42 |
+
"step": 2000
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"epoch": 1.48,
|
46 |
+
"learning_rate": 7.901383042693928e-07,
|
47 |
+
"loss": 0.0493,
|
48 |
+
"step": 2500
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"epoch": 1.78,
|
52 |
+
"learning_rate": 3.391461214672279e-07,
|
53 |
+
"loss": 0.0471,
|
54 |
+
"step": 3000
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 2.0,
|
58 |
+
"eval_accuracy": 0.9843333333333333,
|
59 |
+
"eval_loss": 0.04589328542351723,
|
60 |
+
"eval_runtime": 103.1495,
|
61 |
+
"eval_samples_per_second": 116.336,
|
62 |
+
"eval_steps_per_second": 3.635,
|
63 |
+
"step": 3376
|
64 |
+
}
|
65 |
+
],
|
66 |
+
"logging_steps": 500,
|
67 |
+
"max_steps": 3376,
|
68 |
+
"num_input_tokens_seen": 0,
|
69 |
+
"num_train_epochs": 2,
|
70 |
+
"save_steps": 500,
|
71 |
+
"total_flos": 1.6738269756751872e+19,
|
72 |
+
"train_batch_size": 64,
|
73 |
+
"trial_name": null,
|
74 |
+
"trial_params": null
|
75 |
+
}
|
checkpoint-3376/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b5751cc1b19de155113e80e3d15ea12b0526a24b463beafde117a2b3456046b
|
3 |
+
size 4219
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
@@ -28,5 +28,5 @@
|
|
28 |
"problem_type": "single_label_classification",
|
29 |
"qkv_bias": true,
|
30 |
"torch_dtype": "float32",
|
31 |
-
"transformers_version": "4.
|
32 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "dima806/ai_vs_real_image_detection",
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
|
|
28 |
"problem_type": "single_label_classification",
|
29 |
"qkv_bias": true,
|
30 |
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.37.2"
|
32 |
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e29987acb635c72bf0ddbf8e97d450100a659a7a3045868b39e0895e9ccd6886
|
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
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b5751cc1b19de155113e80e3d15ea12b0526a24b463beafde117a2b3456046b
|
3 |
+
size 4219
|