dima806 commited on
Commit
9956609
1 Parent(s): 501530f

Upload folder using huggingface_hub

Browse files
checkpoint-254/config.json ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/card_type_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": "ace of clubs",
13
+ "1": "ace of diamonds",
14
+ "2": "ace of hearts",
15
+ "3": "ace of spades",
16
+ "4": "eight of clubs",
17
+ "5": "eight of diamonds",
18
+ "6": "eight of hearts",
19
+ "7": "eight of spades",
20
+ "8": "five of clubs",
21
+ "9": "five of diamonds",
22
+ "10": "five of hearts",
23
+ "11": "five of spades",
24
+ "12": "four of clubs",
25
+ "13": "four of diamonds",
26
+ "14": "four of hearts",
27
+ "15": "four of spades",
28
+ "16": "jack of clubs",
29
+ "17": "jack of diamonds",
30
+ "18": "jack of hearts",
31
+ "19": "jack of spades",
32
+ "20": "joker",
33
+ "21": "king of clubs",
34
+ "22": "king of diamonds",
35
+ "23": "king of hearts",
36
+ "24": "king of spades",
37
+ "25": "nine of clubs",
38
+ "26": "nine of diamonds",
39
+ "27": "nine of hearts",
40
+ "28": "nine of spades",
41
+ "29": "queen of clubs",
42
+ "30": "queen of diamonds",
43
+ "31": "queen of hearts",
44
+ "32": "queen of spades",
45
+ "33": "seven of clubs",
46
+ "34": "seven of diamonds",
47
+ "35": "seven of hearts",
48
+ "36": "seven of spades",
49
+ "37": "six of clubs",
50
+ "38": "six of diamonds",
51
+ "39": "six of hearts",
52
+ "40": "six of spades",
53
+ "41": "ten of clubs",
54
+ "42": "ten of diamonds",
55
+ "43": "ten of hearts",
56
+ "44": "ten of spades",
57
+ "45": "three of clubs",
58
+ "46": "three of diamonds",
59
+ "47": "three of hearts",
60
+ "48": "three of spades",
61
+ "49": "two of clubs",
62
+ "50": "two of diamonds",
63
+ "51": "two of hearts",
64
+ "52": "two of spades"
65
+ },
66
+ "image_size": 224,
67
+ "initializer_range": 0.02,
68
+ "intermediate_size": 3072,
69
+ "label2id": {
70
+ "ace of clubs": 0,
71
+ "ace of diamonds": 1,
72
+ "ace of hearts": 2,
73
+ "ace of spades": 3,
74
+ "eight of clubs": 4,
75
+ "eight of diamonds": 5,
76
+ "eight of hearts": 6,
77
+ "eight of spades": 7,
78
+ "five of clubs": 8,
79
+ "five of diamonds": 9,
80
+ "five of hearts": 10,
81
+ "five of spades": 11,
82
+ "four of clubs": 12,
83
+ "four of diamonds": 13,
84
+ "four of hearts": 14,
85
+ "four of spades": 15,
86
+ "jack of clubs": 16,
87
+ "jack of diamonds": 17,
88
+ "jack of hearts": 18,
89
+ "jack of spades": 19,
90
+ "joker": 20,
91
+ "king of clubs": 21,
92
+ "king of diamonds": 22,
93
+ "king of hearts": 23,
94
+ "king of spades": 24,
95
+ "nine of clubs": 25,
96
+ "nine of diamonds": 26,
97
+ "nine of hearts": 27,
98
+ "nine of spades": 28,
99
+ "queen of clubs": 29,
100
+ "queen of diamonds": 30,
101
+ "queen of hearts": 31,
102
+ "queen of spades": 32,
103
+ "seven of clubs": 33,
104
+ "seven of diamonds": 34,
105
+ "seven of hearts": 35,
106
+ "seven of spades": 36,
107
+ "six of clubs": 37,
108
+ "six of diamonds": 38,
109
+ "six of hearts": 39,
110
+ "six of spades": 40,
111
+ "ten of clubs": 41,
112
+ "ten of diamonds": 42,
113
+ "ten of hearts": 43,
114
+ "ten of spades": 44,
115
+ "three of clubs": 45,
116
+ "three of diamonds": 46,
117
+ "three of hearts": 47,
118
+ "three of spades": 48,
119
+ "two of clubs": 49,
120
+ "two of diamonds": 50,
121
+ "two of hearts": 51,
122
+ "two of spades": 52
123
+ },
124
+ "layer_norm_eps": 1e-12,
125
+ "model_type": "vit",
126
+ "num_attention_heads": 12,
127
+ "num_channels": 3,
128
+ "num_hidden_layers": 12,
129
+ "patch_size": 16,
130
+ "problem_type": "single_label_classification",
131
+ "qkv_bias": true,
132
+ "torch_dtype": "float32",
133
+ "transformers_version": "4.38.2"
134
+ }
checkpoint-254/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f604e92db3f68c7dcbd4c68836c00d9d7e859ea4089c5ce360dba617826a8cd8
3
+ size 343380860
checkpoint-254/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb58d516c7898d63e90186ea7aca63968ca8aa8754e5a8e92bdcdac23b8a32c3
3
+ size 686882181
checkpoint-254/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-254/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4b2fe6e616d631a3b8587344528f6366a74f4b91582fbd948e410cfe6426ae7
3
+ size 14575
checkpoint-254/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89d68c328f34ade399f1afe5303cfd9a4f74b7c22dbd81b5aae4e591fef6f1e0
3
+ size 627
checkpoint-254/trainer_state.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 2.1676998138427734,
3
+ "best_model_checkpoint": "card_type_image_detection/checkpoint-254",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 254,
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.6513580246913581,
14
+ "eval_loss": 2.171297788619995,
15
+ "eval_runtime": 16.4322,
16
+ "eval_samples_per_second": 123.233,
17
+ "eval_steps_per_second": 3.895,
18
+ "step": 127
19
+ },
20
+ {
21
+ "epoch": 2.0,
22
+ "eval_accuracy": 0.6553086419753087,
23
+ "eval_loss": 2.1676998138427734,
24
+ "eval_runtime": 16.3691,
25
+ "eval_samples_per_second": 123.709,
26
+ "eval_steps_per_second": 3.91,
27
+ "step": 254
28
+ }
29
+ ],
30
+ "logging_steps": 500,
31
+ "max_steps": 254,
32
+ "num_input_tokens_seen": 0,
33
+ "num_train_epochs": 2,
34
+ "save_steps": 500,
35
+ "total_flos": 1.2556339479143793e+18,
36
+ "train_batch_size": 64,
37
+ "trial_name": null,
38
+ "trial_params": null
39
+ }
checkpoint-254/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bdcf4983f81f02fc295057213b82ae70a72e5ea413bf042cbb987e9f5443586
3
+ size 4411
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
@@ -130,5 +130,5 @@
130
  "problem_type": "single_label_classification",
131
  "qkv_bias": true,
132
  "torch_dtype": "float32",
133
- "transformers_version": "4.35.2"
134
  }
 
1
  {
2
+ "_name_or_path": "dima806/card_type_image_detection",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
130
  "problem_type": "single_label_classification",
131
  "qkv_bias": true,
132
  "torch_dtype": "float32",
133
+ "transformers_version": "4.38.2"
134
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e67fe27f4a357a2b8bce1a9e565ac9aa096eb5fed005739ce9dd866069f41146
3
  size 343380860
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f604e92db3f68c7dcbd4c68836c00d9d7e859ea4089c5ce360dba617826a8cd8
3
  size 343380860
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:228f29b6a2e9560079c65c3416fd8bcbe6376471ac08b36d341233494efae6e3
3
- size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bdcf4983f81f02fc295057213b82ae70a72e5ea413bf042cbb987e9f5443586
3
+ size 4411