dpaul93 commited on
Commit
002d74e
·
verified ·
1 Parent(s): 5869449

Upload folder using huggingface_hub

Browse files
checkpoint-2250/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": "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.44.2"
32
+ }
checkpoint-2250/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71b0dfe0bd6bf9fa6f9b1b2efd298f25e74da6e6ad9888afbe29bb2afc69ebb7
3
+ size 343223968
checkpoint-2250/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6245e879731033ac8bb7aeee0ba7434a15a4fed2bea99c3fb141560fccf72d7d
3
+ size 686568453
checkpoint-2250/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-2250/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a951f51dc0bce0b2b1f084f6c8e1814f25b564ca8efcaa181adf90a426b90139
3
+ size 14575
checkpoint-2250/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eba8e020a7c09fcff8f83093a9f84661cad2583d1a08369110b6f517193d96fb
3
+ size 627
checkpoint-2250/trainer_state.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.0625978633761406,
3
+ "best_model_checkpoint": "ai_vs_real_image_detection/checkpoint-2250",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 2250,
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.4444444444444444,
13
+ "grad_norm": 1.1140469312667847,
14
+ "learning_rate": 9.192825112107624e-05,
15
+ "loss": 0.2076,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.8888888888888888,
20
+ "grad_norm": 0.545105516910553,
21
+ "learning_rate": 8.295964125560538e-05,
22
+ "loss": 0.1091,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_accuracy": 0.9689583333333334,
28
+ "eval_loss": 0.08704795688390732,
29
+ "eval_runtime": 357.3977,
30
+ "eval_samples_per_second": 134.304,
31
+ "eval_steps_per_second": 4.197,
32
+ "step": 1125
33
+ },
34
+ {
35
+ "epoch": 1.3333333333333333,
36
+ "grad_norm": 0.22118866443634033,
37
+ "learning_rate": 7.399103139013454e-05,
38
+ "loss": 0.0797,
39
+ "step": 1500
40
+ },
41
+ {
42
+ "epoch": 1.7777777777777777,
43
+ "grad_norm": 0.10867808014154434,
44
+ "learning_rate": 6.502242152466367e-05,
45
+ "loss": 0.0644,
46
+ "step": 2000
47
+ },
48
+ {
49
+ "epoch": 2.0,
50
+ "eval_accuracy": 0.9777083333333333,
51
+ "eval_loss": 0.0625978633761406,
52
+ "eval_runtime": 357.0856,
53
+ "eval_samples_per_second": 134.422,
54
+ "eval_steps_per_second": 4.201,
55
+ "step": 2250
56
+ }
57
+ ],
58
+ "logging_steps": 500,
59
+ "max_steps": 5625,
60
+ "num_input_tokens_seen": 0,
61
+ "num_train_epochs": 5,
62
+ "save_steps": 500,
63
+ "stateful_callbacks": {
64
+ "TrainerControl": {
65
+ "args": {
66
+ "should_epoch_stop": false,
67
+ "should_evaluate": false,
68
+ "should_log": false,
69
+ "should_save": true,
70
+ "should_training_stop": false
71
+ },
72
+ "attributes": {}
73
+ }
74
+ },
75
+ "total_flos": 1.1158846504501248e+19,
76
+ "train_batch_size": 64,
77
+ "trial_name": null,
78
+ "trial_params": null
79
+ }
checkpoint-2250/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2de6e59594095497a7ab5d9d6f17dbd9daf46cd9ad00288b05fca59ed65ffed
3
+ size 4667
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": "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.44.2"
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37541c16c7bf995492c24f960cdbc91136faa5177ca2adc8a7995bcc8b13a5e0
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:c2de6e59594095497a7ab5d9d6f17dbd9daf46cd9ad00288b05fca59ed65ffed
3
+ size 4667