Mariofm02 commited on
Commit
a587258
1 Parent(s): 6f260a5

Model save

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21K
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: finetuned-cards-blackjack
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # finetuned-cards-blackjack
17
+
18
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21K](https://huggingface.co/google/vit-base-patch16-224-in21K) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.9121
21
+ - Accuracy: 0.7710
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0002
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 4
47
+ - mixed_precision_training: Native AMP
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
53
+ | 3.1307 | 0.24 | 100 | 3.0180 | 0.2093 |
54
+ | 2.7372 | 0.48 | 200 | 2.5301 | 0.2762 |
55
+ | 2.4969 | 0.73 | 300 | 2.1760 | 0.3439 |
56
+ | 2.1973 | 0.97 | 400 | 2.0103 | 0.3756 |
57
+ | 1.8847 | 1.21 | 500 | 1.8402 | 0.4108 |
58
+ | 1.746 | 1.45 | 600 | 1.7051 | 0.4803 |
59
+ | 1.8698 | 1.69 | 700 | 1.5985 | 0.4889 |
60
+ | 1.7261 | 1.94 | 800 | 1.4312 | 0.5840 |
61
+ | 1.7385 | 2.18 | 900 | 1.3585 | 0.6286 |
62
+ | 1.5873 | 2.42 | 1000 | 1.2374 | 0.6758 |
63
+ | 1.4775 | 2.66 | 1100 | 1.1352 | 0.7024 |
64
+ | 1.2697 | 2.91 | 1200 | 1.1044 | 0.7093 |
65
+ | 1.2137 | 3.15 | 1300 | 1.0006 | 0.7616 |
66
+ | 1.423 | 3.39 | 1400 | 0.9589 | 0.7744 |
67
+ | 1.0098 | 3.63 | 1500 | 0.9360 | 0.7684 |
68
+ | 1.1325 | 3.87 | 1600 | 0.9121 | 0.7710 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.38.2
74
+ - Pytorch 2.2.1+cu121
75
+ - Datasets 2.18.0
76
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "ace of clubs",
13
+ "1": "ace of diamonds",
14
+ "10": "five of hearts",
15
+ "11": "five of spades",
16
+ "12": "four of clubs",
17
+ "13": "four of diamonds",
18
+ "14": "four of hearts",
19
+ "15": "four of spades",
20
+ "16": "jack of clubs",
21
+ "17": "jack of diamonds",
22
+ "18": "jack of hearts",
23
+ "19": "jack of spades",
24
+ "2": "ace of hearts",
25
+ "20": "king of clubs",
26
+ "21": "king of diamonds",
27
+ "22": "king of hearts",
28
+ "23": "king of spades",
29
+ "24": "nine of clubs",
30
+ "25": "nine of diamonds",
31
+ "26": "nine of hearts",
32
+ "27": "nine of spades",
33
+ "28": "queen of clubs",
34
+ "29": "queen of diamonds",
35
+ "3": "ace of spades",
36
+ "30": "queen of hearts",
37
+ "31": "queen of spades",
38
+ "32": "seven of clubs",
39
+ "33": "seven of diamonds",
40
+ "34": "seven of hearts",
41
+ "35": "seven of spades",
42
+ "36": "six of clubs",
43
+ "37": "six of diamonds",
44
+ "38": "six of hearts",
45
+ "39": "six of spades",
46
+ "4": "eight of clubs",
47
+ "40": "ten of clubs",
48
+ "41": "ten of diamonds",
49
+ "42": "ten of hearts",
50
+ "43": "ten of spades",
51
+ "44": "three of clubs",
52
+ "45": "three of diamonds",
53
+ "46": "three of hearts",
54
+ "47": "three of spades",
55
+ "48": "two of clubs",
56
+ "49": "two of diamonds",
57
+ "5": "eight of diamonds",
58
+ "50": "two of hearts",
59
+ "51": "two of spades",
60
+ "6": "eight of hearts",
61
+ "7": "eight of spades",
62
+ "8": "five of clubs",
63
+ "9": "five of diamonds"
64
+ },
65
+ "image_size": 224,
66
+ "initializer_range": 0.02,
67
+ "intermediate_size": 3072,
68
+ "label2id": {
69
+ "ace of clubs": "0",
70
+ "ace of diamonds": "1",
71
+ "ace of hearts": "2",
72
+ "ace of spades": "3",
73
+ "eight of clubs": "4",
74
+ "eight of diamonds": "5",
75
+ "eight of hearts": "6",
76
+ "eight of spades": "7",
77
+ "five of clubs": "8",
78
+ "five of diamonds": "9",
79
+ "five of hearts": "10",
80
+ "five of spades": "11",
81
+ "four of clubs": "12",
82
+ "four of diamonds": "13",
83
+ "four of hearts": "14",
84
+ "four of spades": "15",
85
+ "jack of clubs": "16",
86
+ "jack of diamonds": "17",
87
+ "jack of hearts": "18",
88
+ "jack of spades": "19",
89
+ "king of clubs": "20",
90
+ "king of diamonds": "21",
91
+ "king of hearts": "22",
92
+ "king of spades": "23",
93
+ "nine of clubs": "24",
94
+ "nine of diamonds": "25",
95
+ "nine of hearts": "26",
96
+ "nine of spades": "27",
97
+ "queen of clubs": "28",
98
+ "queen of diamonds": "29",
99
+ "queen of hearts": "30",
100
+ "queen of spades": "31",
101
+ "seven of clubs": "32",
102
+ "seven of diamonds": "33",
103
+ "seven of hearts": "34",
104
+ "seven of spades": "35",
105
+ "six of clubs": "36",
106
+ "six of diamonds": "37",
107
+ "six of hearts": "38",
108
+ "six of spades": "39",
109
+ "ten of clubs": "40",
110
+ "ten of diamonds": "41",
111
+ "ten of hearts": "42",
112
+ "ten of spades": "43",
113
+ "three of clubs": "44",
114
+ "three of diamonds": "45",
115
+ "three of hearts": "46",
116
+ "three of spades": "47",
117
+ "two of clubs": "48",
118
+ "two of diamonds": "49",
119
+ "two of hearts": "50",
120
+ "two of spades": "51"
121
+ },
122
+ "layer_norm_eps": 1e-12,
123
+ "model_type": "vit",
124
+ "num_attention_heads": 12,
125
+ "num_channels": 3,
126
+ "num_hidden_layers": 12,
127
+ "patch_size": 16,
128
+ "problem_type": "single_label_classification",
129
+ "qkv_bias": true,
130
+ "torch_dtype": "float32",
131
+ "transformers_version": "4.38.2"
132
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:808ea45f936d03a7fc517107e6638c9c74952f79ce7f1f2082bf4a417f12605c
3
+ size 343377784
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": "ViTFeatureExtractor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": [
19
+ 224,
20
+ 224
21
+ ]
22
+ }
runs/Mar29_19-44-52_44990517b672/events.out.tfevents.1711741561.44990517b672.3784.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:073968b637160206d70e970eaca2ce6248dff2be8d3ec69102a66faaf806ff35
3
+ size 7414
runs/Mar29_19-44-52_44990517b672/events.out.tfevents.1711741839.44990517b672.3784.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77e807b14508609b2b68be3650d1c214bacc3c577db52c108349d6fade615390
3
+ size 47697
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbb4d0502cb6aa8e763c1e6b3bea2a272af2e0cd58d51af575190057bab553e7
3
+ size 4920