Inf009 commited on
Commit
edceee6
1 Parent(s): f820b0a

1027 vit with asymmetric loss

Browse files
Files changed (3) hide show
  1. config.json +234 -0
  2. pytorch_model.bin +3 -0
  3. word2idx.json +105 -0
config.json ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "D:/Projects/PythonProjects/multi-lable-vit/model_files/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": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6",
19
+ "7": "LABEL_7",
20
+ "8": "LABEL_8",
21
+ "9": "LABEL_9",
22
+ "10": "LABEL_10",
23
+ "11": "LABEL_11",
24
+ "12": "LABEL_12",
25
+ "13": "LABEL_13",
26
+ "14": "LABEL_14",
27
+ "15": "LABEL_15",
28
+ "16": "LABEL_16",
29
+ "17": "LABEL_17",
30
+ "18": "LABEL_18",
31
+ "19": "LABEL_19",
32
+ "20": "LABEL_20",
33
+ "21": "LABEL_21",
34
+ "22": "LABEL_22",
35
+ "23": "LABEL_23",
36
+ "24": "LABEL_24",
37
+ "25": "LABEL_25",
38
+ "26": "LABEL_26",
39
+ "27": "LABEL_27",
40
+ "28": "LABEL_28",
41
+ "29": "LABEL_29",
42
+ "30": "LABEL_30",
43
+ "31": "LABEL_31",
44
+ "32": "LABEL_32",
45
+ "33": "LABEL_33",
46
+ "34": "LABEL_34",
47
+ "35": "LABEL_35",
48
+ "36": "LABEL_36",
49
+ "37": "LABEL_37",
50
+ "38": "LABEL_38",
51
+ "39": "LABEL_39",
52
+ "40": "LABEL_40",
53
+ "41": "LABEL_41",
54
+ "42": "LABEL_42",
55
+ "43": "LABEL_43",
56
+ "44": "LABEL_44",
57
+ "45": "LABEL_45",
58
+ "46": "LABEL_46",
59
+ "47": "LABEL_47",
60
+ "48": "LABEL_48",
61
+ "49": "LABEL_49",
62
+ "50": "LABEL_50",
63
+ "51": "LABEL_51",
64
+ "52": "LABEL_52",
65
+ "53": "LABEL_53",
66
+ "54": "LABEL_54",
67
+ "55": "LABEL_55",
68
+ "56": "LABEL_56",
69
+ "57": "LABEL_57",
70
+ "58": "LABEL_58",
71
+ "59": "LABEL_59",
72
+ "60": "LABEL_60",
73
+ "61": "LABEL_61",
74
+ "62": "LABEL_62",
75
+ "63": "LABEL_63",
76
+ "64": "LABEL_64",
77
+ "65": "LABEL_65",
78
+ "66": "LABEL_66",
79
+ "67": "LABEL_67",
80
+ "68": "LABEL_68",
81
+ "69": "LABEL_69",
82
+ "70": "LABEL_70",
83
+ "71": "LABEL_71",
84
+ "72": "LABEL_72",
85
+ "73": "LABEL_73",
86
+ "74": "LABEL_74",
87
+ "75": "LABEL_75",
88
+ "76": "LABEL_76",
89
+ "77": "LABEL_77",
90
+ "78": "LABEL_78",
91
+ "79": "LABEL_79",
92
+ "80": "LABEL_80",
93
+ "81": "LABEL_81",
94
+ "82": "LABEL_82",
95
+ "83": "LABEL_83",
96
+ "84": "LABEL_84",
97
+ "85": "LABEL_85",
98
+ "86": "LABEL_86",
99
+ "87": "LABEL_87",
100
+ "88": "LABEL_88",
101
+ "89": "LABEL_89",
102
+ "90": "LABEL_90",
103
+ "91": "LABEL_91",
104
+ "92": "LABEL_92",
105
+ "93": "LABEL_93",
106
+ "94": "LABEL_94",
107
+ "95": "LABEL_95",
108
+ "96": "LABEL_96",
109
+ "97": "LABEL_97",
110
+ "98": "LABEL_98",
111
+ "99": "LABEL_99",
112
+ "100": "LABEL_100",
113
+ "101": "LABEL_101",
114
+ "102": "LABEL_102"
115
+ },
116
+ "image_size": 224,
117
+ "initializer_range": 0.02,
118
+ "intermediate_size": 3072,
119
+ "label2id": {
120
+ "LABEL_0": 0,
121
+ "LABEL_1": 1,
122
+ "LABEL_10": 10,
123
+ "LABEL_100": 100,
124
+ "LABEL_101": 101,
125
+ "LABEL_102": 102,
126
+ "LABEL_11": 11,
127
+ "LABEL_12": 12,
128
+ "LABEL_13": 13,
129
+ "LABEL_14": 14,
130
+ "LABEL_15": 15,
131
+ "LABEL_16": 16,
132
+ "LABEL_17": 17,
133
+ "LABEL_18": 18,
134
+ "LABEL_19": 19,
135
+ "LABEL_2": 2,
136
+ "LABEL_20": 20,
137
+ "LABEL_21": 21,
138
+ "LABEL_22": 22,
139
+ "LABEL_23": 23,
140
+ "LABEL_24": 24,
141
+ "LABEL_25": 25,
142
+ "LABEL_26": 26,
143
+ "LABEL_27": 27,
144
+ "LABEL_28": 28,
145
+ "LABEL_29": 29,
146
+ "LABEL_3": 3,
147
+ "LABEL_30": 30,
148
+ "LABEL_31": 31,
149
+ "LABEL_32": 32,
150
+ "LABEL_33": 33,
151
+ "LABEL_34": 34,
152
+ "LABEL_35": 35,
153
+ "LABEL_36": 36,
154
+ "LABEL_37": 37,
155
+ "LABEL_38": 38,
156
+ "LABEL_39": 39,
157
+ "LABEL_4": 4,
158
+ "LABEL_40": 40,
159
+ "LABEL_41": 41,
160
+ "LABEL_42": 42,
161
+ "LABEL_43": 43,
162
+ "LABEL_44": 44,
163
+ "LABEL_45": 45,
164
+ "LABEL_46": 46,
165
+ "LABEL_47": 47,
166
+ "LABEL_48": 48,
167
+ "LABEL_49": 49,
168
+ "LABEL_5": 5,
169
+ "LABEL_50": 50,
170
+ "LABEL_51": 51,
171
+ "LABEL_52": 52,
172
+ "LABEL_53": 53,
173
+ "LABEL_54": 54,
174
+ "LABEL_55": 55,
175
+ "LABEL_56": 56,
176
+ "LABEL_57": 57,
177
+ "LABEL_58": 58,
178
+ "LABEL_59": 59,
179
+ "LABEL_6": 6,
180
+ "LABEL_60": 60,
181
+ "LABEL_61": 61,
182
+ "LABEL_62": 62,
183
+ "LABEL_63": 63,
184
+ "LABEL_64": 64,
185
+ "LABEL_65": 65,
186
+ "LABEL_66": 66,
187
+ "LABEL_67": 67,
188
+ "LABEL_68": 68,
189
+ "LABEL_69": 69,
190
+ "LABEL_7": 7,
191
+ "LABEL_70": 70,
192
+ "LABEL_71": 71,
193
+ "LABEL_72": 72,
194
+ "LABEL_73": 73,
195
+ "LABEL_74": 74,
196
+ "LABEL_75": 75,
197
+ "LABEL_76": 76,
198
+ "LABEL_77": 77,
199
+ "LABEL_78": 78,
200
+ "LABEL_79": 79,
201
+ "LABEL_8": 8,
202
+ "LABEL_80": 80,
203
+ "LABEL_81": 81,
204
+ "LABEL_82": 82,
205
+ "LABEL_83": 83,
206
+ "LABEL_84": 84,
207
+ "LABEL_85": 85,
208
+ "LABEL_86": 86,
209
+ "LABEL_87": 87,
210
+ "LABEL_88": 88,
211
+ "LABEL_89": 89,
212
+ "LABEL_9": 9,
213
+ "LABEL_90": 90,
214
+ "LABEL_91": 91,
215
+ "LABEL_92": 92,
216
+ "LABEL_93": 93,
217
+ "LABEL_94": 94,
218
+ "LABEL_95": 95,
219
+ "LABEL_96": 96,
220
+ "LABEL_97": 97,
221
+ "LABEL_98": 98,
222
+ "LABEL_99": 99
223
+ },
224
+ "layer_norm_eps": 1e-12,
225
+ "model_type": "vit",
226
+ "num_attention_heads": 12,
227
+ "num_channels": 3,
228
+ "num_hidden_layers": 12,
229
+ "patch_size": 16,
230
+ "problem_type": "multi_label_classification",
231
+ "qkv_bias": true,
232
+ "torch_dtype": "float32",
233
+ "transformers_version": "4.25.1"
234
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64083922966ab3c7f1db26e2c76cca60927d0545c7d9340859b0282e4a0488df
3
+ size 343579373
word2idx.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "French beans": 0,
3
+ "almond": 1,
4
+ "apple": 2,
5
+ "apricot": 3,
6
+ "asparagus": 4,
7
+ "avocado": 5,
8
+ "bamboo shoots": 6,
9
+ "banana": 7,
10
+ "bean sprouts": 8,
11
+ "biscuit": 9,
12
+ "blueberry": 10,
13
+ "bread": 11,
14
+ "broccoli": 12,
15
+ "cabbage": 13,
16
+ "cake": 14,
17
+ "candy": 15,
18
+ "carrot": 16,
19
+ "cashew": 17,
20
+ "cauliflower": 18,
21
+ "celery stick": 19,
22
+ "cheese butter": 20,
23
+ "cherry": 21,
24
+ "chicken duck": 22,
25
+ "chocolate": 23,
26
+ "cilantro mint": 24,
27
+ "coffee": 25,
28
+ "corn": 26,
29
+ "crab": 27,
30
+ "cucumber": 28,
31
+ "date": 29,
32
+ "dried cranberries": 30,
33
+ "egg": 31,
34
+ "egg tart": 32,
35
+ "eggplant": 33,
36
+ "enoki mushroom": 34,
37
+ "fig": 35,
38
+ "fish": 36,
39
+ "french fries": 37,
40
+ "fried meat": 38,
41
+ "garlic": 39,
42
+ "ginger": 40,
43
+ "grape": 41,
44
+ "green beans": 42,
45
+ "hamburg": 43,
46
+ "hanamaki baozi": 44,
47
+ "ice cream": 45,
48
+ "juice": 46,
49
+ "kelp": 47,
50
+ "king oyster mushroom": 48,
51
+ "kiwi": 49,
52
+ "lamb": 50,
53
+ "lemon": 51,
54
+ "lettuce": 52,
55
+ "mango": 53,
56
+ "melon": 54,
57
+ "milk": 55,
58
+ "milkshake": 56,
59
+ "noodles": 57,
60
+ "okra": 58,
61
+ "olives": 59,
62
+ "onion": 60,
63
+ "orange": 61,
64
+ "other ingredients": 62,
65
+ "oyster mushroom": 63,
66
+ "pasta": 64,
67
+ "peach": 65,
68
+ "peanut": 66,
69
+ "pear": 67,
70
+ "pepper": 68,
71
+ "pie": 69,
72
+ "pineapple": 70,
73
+ "pizza": 71,
74
+ "popcorn": 72,
75
+ "pork": 73,
76
+ "potato": 74,
77
+ "pudding": 75,
78
+ "pumpkin": 76,
79
+ "rape": 77,
80
+ "raspberry": 78,
81
+ "red beans": 79,
82
+ "rice": 80,
83
+ "salad": 81,
84
+ "sauce": 82,
85
+ "sausage": 83,
86
+ "seaweed": 84,
87
+ "shellfish": 85,
88
+ "shiitake": 86,
89
+ "shrimp": 87,
90
+ "snow peas": 88,
91
+ "soup": 89,
92
+ "soy": 90,
93
+ "spring onion": 91,
94
+ "steak": 92,
95
+ "strawberry": 93,
96
+ "tea": 94,
97
+ "tofu": 95,
98
+ "tomato": 96,
99
+ "walnut": 97,
100
+ "watermelon": 98,
101
+ "white button mushroom": 99,
102
+ "white radish": 100,
103
+ "wine": 101,
104
+ "wonton dumplings": 102
105
+ }