Molkaatb commited on
Commit
da118ee
·
verified ·
1 Parent(s): add78eb

Upload folder using huggingface_hub

Browse files
checkpoint-1268/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": "spoof"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "real": 0,
20
+ "spoof": 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.42.3"
32
+ }
checkpoint-1268/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e50d7ac58e848fa1e84c06536a64f509311d8b2c2f870d4858b734951796d6a2
3
+ size 343223968
checkpoint-1268/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d6616c4b648e8da023b9445c62eb040dfb4eb5512f2e26006ac9b0f59a7b412
3
+ size 686568453
checkpoint-1268/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-1268/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1921a71fdc9f0a45c58ff32df1e2129ccbd5067bff8436f0be78170d0996a1df
3
+ size 14575
checkpoint-1268/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63685e93836a143cfe0f61c7cc4c050a2da3f535a64d24418c220c14d3eba321
3
+ size 627
checkpoint-1268/trainer_state.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.3984749913215637,
3
+ "best_model_checkpoint": "deepfake_vs_real_image_detection/checkpoint-1268",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1268,
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.7886435331230284,
13
+ "grad_norm": 1.3794963359832764,
14
+ "learning_rate": 6.305418719211822e-07,
15
+ "loss": 0.57,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.8916197808705952,
21
+ "eval_loss": 0.484599769115448,
22
+ "eval_runtime": 300.2027,
23
+ "eval_samples_per_second": 44.996,
24
+ "eval_steps_per_second": 5.626,
25
+ "step": 634
26
+ },
27
+ {
28
+ "epoch": 1.5772870662460567,
29
+ "grad_norm": 1.3274891376495361,
30
+ "learning_rate": 2.200328407224959e-07,
31
+ "loss": 0.337,
32
+ "step": 1000
33
+ },
34
+ {
35
+ "epoch": 2.0,
36
+ "eval_accuracy": 0.9207876813740006,
37
+ "eval_loss": 0.3984749913215637,
38
+ "eval_runtime": 296.8555,
39
+ "eval_samples_per_second": 45.504,
40
+ "eval_steps_per_second": 5.69,
41
+ "step": 1268
42
+ }
43
+ ],
44
+ "logging_steps": 500,
45
+ "max_steps": 1268,
46
+ "num_input_tokens_seen": 0,
47
+ "num_train_epochs": 2,
48
+ "save_steps": 500,
49
+ "stateful_callbacks": {
50
+ "TrainerControl": {
51
+ "args": {
52
+ "should_epoch_stop": false,
53
+ "should_evaluate": false,
54
+ "should_log": false,
55
+ "should_save": true,
56
+ "should_training_stop": true
57
+ },
58
+ "attributes": {}
59
+ }
60
+ },
61
+ "total_flos": 3.140285387141726e+18,
62
+ "train_batch_size": 32,
63
+ "trial_name": null,
64
+ "trial_params": null
65
+ }
checkpoint-1268/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bb72b01e4c0b3fd9e07ed5f413df9d7126add80aad336e6fdab8484a86e40e8
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": "spoof"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "real": 0,
20
+ "spoof": 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.42.3"
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e50d7ac58e848fa1e84c06536a64f509311d8b2c2f870d4858b734951796d6a2
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:4bb72b01e4c0b3fd9e07ed5f413df9d7126add80aad336e6fdab8484a86e40e8
3
+ size 4667