yujiepan commited on
Commit
0f56e40
1 Parent(s): 0669a95

upload model

Browse files
config.json ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swin-base-patch4-window7-224",
3
+ "architectures": [
4
+ "NNCFNetwork"
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
+ "finetuning_task": "image-classification",
17
+ "hidden_act": "gelu",
18
+ "hidden_dropout_prob": 0.0,
19
+ "hidden_size": 1024,
20
+ "id2label": {
21
+ "0": "apple_pie",
22
+ "1": "baby_back_ribs",
23
+ "10": "bruschetta",
24
+ "100": "waffles",
25
+ "11": "caesar_salad",
26
+ "12": "cannoli",
27
+ "13": "caprese_salad",
28
+ "14": "carrot_cake",
29
+ "15": "ceviche",
30
+ "16": "cheesecake",
31
+ "17": "cheese_plate",
32
+ "18": "chicken_curry",
33
+ "19": "chicken_quesadilla",
34
+ "2": "baklava",
35
+ "20": "chicken_wings",
36
+ "21": "chocolate_cake",
37
+ "22": "chocolate_mousse",
38
+ "23": "churros",
39
+ "24": "clam_chowder",
40
+ "25": "club_sandwich",
41
+ "26": "crab_cakes",
42
+ "27": "creme_brulee",
43
+ "28": "croque_madame",
44
+ "29": "cup_cakes",
45
+ "3": "beef_carpaccio",
46
+ "30": "deviled_eggs",
47
+ "31": "donuts",
48
+ "32": "dumplings",
49
+ "33": "edamame",
50
+ "34": "eggs_benedict",
51
+ "35": "escargots",
52
+ "36": "falafel",
53
+ "37": "filet_mignon",
54
+ "38": "fish_and_chips",
55
+ "39": "foie_gras",
56
+ "4": "beef_tartare",
57
+ "40": "french_fries",
58
+ "41": "french_onion_soup",
59
+ "42": "french_toast",
60
+ "43": "fried_calamari",
61
+ "44": "fried_rice",
62
+ "45": "frozen_yogurt",
63
+ "46": "garlic_bread",
64
+ "47": "gnocchi",
65
+ "48": "greek_salad",
66
+ "49": "grilled_cheese_sandwich",
67
+ "5": "beet_salad",
68
+ "50": "grilled_salmon",
69
+ "51": "guacamole",
70
+ "52": "gyoza",
71
+ "53": "hamburger",
72
+ "54": "hot_and_sour_soup",
73
+ "55": "hot_dog",
74
+ "56": "huevos_rancheros",
75
+ "57": "hummus",
76
+ "58": "ice_cream",
77
+ "59": "lasagna",
78
+ "6": "beignets",
79
+ "60": "lobster_bisque",
80
+ "61": "lobster_roll_sandwich",
81
+ "62": "macaroni_and_cheese",
82
+ "63": "macarons",
83
+ "64": "miso_soup",
84
+ "65": "mussels",
85
+ "66": "nachos",
86
+ "67": "omelette",
87
+ "68": "onion_rings",
88
+ "69": "oysters",
89
+ "7": "bibimbap",
90
+ "70": "pad_thai",
91
+ "71": "paella",
92
+ "72": "pancakes",
93
+ "73": "panna_cotta",
94
+ "74": "peking_duck",
95
+ "75": "pho",
96
+ "76": "pizza",
97
+ "77": "pork_chop",
98
+ "78": "poutine",
99
+ "79": "prime_rib",
100
+ "8": "bread_pudding",
101
+ "80": "pulled_pork_sandwich",
102
+ "81": "ramen",
103
+ "82": "ravioli",
104
+ "83": "red_velvet_cake",
105
+ "84": "risotto",
106
+ "85": "samosa",
107
+ "86": "sashimi",
108
+ "87": "scallops",
109
+ "88": "seaweed_salad",
110
+ "89": "shrimp_and_grits",
111
+ "9": "breakfast_burrito",
112
+ "90": "spaghetti_bolognese",
113
+ "91": "spaghetti_carbonara",
114
+ "92": "spring_rolls",
115
+ "93": "steak",
116
+ "94": "strawberry_shortcake",
117
+ "95": "sushi",
118
+ "96": "tacos",
119
+ "97": "takoyaki",
120
+ "98": "tiramisu",
121
+ "99": "tuna_tartare"
122
+ },
123
+ "image_size": 224,
124
+ "initializer_range": 0.02,
125
+ "label2id": {
126
+ "apple_pie": "0",
127
+ "baby_back_ribs": "1",
128
+ "baklava": "2",
129
+ "beef_carpaccio": "3",
130
+ "beef_tartare": "4",
131
+ "beet_salad": "5",
132
+ "beignets": "6",
133
+ "bibimbap": "7",
134
+ "bread_pudding": "8",
135
+ "breakfast_burrito": "9",
136
+ "bruschetta": "10",
137
+ "caesar_salad": "11",
138
+ "cannoli": "12",
139
+ "caprese_salad": "13",
140
+ "carrot_cake": "14",
141
+ "ceviche": "15",
142
+ "cheese_plate": "17",
143
+ "cheesecake": "16",
144
+ "chicken_curry": "18",
145
+ "chicken_quesadilla": "19",
146
+ "chicken_wings": "20",
147
+ "chocolate_cake": "21",
148
+ "chocolate_mousse": "22",
149
+ "churros": "23",
150
+ "clam_chowder": "24",
151
+ "club_sandwich": "25",
152
+ "crab_cakes": "26",
153
+ "creme_brulee": "27",
154
+ "croque_madame": "28",
155
+ "cup_cakes": "29",
156
+ "deviled_eggs": "30",
157
+ "donuts": "31",
158
+ "dumplings": "32",
159
+ "edamame": "33",
160
+ "eggs_benedict": "34",
161
+ "escargots": "35",
162
+ "falafel": "36",
163
+ "filet_mignon": "37",
164
+ "fish_and_chips": "38",
165
+ "foie_gras": "39",
166
+ "french_fries": "40",
167
+ "french_onion_soup": "41",
168
+ "french_toast": "42",
169
+ "fried_calamari": "43",
170
+ "fried_rice": "44",
171
+ "frozen_yogurt": "45",
172
+ "garlic_bread": "46",
173
+ "gnocchi": "47",
174
+ "greek_salad": "48",
175
+ "grilled_cheese_sandwich": "49",
176
+ "grilled_salmon": "50",
177
+ "guacamole": "51",
178
+ "gyoza": "52",
179
+ "hamburger": "53",
180
+ "hot_and_sour_soup": "54",
181
+ "hot_dog": "55",
182
+ "huevos_rancheros": "56",
183
+ "hummus": "57",
184
+ "ice_cream": "58",
185
+ "lasagna": "59",
186
+ "lobster_bisque": "60",
187
+ "lobster_roll_sandwich": "61",
188
+ "macaroni_and_cheese": "62",
189
+ "macarons": "63",
190
+ "miso_soup": "64",
191
+ "mussels": "65",
192
+ "nachos": "66",
193
+ "omelette": "67",
194
+ "onion_rings": "68",
195
+ "oysters": "69",
196
+ "pad_thai": "70",
197
+ "paella": "71",
198
+ "pancakes": "72",
199
+ "panna_cotta": "73",
200
+ "peking_duck": "74",
201
+ "pho": "75",
202
+ "pizza": "76",
203
+ "pork_chop": "77",
204
+ "poutine": "78",
205
+ "prime_rib": "79",
206
+ "pulled_pork_sandwich": "80",
207
+ "ramen": "81",
208
+ "ravioli": "82",
209
+ "red_velvet_cake": "83",
210
+ "risotto": "84",
211
+ "samosa": "85",
212
+ "sashimi": "86",
213
+ "scallops": "87",
214
+ "seaweed_salad": "88",
215
+ "shrimp_and_grits": "89",
216
+ "spaghetti_bolognese": "90",
217
+ "spaghetti_carbonara": "91",
218
+ "spring_rolls": "92",
219
+ "steak": "93",
220
+ "strawberry_shortcake": "94",
221
+ "sushi": "95",
222
+ "tacos": "96",
223
+ "takoyaki": "97",
224
+ "tiramisu": "98",
225
+ "tuna_tartare": "99",
226
+ "waffles": "100"
227
+ },
228
+ "layer_norm_eps": 1e-05,
229
+ "mlp_ratio": 4.0,
230
+ "model_type": "swin",
231
+ "num_channels": 3,
232
+ "num_heads": [
233
+ 4,
234
+ 8,
235
+ 16,
236
+ 32
237
+ ],
238
+ "num_layers": 4,
239
+ "out_features": null,
240
+ "patch_size": 4,
241
+ "path_norm": true,
242
+ "problem_type": "single_label_classification",
243
+ "qkv_bias": true,
244
+ "stage_names": [
245
+ "stem",
246
+ "stage1",
247
+ "stage2",
248
+ "stage3",
249
+ "stage4"
250
+ ],
251
+ "torch_dtype": "float32",
252
+ "transformers_version": "4.26.0",
253
+ "use_absolute_embeddings": false,
254
+ "window_size": 7
255
+ }
openvino_config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "compression": [
3
+ {
4
+ "algorithm": "movement_sparsity",
5
+ "ignored_scopes": [
6
+ "{re}.*PatchEmbed.*",
7
+ "{re}.*PatchMerging.*",
8
+ "{re}.*classifier.*",
9
+ "{re}.*LayerNorm.*"
10
+ ],
11
+ "params": {
12
+ "enable_structured_masking": true,
13
+ "importance_regularization_factor": 1.0,
14
+ "warmup_end_epoch": 5,
15
+ "warmup_start_epoch": 2
16
+ },
17
+ "sparse_structure_by_scopes": [
18
+ {
19
+ "mode": "block",
20
+ "sparse_factors": [
21
+ 16,
22
+ 16
23
+ ],
24
+ "target_scopes": "{re}.*SwinAttention.*"
25
+ },
26
+ {
27
+ "axis": 0,
28
+ "mode": "per_dim",
29
+ "target_scopes": "{re}.*SwinIntermediate.*"
30
+ },
31
+ {
32
+ "axis": 1,
33
+ "mode": "per_dim",
34
+ "target_scopes": "{re}.*SwinOutput.*"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "algorithm": "quantization",
40
+ "export_to_onnx_standard_ops": false,
41
+ "ignored_scopes": [
42
+ "{re}.*__add___[0-1]",
43
+ "{re}.*layer_norm_0",
44
+ "{re}.*matmul_1",
45
+ "{re}.*__truediv__*"
46
+ ],
47
+ "initializer": {
48
+ "batchnorm_adaptation": {
49
+ "num_bn_adaptation_samples": 200
50
+ },
51
+ "range": {
52
+ "num_init_samples": 32,
53
+ "params": {
54
+ "max_percentile": 99.99,
55
+ "min_percentile": 0.01
56
+ },
57
+ "type": "percentile"
58
+ }
59
+ },
60
+ "overflow_fix": "enable",
61
+ "preset": "mixed",
62
+ "scope_overrides": {
63
+ "activations": {
64
+ "{re}.*matmul_0": {
65
+ "mode": "symmetric"
66
+ }
67
+ }
68
+ }
69
+ }
70
+ ],
71
+ "input_info": [
72
+ {
73
+ "keyword": "pixel_values",
74
+ "sample_size": [
75
+ 16,
76
+ 3,
77
+ 224,
78
+ 224
79
+ ],
80
+ "type": "float"
81
+ }
82
+ ],
83
+ "optimum_version": "1.6.3",
84
+ "save_onnx_model": false,
85
+ "transformers_version": "4.26.0"
86
+ }
openvino_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2694d685742f6c41c2c7f17daf3f9e0d68ec85347a5c272edb98fc56d7a39a81
3
+ size 55626048
openvino_model.xml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ef6cedcc1245851f432bd76d1674ef92e58bac4df60961c577793fa9b5a72bc
3
+ size 10487178
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": "ViTFeatureExtractor",
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:15955a0563f665b7f68398945b4e8aac2180b42ab4466765d6a5fb33b2e2c556
3
+ size 685689463