dpaul93 commited on
Commit
fb777fd
·
verified ·
1 Parent(s): 85aaf43

Upload folder using huggingface_hub

Browse files
checkpoint-1910/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
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": "FAKE",
13
+ "1": "REAL"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "FAKE": 0,
20
+ "REAL": 1
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.46.1"
32
+ }
checkpoint-1910/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9867a4e852495a347f518bc6f28837116abd574ca15bd4f05ed6d883040a606
3
+ size 343223968
checkpoint-1910/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5d8fd4936ff41c2d8aa9c829b77d99270e5f4328656e9238308ad72f0ed4259
3
+ size 686568890
checkpoint-1910/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-1910/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8c34956e89e5e401bcfd25deb883c806f2ee3118d521bf196e1ad75d813ba69
3
+ size 14244
checkpoint-1910/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96a886e9461302422793c3e2ffe0bf1a9414c48824da875d6fe2820e106998f6
3
+ size 1064
checkpoint-1910/trainer_state.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.08226870000362396,
3
+ "best_model_checkpoint": "ai_vs_real_image_detection/checkpoint-1910",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1910,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "eval_accuracy": 0.9253100775193799,
14
+ "eval_loss": 0.211209237575531,
15
+ "eval_runtime": 603.5984,
16
+ "eval_samples_per_second": 85.487,
17
+ "eval_steps_per_second": 2.672,
18
+ "step": 382
19
+ },
20
+ {
21
+ "epoch": 1.3089005235602094,
22
+ "grad_norm": 1.9848459959030151,
23
+ "learning_rate": 7.580645161290323e-05,
24
+ "loss": 0.207,
25
+ "step": 500
26
+ },
27
+ {
28
+ "epoch": 2.0,
29
+ "eval_accuracy": 0.9561434108527131,
30
+ "eval_loss": 0.11717550456523895,
31
+ "eval_runtime": 603.7279,
32
+ "eval_samples_per_second": 85.469,
33
+ "eval_steps_per_second": 2.672,
34
+ "step": 764
35
+ },
36
+ {
37
+ "epoch": 2.6178010471204187,
38
+ "grad_norm": 0.8748051524162292,
39
+ "learning_rate": 4.89247311827957e-05,
40
+ "loss": 0.0843,
41
+ "step": 1000
42
+ },
43
+ {
44
+ "epoch": 3.0,
45
+ "eval_accuracy": 0.9651356589147286,
46
+ "eval_loss": 0.09565627574920654,
47
+ "eval_runtime": 602.7387,
48
+ "eval_samples_per_second": 85.609,
49
+ "eval_steps_per_second": 2.676,
50
+ "step": 1146
51
+ },
52
+ {
53
+ "epoch": 3.9267015706806285,
54
+ "grad_norm": 0.4711647033691406,
55
+ "learning_rate": 2.2043010752688174e-05,
56
+ "loss": 0.0443,
57
+ "step": 1500
58
+ },
59
+ {
60
+ "epoch": 4.0,
61
+ "eval_accuracy": 0.967422480620155,
62
+ "eval_loss": 0.08867892622947693,
63
+ "eval_runtime": 607.9533,
64
+ "eval_samples_per_second": 84.875,
65
+ "eval_steps_per_second": 2.653,
66
+ "step": 1528
67
+ },
68
+ {
69
+ "epoch": 5.0,
70
+ "eval_accuracy": 0.9708333333333333,
71
+ "eval_loss": 0.08226870000362396,
72
+ "eval_runtime": 609.2245,
73
+ "eval_samples_per_second": 84.698,
74
+ "eval_steps_per_second": 2.648,
75
+ "step": 1910
76
+ }
77
+ ],
78
+ "logging_steps": 500,
79
+ "max_steps": 1910,
80
+ "num_input_tokens_seen": 0,
81
+ "num_train_epochs": 5,
82
+ "save_steps": 500,
83
+ "stateful_callbacks": {
84
+ "TrainerControl": {
85
+ "args": {
86
+ "should_epoch_stop": false,
87
+ "should_evaluate": false,
88
+ "should_log": false,
89
+ "should_save": true,
90
+ "should_training_stop": true
91
+ },
92
+ "attributes": {}
93
+ }
94
+ },
95
+ "total_flos": 9.454022732980224e+18,
96
+ "train_batch_size": 64,
97
+ "trial_name": null,
98
+ "trial_params": null
99
+ }
checkpoint-1910/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b56e59973783c4f24590f8fd2817da4ef73bea924e9665f45f02e4da15e16ffe
3
+ size 5176
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
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": "FAKE",
13
+ "1": "REAL"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "FAKE": 0,
20
+ "REAL": 1
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.46.1"
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9867a4e852495a347f518bc6f28837116abd574ca15bd4f05ed6d883040a606
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:b56e59973783c4f24590f8fd2817da4ef73bea924e9665f45f02e4da15e16ffe
3
+ size 5176