dpaul93 commited on
Commit
361bf16
·
verified ·
1 Parent(s): b1dc417

Upload folder using huggingface_hub

Browse files
checkpoint-160/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.46.1"
32
+ }
checkpoint-160/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcdda980a494c5a6728e183ef804a8e896ddf459ab7b4fde8ceb6674f2bc557b
3
+ size 343223968
checkpoint-160/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39d8fc0816885d29ccbe915530cf49b597c81c3a4002bcabe505474481914c21
3
+ size 686568890
checkpoint-160/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-160/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1544d31644d89d743653189082be555555f0ecc8702008ef1f6b85122ed1217
3
+ size 14244
checkpoint-160/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05806cda9d302d71418674ceed0403c9c434840aa85440a19eee03178d2621d8
3
+ size 1064
checkpoint-160/trainer_state.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.2258109450340271,
3
+ "best_model_checkpoint": "ai_vs_real_image_detection/checkpoint-160",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 160,
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.5648062015503876,
14
+ "eval_loss": 0.6818570494651794,
15
+ "eval_runtime": 580.4784,
16
+ "eval_samples_per_second": 88.892,
17
+ "eval_steps_per_second": 2.779,
18
+ "step": 32
19
+ },
20
+ {
21
+ "epoch": 2.0,
22
+ "eval_accuracy": 0.892093023255814,
23
+ "eval_loss": 0.27960383892059326,
24
+ "eval_runtime": 580.0378,
25
+ "eval_samples_per_second": 88.96,
26
+ "eval_steps_per_second": 2.781,
27
+ "step": 64
28
+ },
29
+ {
30
+ "epoch": 3.0,
31
+ "eval_accuracy": 0.9064728682170543,
32
+ "eval_loss": 0.24101845920085907,
33
+ "eval_runtime": 579.8272,
34
+ "eval_samples_per_second": 88.992,
35
+ "eval_steps_per_second": 2.782,
36
+ "step": 96
37
+ },
38
+ {
39
+ "epoch": 4.0,
40
+ "eval_accuracy": 0.9203875968992248,
41
+ "eval_loss": 0.23008257150650024,
42
+ "eval_runtime": 580.6202,
43
+ "eval_samples_per_second": 88.87,
44
+ "eval_steps_per_second": 2.778,
45
+ "step": 128
46
+ },
47
+ {
48
+ "epoch": 5.0,
49
+ "eval_accuracy": 0.923953488372093,
50
+ "eval_loss": 0.2258109450340271,
51
+ "eval_runtime": 580.8248,
52
+ "eval_samples_per_second": 88.839,
53
+ "eval_steps_per_second": 2.777,
54
+ "step": 160
55
+ }
56
+ ],
57
+ "logging_steps": 500,
58
+ "max_steps": 160,
59
+ "num_input_tokens_seen": 0,
60
+ "num_train_epochs": 5,
61
+ "save_steps": 500,
62
+ "stateful_callbacks": {
63
+ "TrainerControl": {
64
+ "args": {
65
+ "should_epoch_stop": false,
66
+ "should_evaluate": false,
67
+ "should_log": false,
68
+ "should_save": true,
69
+ "should_training_stop": true
70
+ },
71
+ "attributes": {}
72
+ }
73
+ },
74
+ "total_flos": 8.393932315052605e+17,
75
+ "train_batch_size": 64,
76
+ "trial_name": null,
77
+ "trial_params": null
78
+ }
checkpoint-160/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": "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.46.1"
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcdda980a494c5a6728e183ef804a8e896ddf459ab7b4fde8ceb6674f2bc557b
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