dima806 commited on
Commit
081e2ff
1 Parent(s): eafc48d

Upload folder using huggingface_hub

Browse files
checkpoint-2250/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/ai_vs_real_image_detection",
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.39.3"
32
+ }
checkpoint-2250/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f5d0d4e8e6475faccca9385a2869648bb1f18d3f64c0239ad2bca909d3adc50
3
+ size 343223968
checkpoint-2250/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0652cc80a8fcc5c0f5faf5901a97cc1915d79da1c5847c4b8a9bad848f583c78
3
+ size 686568453
checkpoint-2250/preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "image_processor_type": "ViTImageProcessor",
25
+ "image_std": [
26
+ 0.5,
27
+ 0.5,
28
+ 0.5
29
+ ],
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 224,
34
+ "width": 224
35
+ }
36
+ }
checkpoint-2250/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:569e899ecb30020e3d6857d0cbf3a3228374ddf2932c9b8b8adf0e78ae25151f
3
+ size 14575
checkpoint-2250/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a8faceeb061a9bdf7c8f79339a0e17d63452ad18a23b6433e51c9798503c7d0
3
+ size 627
checkpoint-2250/trainer_state.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.04815581813454628,
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.44,
13
+ "grad_norm": 0.6807317733764648,
14
+ "learning_rate": 7.954545454545454e-07,
15
+ "loss": 0.0381,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.89,
20
+ "grad_norm": 3.3560590744018555,
21
+ "learning_rate": 5.681818181818182e-07,
22
+ "loss": 0.036,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_accuracy": 0.9824166666666667,
28
+ "eval_loss": 0.04870710149407387,
29
+ "eval_runtime": 689.2367,
30
+ "eval_samples_per_second": 69.642,
31
+ "eval_steps_per_second": 2.176,
32
+ "step": 1125
33
+ },
34
+ {
35
+ "epoch": 1.33,
36
+ "grad_norm": 2.8861987590789795,
37
+ "learning_rate": 3.4090909090909085e-07,
38
+ "loss": 0.0352,
39
+ "step": 1500
40
+ },
41
+ {
42
+ "epoch": 1.78,
43
+ "grad_norm": 0.27879592776298523,
44
+ "learning_rate": 1.1363636363636363e-07,
45
+ "loss": 0.0334,
46
+ "step": 2000
47
+ },
48
+ {
49
+ "epoch": 2.0,
50
+ "eval_accuracy": 0.9825,
51
+ "eval_loss": 0.04815581813454628,
52
+ "eval_runtime": 658.5494,
53
+ "eval_samples_per_second": 72.887,
54
+ "eval_steps_per_second": 2.278,
55
+ "step": 2250
56
+ }
57
+ ],
58
+ "logging_steps": 500,
59
+ "max_steps": 2250,
60
+ "num_input_tokens_seen": 0,
61
+ "num_train_epochs": 2,
62
+ "save_steps": 500,
63
+ "total_flos": 1.1158846504501248e+19,
64
+ "train_batch_size": 64,
65
+ "trial_name": null,
66
+ "trial_params": null
67
+ }
checkpoint-2250/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7127130e5d781b7792e2ace85631e70aa9562b8622e9997b73b1f5021b0d82e0
3
+ size 4411
config.json CHANGED
@@ -28,5 +28,5 @@
28
  "problem_type": "single_label_classification",
29
  "qkv_bias": true,
30
  "torch_dtype": "float32",
31
- "transformers_version": "4.38.1"
32
  }
 
28
  "problem_type": "single_label_classification",
29
  "qkv_bias": true,
30
  "torch_dtype": "float32",
31
+ "transformers_version": "4.39.3"
32
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0acd0809a91fbda050c043f3da7365337400c55919df09a19e35b894688ca742
3
  size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f5d0d4e8e6475faccca9385a2869648bb1f18d3f64c0239ad2bca909d3adc50
3
  size 343223968
preprocessor_config.json CHANGED
@@ -1,4 +1,18 @@
1
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  "do_normalize": true,
3
  "do_rescale": true,
4
  "do_resize": true,
 
1
  {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
  "do_normalize": true,
17
  "do_rescale": true,
18
  "do_resize": true,
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d14bd597b4dd2f2f97f20186fbbcb3217b8df98a4856b1006cc2070ea15144e0
3
  size 4411
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7127130e5d781b7792e2ace85631e70aa9562b8622e9997b73b1f5021b0d82e0
3
  size 4411