Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +37 -0
- config.json +152 -0
- preprocessor_config.json +23 -0
- pytorch_model.bin +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
37 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- vision
|
5 |
+
- image-classification
|
6 |
+
datasets:
|
7 |
+
- rwcuffney/autotrain-data-pick_a_card
|
8 |
+
widget:
|
9 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
10 |
+
example_title: Tiger
|
11 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
|
12 |
+
example_title: Teapot
|
13 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
14 |
+
example_title: Palace
|
15 |
+
co2_eq_emissions:
|
16 |
+
emissions: 22.59524540097308
|
17 |
+
---
|
18 |
+
|
19 |
+
# Model Trained Using AutoTrain
|
20 |
+
|
21 |
+
- Problem type: Multi-class Classification
|
22 |
+
- Model ID: 3726099224
|
23 |
+
- CO2 Emissions (in grams): 22.5952
|
24 |
+
|
25 |
+
## Validation Metrics
|
26 |
+
|
27 |
+
- Loss: 0.037
|
28 |
+
- Accuracy: 0.989
|
29 |
+
- Macro F1: 0.989
|
30 |
+
- Micro F1: 0.989
|
31 |
+
- Weighted F1: 0.989
|
32 |
+
- Macro Precision: 0.991
|
33 |
+
- Micro Precision: 0.989
|
34 |
+
- Weighted Precision: 0.991
|
35 |
+
- Macro Recall: 0.989
|
36 |
+
- Micro Recall: 0.989
|
37 |
+
- Weighted Recall: 0.989
|
config.json
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"architectures": [
|
4 |
+
"SwinForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"depths": [
|
8 |
+
2,
|
9 |
+
2,
|
10 |
+
18,
|
11 |
+
2
|
12 |
+
],
|
13 |
+
"drop_path_rate": 0.1,
|
14 |
+
"embed_dim": 128,
|
15 |
+
"encoder_stride": 32,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.0,
|
18 |
+
"hidden_size": 1024,
|
19 |
+
"id2label": {
|
20 |
+
"0": "ace of clubs",
|
21 |
+
"1": "ace 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 |
+
"2": "ace of hearts",
|
33 |
+
"20": "joker",
|
34 |
+
"21": "king of clubs",
|
35 |
+
"22": "king of diamonds",
|
36 |
+
"23": "king of hearts",
|
37 |
+
"24": "king of spades",
|
38 |
+
"25": "nine of clubs",
|
39 |
+
"26": "nine of diamonds",
|
40 |
+
"27": "nine of hearts",
|
41 |
+
"28": "nine of spades",
|
42 |
+
"29": "queen of clubs",
|
43 |
+
"3": "ace of spades",
|
44 |
+
"30": "queen of diamonds",
|
45 |
+
"31": "queen of hearts",
|
46 |
+
"32": "queen of spades",
|
47 |
+
"33": "seven of clubs",
|
48 |
+
"34": "seven of diamonds",
|
49 |
+
"35": "seven of hearts",
|
50 |
+
"36": "seven of spades",
|
51 |
+
"37": "six of clubs",
|
52 |
+
"38": "six of diamonds",
|
53 |
+
"39": "six of hearts",
|
54 |
+
"4": "eight of clubs",
|
55 |
+
"40": "six of spades",
|
56 |
+
"41": "ten of clubs",
|
57 |
+
"42": "ten of diamonds",
|
58 |
+
"43": "ten of hearts",
|
59 |
+
"44": "ten of spades",
|
60 |
+
"45": "three of clubs",
|
61 |
+
"46": "three of diamonds",
|
62 |
+
"47": "three of hearts",
|
63 |
+
"48": "three of spades",
|
64 |
+
"49": "two of clubs",
|
65 |
+
"5": "eight of diamonds",
|
66 |
+
"50": "two of diamonds",
|
67 |
+
"51": "two of hearts",
|
68 |
+
"52": "two of spades",
|
69 |
+
"6": "eight of hearts",
|
70 |
+
"7": "eight of spades",
|
71 |
+
"8": "five of clubs",
|
72 |
+
"9": "five of diamonds"
|
73 |
+
},
|
74 |
+
"image_size": 224,
|
75 |
+
"initializer_range": 0.02,
|
76 |
+
"label2id": {
|
77 |
+
"ace of clubs": "0",
|
78 |
+
"ace of diamonds": "1",
|
79 |
+
"ace of hearts": "2",
|
80 |
+
"ace of spades": "3",
|
81 |
+
"eight of clubs": "4",
|
82 |
+
"eight of diamonds": "5",
|
83 |
+
"eight of hearts": "6",
|
84 |
+
"eight of spades": "7",
|
85 |
+
"five of clubs": "8",
|
86 |
+
"five of diamonds": "9",
|
87 |
+
"five of hearts": "10",
|
88 |
+
"five of spades": "11",
|
89 |
+
"four of clubs": "12",
|
90 |
+
"four of diamonds": "13",
|
91 |
+
"four of hearts": "14",
|
92 |
+
"four of spades": "15",
|
93 |
+
"jack of clubs": "16",
|
94 |
+
"jack of diamonds": "17",
|
95 |
+
"jack of hearts": "18",
|
96 |
+
"jack of spades": "19",
|
97 |
+
"joker": "20",
|
98 |
+
"king of clubs": "21",
|
99 |
+
"king of diamonds": "22",
|
100 |
+
"king of hearts": "23",
|
101 |
+
"king of spades": "24",
|
102 |
+
"nine of clubs": "25",
|
103 |
+
"nine of diamonds": "26",
|
104 |
+
"nine of hearts": "27",
|
105 |
+
"nine of spades": "28",
|
106 |
+
"queen of clubs": "29",
|
107 |
+
"queen of diamonds": "30",
|
108 |
+
"queen of hearts": "31",
|
109 |
+
"queen of spades": "32",
|
110 |
+
"seven of clubs": "33",
|
111 |
+
"seven of diamonds": "34",
|
112 |
+
"seven of hearts": "35",
|
113 |
+
"seven of spades": "36",
|
114 |
+
"six of clubs": "37",
|
115 |
+
"six of diamonds": "38",
|
116 |
+
"six of hearts": "39",
|
117 |
+
"six of spades": "40",
|
118 |
+
"ten of clubs": "41",
|
119 |
+
"ten of diamonds": "42",
|
120 |
+
"ten of hearts": "43",
|
121 |
+
"ten of spades": "44",
|
122 |
+
"three of clubs": "45",
|
123 |
+
"three of diamonds": "46",
|
124 |
+
"three of hearts": "47",
|
125 |
+
"three of spades": "48",
|
126 |
+
"two of clubs": "49",
|
127 |
+
"two of diamonds": "50",
|
128 |
+
"two of hearts": "51",
|
129 |
+
"two of spades": "52"
|
130 |
+
},
|
131 |
+
"layer_norm_eps": 1e-05,
|
132 |
+
"max_length": 128,
|
133 |
+
"mlp_ratio": 4.0,
|
134 |
+
"model_type": "swin",
|
135 |
+
"num_channels": 3,
|
136 |
+
"num_heads": [
|
137 |
+
4,
|
138 |
+
8,
|
139 |
+
16,
|
140 |
+
32
|
141 |
+
],
|
142 |
+
"num_layers": 4,
|
143 |
+
"padding": "max_length",
|
144 |
+
"patch_size": 4,
|
145 |
+
"path_norm": true,
|
146 |
+
"problem_type": "single_label_classification",
|
147 |
+
"qkv_bias": true,
|
148 |
+
"torch_dtype": "float32",
|
149 |
+
"transformers_version": "4.25.1",
|
150 |
+
"use_absolute_embeddings": false,
|
151 |
+
"window_size": 7
|
152 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"feature_extractor_type": "ViTFeatureExtractor",
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "ViTImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 224,
|
21 |
+
"width": 224
|
22 |
+
}
|
23 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:79f88ec1e05307b58b0bfc6e7313efef2f88ad61915a00b162befef157a7f97f
|
3 |
+
size 347808849
|