dima806 commited on
Commit
69f587e
1 Parent(s): e950793

Upload folder using huggingface_hub

Browse files
checkpoint-640/config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "good_quality",
13
+ "1": "empty_background",
14
+ "2": "bad_quality"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "bad_quality": 2,
21
+ "empty_background": 1,
22
+ "good_quality": 0
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "model_type": "vit",
26
+ "num_attention_heads": 12,
27
+ "num_channels": 3,
28
+ "num_hidden_layers": 12,
29
+ "patch_size": 16,
30
+ "problem_type": "single_label_classification",
31
+ "qkv_bias": true,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.33.3"
34
+ }
checkpoint-640/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd592a9dd0366877f42375eae8dd076d6b09b6a59224549951a6895585ca1a45
3
+ size 686574597
checkpoint-640/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-640/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbcabadaeed9ece55468a2d8f111cd80e8e4c587b5c4965d70350b14e9f0aab2
3
+ size 343271789
checkpoint-640/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ee64b66b1fbbb9f5097c90962482ecbf485733cd913c6889150488ce07eaeba
3
+ size 14575
checkpoint-640/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6dd17e9619d13cfb31fdfa3f89a73aa486815445f70b2087e8e2fc2c5322e761
3
+ size 627
checkpoint-640/trainer_state.json ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.055376775562763214,
3
+ "best_model_checkpoint": "lemon_quality_image_detection/checkpoint-640",
4
+ "epoch": 10.0,
5
+ "eval_steps": 500,
6
+ "global_step": 640,
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.9426877470355731,
14
+ "eval_loss": 0.5755197405815125,
15
+ "eval_runtime": 5.1227,
16
+ "eval_samples_per_second": 98.776,
17
+ "eval_steps_per_second": 12.493,
18
+ "step": 64
19
+ },
20
+ {
21
+ "epoch": 2.0,
22
+ "eval_accuracy": 0.9881422924901185,
23
+ "eval_loss": 0.20843671262264252,
24
+ "eval_runtime": 5.1165,
25
+ "eval_samples_per_second": 98.896,
26
+ "eval_steps_per_second": 12.509,
27
+ "step": 128
28
+ },
29
+ {
30
+ "epoch": 3.0,
31
+ "eval_accuracy": 1.0,
32
+ "eval_loss": 0.1252429187297821,
33
+ "eval_runtime": 5.0129,
34
+ "eval_samples_per_second": 100.94,
35
+ "eval_steps_per_second": 12.767,
36
+ "step": 192
37
+ },
38
+ {
39
+ "epoch": 4.0,
40
+ "eval_accuracy": 1.0,
41
+ "eval_loss": 0.09138158708810806,
42
+ "eval_runtime": 5.0548,
43
+ "eval_samples_per_second": 100.102,
44
+ "eval_steps_per_second": 12.661,
45
+ "step": 256
46
+ },
47
+ {
48
+ "epoch": 5.0,
49
+ "eval_accuracy": 1.0,
50
+ "eval_loss": 0.07500764727592468,
51
+ "eval_runtime": 5.0408,
52
+ "eval_samples_per_second": 100.382,
53
+ "eval_steps_per_second": 12.697,
54
+ "step": 320
55
+ },
56
+ {
57
+ "epoch": 6.0,
58
+ "eval_accuracy": 1.0,
59
+ "eval_loss": 0.06633897125720978,
60
+ "eval_runtime": 5.0106,
61
+ "eval_samples_per_second": 100.986,
62
+ "eval_steps_per_second": 12.773,
63
+ "step": 384
64
+ },
65
+ {
66
+ "epoch": 7.0,
67
+ "eval_accuracy": 1.0,
68
+ "eval_loss": 0.06040707230567932,
69
+ "eval_runtime": 5.0324,
70
+ "eval_samples_per_second": 100.548,
71
+ "eval_steps_per_second": 12.718,
72
+ "step": 448
73
+ },
74
+ {
75
+ "epoch": 7.81,
76
+ "learning_rate": 2.372881355932204e-06,
77
+ "loss": 0.1834,
78
+ "step": 500
79
+ },
80
+ {
81
+ "epoch": 8.0,
82
+ "eval_accuracy": 1.0,
83
+ "eval_loss": 0.057528626173734665,
84
+ "eval_runtime": 4.9848,
85
+ "eval_samples_per_second": 101.508,
86
+ "eval_steps_per_second": 12.839,
87
+ "step": 512
88
+ },
89
+ {
90
+ "epoch": 9.0,
91
+ "eval_accuracy": 1.0,
92
+ "eval_loss": 0.05608272925019264,
93
+ "eval_runtime": 5.1403,
94
+ "eval_samples_per_second": 98.439,
95
+ "eval_steps_per_second": 12.451,
96
+ "step": 576
97
+ },
98
+ {
99
+ "epoch": 10.0,
100
+ "eval_accuracy": 1.0,
101
+ "eval_loss": 0.055376775562763214,
102
+ "eval_runtime": 5.0293,
103
+ "eval_samples_per_second": 100.61,
104
+ "eval_steps_per_second": 12.725,
105
+ "step": 640
106
+ }
107
+ ],
108
+ "logging_steps": 500,
109
+ "max_steps": 640,
110
+ "num_train_epochs": 10,
111
+ "save_steps": 500,
112
+ "total_flos": 1.5669020735288525e+18,
113
+ "trial_name": null,
114
+ "trial_params": null
115
+ }
checkpoint-640/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bca7d24ba12ebd121f2cc1d0b08aa48e6aaa46ae85ffca644c2cf819826d5d20
3
+ size 4027
config.json CHANGED
@@ -9,17 +9,17 @@
9
  "hidden_dropout_prob": 0.0,
10
  "hidden_size": 768,
11
  "id2label": {
12
- "0": "bad_quality",
13
- "1": "good_quality",
14
- "2": "empty_background"
15
  },
16
  "image_size": 224,
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
- "bad_quality": 0,
21
- "empty_background": 2,
22
- "good_quality": 1
23
  },
24
  "layer_norm_eps": 1e-12,
25
  "model_type": "vit",
 
9
  "hidden_dropout_prob": 0.0,
10
  "hidden_size": 768,
11
  "id2label": {
12
+ "0": "good_quality",
13
+ "1": "empty_background",
14
+ "2": "bad_quality"
15
  },
16
  "image_size": 224,
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
+ "bad_quality": 2,
21
+ "empty_background": 1,
22
+ "good_quality": 0
23
  },
24
  "layer_norm_eps": 1e-12,
25
  "model_type": "vit",
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ab5475aaa36f798fe2ba0b8b0ec41643f82c79fb2feda7319f2b43dbfef7ea38
3
  size 343271789
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbcabadaeed9ece55468a2d8f111cd80e8e4c587b5c4965d70350b14e9f0aab2
3
  size 343271789
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8acf4c65d2cb2b4179d07c7453b68afb1803bfe7b4697053dc36f65d5a5a6049
3
  size 4027
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bca7d24ba12ebd121f2cc1d0b08aa48e6aaa46ae85ffca644c2cf819826d5d20
3
  size 4027