yanggangyi commited on
Commit
1a52016
·
verified ·
1 Parent(s): 5d64768

Upload folder using huggingface_hub

Browse files
checkpoint-2250/config.json CHANGED
@@ -1,9 +1,9 @@
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,
@@ -25,8 +25,9 @@
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
  }
 
1
  {
 
2
  "architectures": [
3
  "ViTForImageClassification"
4
  ],
5
  "attention_probs_dropout_prob": 0.0,
6
+ "dtype": "float32",
7
  "encoder_stride": 16,
8
  "hidden_act": "gelu",
9
  "hidden_dropout_prob": 0.0,
 
25
  "num_channels": 3,
26
  "num_hidden_layers": 12,
27
  "patch_size": 16,
28
+ "pooler_act": "tanh",
29
+ "pooler_output_size": 768,
30
  "problem_type": "single_label_classification",
31
  "qkv_bias": true,
32
+ "transformers_version": "4.57.1"
 
33
  }
checkpoint-2250/model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4f5d0d4e8e6475faccca9385a2869648bb1f18d3f64c0239ad2bca909d3adc50
3
  size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4965312dcb2650fdd5952fd05f0d52c8e011efa5639c03e07bf8eb2f3ecd40ca
3
  size 343223968
checkpoint-2250/optimizer.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0652cc80a8fcc5c0f5faf5901a97cc1915d79da1c5847c4b8a9bad848f583c78
3
- size 686568453
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9bc393c204a3850342447efadddc179de8ded3dd284ad94d3ddab5ae18ecd81
3
+ size 686572107
checkpoint-2250/preprocessor_config.json CHANGED
@@ -1,18 +1,5 @@
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,
 
1
  {
2
+ "do_convert_rgb": null,
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "do_normalize": true,
4
  "do_rescale": true,
5
  "do_resize": true,
checkpoint-2250/rng_state.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:569e899ecb30020e3d6857d0cbf3a3228374ddf2932c9b8b8adf0e78ae25151f
3
- size 14575
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c86cc5f2dd4fb671cd4ae676e0d00ba562a53b4e8c91656bffc4d509c0e3ae2
3
+ size 14645
checkpoint-2250/scheduler.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9a8faceeb061a9bdf7c8f79339a0e17d63452ad18a23b6433e51c9798503c7d0
3
- size 627
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53717cf119cab454890d4aa2d26aa4a86585b5facd129b6c5968b3314c4a326b
3
+ size 1465
checkpoint-2250/trainer_state.json CHANGED
@@ -1,5 +1,6 @@
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,
@@ -9,49 +10,51 @@
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
  ],
@@ -60,6 +63,18 @@
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,
 
1
  {
2
+ "best_global_step": 2250,
3
+ "best_metric": 0.043170735239982605,
4
  "best_model_checkpoint": "ai_vs_real_image_detection/checkpoint-2250",
5
  "epoch": 2.0,
6
  "eval_steps": 500,
 
10
  "is_world_process_zero": true,
11
  "log_history": [
12
  {
13
+ "epoch": 0.4444444444444444,
14
+ "grad_norm": 5.814823627471924,
15
+ "learning_rate": 7.959090909090908e-07,
16
+ "loss": 0.0364,
17
  "step": 500
18
  },
19
  {
20
+ "epoch": 0.8888888888888888,
21
+ "grad_norm": 0.22298501431941986,
22
+ "learning_rate": 5.686363636363636e-07,
23
+ "loss": 0.0368,
24
  "step": 1000
25
  },
26
  {
27
  "epoch": 1.0,
28
+ "eval_accuracy": 0.9843333333333333,
29
+ "eval_loss": 0.0432790108025074,
30
+ "eval_model_preparation_time": 0.0025,
31
+ "eval_runtime": 568.0233,
32
+ "eval_samples_per_second": 84.504,
33
+ "eval_steps_per_second": 2.641,
34
  "step": 1125
35
  },
36
  {
37
+ "epoch": 1.3333333333333333,
38
+ "grad_norm": 0.49659785628318787,
39
+ "learning_rate": 3.4136363636363637e-07,
40
+ "loss": 0.033,
41
  "step": 1500
42
  },
43
  {
44
+ "epoch": 1.7777777777777777,
45
+ "grad_norm": 0.8334054350852966,
46
+ "learning_rate": 1.1409090909090908e-07,
47
+ "loss": 0.0373,
48
  "step": 2000
49
  },
50
  {
51
  "epoch": 2.0,
52
+ "eval_accuracy": 0.9843541666666666,
53
+ "eval_loss": 0.043170735239982605,
54
+ "eval_model_preparation_time": 0.0025,
55
+ "eval_runtime": 579.2635,
56
+ "eval_samples_per_second": 82.864,
57
+ "eval_steps_per_second": 2.589,
58
  "step": 2250
59
  }
60
  ],
 
63
  "num_input_tokens_seen": 0,
64
  "num_train_epochs": 2,
65
  "save_steps": 500,
66
+ "stateful_callbacks": {
67
+ "TrainerControl": {
68
+ "args": {
69
+ "should_epoch_stop": false,
70
+ "should_evaluate": false,
71
+ "should_log": false,
72
+ "should_save": true,
73
+ "should_training_stop": true
74
+ },
75
+ "attributes": {}
76
+ }
77
+ },
78
  "total_flos": 1.1158846504501248e+19,
79
  "train_batch_size": 64,
80
  "trial_name": null,
checkpoint-2250/training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7127130e5d781b7792e2ace85631e70aa9562b8622e9997b73b1f5021b0d82e0
3
- size 4411
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65eb47ea5341947e34b68939622a4329b7fa962becd59e6205fc8d22c57a386c
3
+ size 5777
config.json CHANGED
@@ -1,9 +1,9 @@
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,
@@ -25,8 +25,9 @@
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
  }
 
1
  {
 
2
  "architectures": [
3
  "ViTForImageClassification"
4
  ],
5
  "attention_probs_dropout_prob": 0.0,
6
+ "dtype": "float32",
7
  "encoder_stride": 16,
8
  "hidden_act": "gelu",
9
  "hidden_dropout_prob": 0.0,
 
25
  "num_channels": 3,
26
  "num_hidden_layers": 12,
27
  "patch_size": 16,
28
+ "pooler_act": "tanh",
29
+ "pooler_output_size": 768,
30
  "problem_type": "single_label_classification",
31
  "qkv_bias": true,
32
+ "transformers_version": "4.57.1"
 
33
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4f5d0d4e8e6475faccca9385a2869648bb1f18d3f64c0239ad2bca909d3adc50
3
  size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4965312dcb2650fdd5952fd05f0d52c8e011efa5639c03e07bf8eb2f3ecd40ca
3
  size 343223968
preprocessor_config.json CHANGED
@@ -1,18 +1,5 @@
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,
 
1
  {
2
+ "do_convert_rgb": null,
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "do_normalize": true,
4
  "do_rescale": true,
5
  "do_resize": true,
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7127130e5d781b7792e2ace85631e70aa9562b8622e9997b73b1f5021b0d82e0
3
- size 4411
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65eb47ea5341947e34b68939622a4329b7fa962becd59e6205fc8d22c57a386c
3
+ size 5777