dpaul93 commited on
Commit
4066889
·
verified ·
1 Parent(s): cda592b

Upload folder using huggingface_hub

Browse files
checkpoint-252/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dpaul93/cifake_vit_generated-d1-v1",
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.44.2"
32
+ }
checkpoint-252/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a38f77593ab20b8e2e469046f90e79e8dfcc5db4a0e0e94bdc4d31b85483761e
3
+ size 343223968
checkpoint-252/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8b138d57e1ee3022f360f510cd4cbb3377bb56c10da7aea57ccbd5f008e0899
3
+ size 686568890
checkpoint-252/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-252/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15251c5a0d6ceb9b5d99fca65b72625912da0935ca639e70e294a8080da1ed8a
3
+ size 14244
checkpoint-252/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0eaabf552b2341004d91949545997011c8db575cf7cd9b53b41d9e9edba06f42
3
+ size 1064
checkpoint-252/trainer_state.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.26671406626701355,
3
+ "best_model_checkpoint": "ai_vs_real_image_detection/checkpoint-252",
4
+ "epoch": 4.0,
5
+ "eval_steps": 500,
6
+ "global_step": 252,
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.8613565891472869,
14
+ "eval_loss": 0.3608076572418213,
15
+ "eval_runtime": 603.6301,
16
+ "eval_samples_per_second": 85.483,
17
+ "eval_steps_per_second": 2.672,
18
+ "step": 63
19
+ },
20
+ {
21
+ "epoch": 2.0,
22
+ "eval_accuracy": 0.9015697674418605,
23
+ "eval_loss": 0.31116238236427307,
24
+ "eval_runtime": 603.7586,
25
+ "eval_samples_per_second": 85.465,
26
+ "eval_steps_per_second": 2.672,
27
+ "step": 126
28
+ },
29
+ {
30
+ "epoch": 3.0,
31
+ "eval_accuracy": 0.9153682170542635,
32
+ "eval_loss": 0.29183271527290344,
33
+ "eval_runtime": 605.022,
34
+ "eval_samples_per_second": 85.286,
35
+ "eval_steps_per_second": 2.666,
36
+ "step": 189
37
+ },
38
+ {
39
+ "epoch": 4.0,
40
+ "eval_accuracy": 0.9169961240310077,
41
+ "eval_loss": 0.26671406626701355,
42
+ "eval_runtime": 603.6453,
43
+ "eval_samples_per_second": 85.481,
44
+ "eval_steps_per_second": 2.672,
45
+ "step": 252
46
+ }
47
+ ],
48
+ "logging_steps": 500,
49
+ "max_steps": 315,
50
+ "num_input_tokens_seen": 0,
51
+ "num_train_epochs": 5,
52
+ "save_steps": 500,
53
+ "stateful_callbacks": {
54
+ "TrainerControl": {
55
+ "args": {
56
+ "should_epoch_stop": false,
57
+ "should_evaluate": false,
58
+ "should_log": false,
59
+ "should_save": true,
60
+ "should_training_stop": false
61
+ },
62
+ "attributes": {}
63
+ }
64
+ },
65
+ "total_flos": 1.239871833833472e+18,
66
+ "train_batch_size": 64,
67
+ "trial_name": null,
68
+ "trial_params": null
69
+ }
checkpoint-252/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98ab8e243d75ccc392425623488716d192639d498c78d74ae33d45b2e5b8086c
3
+ size 5112
checkpoint-315/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dpaul93/cifake_vit_generated-d1-v1",
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.44.2"
32
+ }
checkpoint-315/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68d9fa5ccdc67407b3ff6c3a92beb20b45542c3bd1998c695137fda85744e34d
3
+ size 343223968
checkpoint-315/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bff1db9583e2265751e4e6e625d306af05c79f796584d1c726421e09eb8d31af
3
+ size 686568890
checkpoint-315/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-315/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b7f0315bcd7490a21d6e358a4b382c9b123a80ecb1cb29613bd742db3db20a8
3
+ size 14244
checkpoint-315/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d71a06de45a646fc8d19c57389c93a1a59bc6cc9d30897e6f1cbf4f6b591f86e
3
+ size 1064
checkpoint-315/trainer_state.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.26671406626701355,
3
+ "best_model_checkpoint": "ai_vs_real_image_detection/checkpoint-252",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 315,
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.8613565891472869,
14
+ "eval_loss": 0.3608076572418213,
15
+ "eval_runtime": 603.6301,
16
+ "eval_samples_per_second": 85.483,
17
+ "eval_steps_per_second": 2.672,
18
+ "step": 63
19
+ },
20
+ {
21
+ "epoch": 2.0,
22
+ "eval_accuracy": 0.9015697674418605,
23
+ "eval_loss": 0.31116238236427307,
24
+ "eval_runtime": 603.7586,
25
+ "eval_samples_per_second": 85.465,
26
+ "eval_steps_per_second": 2.672,
27
+ "step": 126
28
+ },
29
+ {
30
+ "epoch": 3.0,
31
+ "eval_accuracy": 0.9153682170542635,
32
+ "eval_loss": 0.29183271527290344,
33
+ "eval_runtime": 605.022,
34
+ "eval_samples_per_second": 85.286,
35
+ "eval_steps_per_second": 2.666,
36
+ "step": 189
37
+ },
38
+ {
39
+ "epoch": 4.0,
40
+ "eval_accuracy": 0.9169961240310077,
41
+ "eval_loss": 0.26671406626701355,
42
+ "eval_runtime": 603.6453,
43
+ "eval_samples_per_second": 85.481,
44
+ "eval_steps_per_second": 2.672,
45
+ "step": 252
46
+ }
47
+ ],
48
+ "logging_steps": 500,
49
+ "max_steps": 315,
50
+ "num_input_tokens_seen": 0,
51
+ "num_train_epochs": 5,
52
+ "save_steps": 500,
53
+ "stateful_callbacks": {
54
+ "TrainerControl": {
55
+ "args": {
56
+ "should_epoch_stop": false,
57
+ "should_evaluate": false,
58
+ "should_log": false,
59
+ "should_save": true,
60
+ "should_training_stop": true
61
+ },
62
+ "attributes": {}
63
+ }
64
+ },
65
+ "total_flos": 1.54983979229184e+18,
66
+ "train_batch_size": 64,
67
+ "trial_name": null,
68
+ "trial_params": null
69
+ }
checkpoint-315/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98ab8e243d75ccc392425623488716d192639d498c78d74ae33d45b2e5b8086c
3
+ size 5112
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
1
  {
2
+ "_name_or_path": "dpaul93/cifake_vit_generated-d1-v1",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2962c6e1358dda22dbc4891fe48234a513b7054bfe83c9cb7348ecd1fa75030d
3
  size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68d9fa5ccdc67407b3ff6c3a92beb20b45542c3bd1998c695137fda85744e34d
3
  size 343223968