Image Segmentation
Transformers
PyTorch
upernet
Inference Endpoints
mccaly commited on
Commit
e9a28e7
1 Parent(s): baf3bdf

Upload config.json

Browse files
Files changed (1) hide show
  1. config.json +440 -0
config.json ADDED
@@ -0,0 +1,440 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "architectures": [
4
+ "UperNetForSemanticSegmentation"
5
+ ],
6
+ "auxiliary_channels": 256,
7
+ "auxiliary_concat_input": false,
8
+ "auxiliary_in_channels": 384,
9
+ "auxiliary_loss_weight": 0.4,
10
+ "auxiliary_num_convs": 1,
11
+ "backbone_config": {
12
+ "_name_or_path": "",
13
+ "add_cross_attention": false,
14
+ "architectures": null,
15
+ "attention_probs_dropout_prob": 0.0,
16
+ "bad_words_ids": null,
17
+ "begin_suppress_tokens": null,
18
+ "bos_token_id": null,
19
+ "chunk_size_feed_forward": 0,
20
+ "cross_attention_hidden_size": null,
21
+ "decoder_start_token_id": null,
22
+ "depths": [
23
+ 2,
24
+ 2,
25
+ 18,
26
+ 2
27
+ ],
28
+ "diversity_penalty": 0.0,
29
+ "do_sample": false,
30
+ "drop_path_rate": 0.1,
31
+ "early_stopping": false,
32
+ "embed_dim": 96,
33
+ "encoder_no_repeat_ngram_size": 0,
34
+ "encoder_stride": 32,
35
+ "eos_token_id": null,
36
+ "exponential_decay_length_penalty": null,
37
+ "finetuning_task": null,
38
+ "forced_bos_token_id": null,
39
+ "forced_eos_token_id": null,
40
+ "hidden_act": "gelu",
41
+ "hidden_dropout_prob": 0.0,
42
+ "hidden_size": 768,
43
+ "id2label": {
44
+ "0": "LABEL_0",
45
+ "1": "LABEL_1"
46
+ },
47
+ "image_size": 224,
48
+ "initializer_range": 0.02,
49
+ "is_decoder": false,
50
+ "is_encoder_decoder": false,
51
+ "label2id": {
52
+ "LABEL_0": 0,
53
+ "LABEL_1": 1
54
+ },
55
+ "layer_norm_eps": 1e-05,
56
+ "length_penalty": 1.0,
57
+ "max_length": 20,
58
+ "min_length": 0,
59
+ "mlp_ratio": 4.0,
60
+ "model_type": "swin",
61
+ "no_repeat_ngram_size": 0,
62
+ "num_beam_groups": 1,
63
+ "num_beams": 1,
64
+ "num_channels": 3,
65
+ "num_heads": [
66
+ 3,
67
+ 6,
68
+ 12,
69
+ 24
70
+ ],
71
+ "num_layers": 4,
72
+ "num_return_sequences": 1,
73
+ "out_features": [
74
+ "stage1",
75
+ "stage2",
76
+ "stage3",
77
+ "stage4"
78
+ ],
79
+ "out_indices": [
80
+ 1,
81
+ 2,
82
+ 3,
83
+ 4
84
+ ],
85
+ "output_attentions": false,
86
+ "output_hidden_states": false,
87
+ "output_scores": false,
88
+ "pad_token_id": null,
89
+ "patch_size": 4,
90
+ "prefix": null,
91
+ "problem_type": null,
92
+ "pruned_heads": {},
93
+ "qkv_bias": true,
94
+ "remove_invalid_values": false,
95
+ "repetition_penalty": 1.0,
96
+ "return_dict": true,
97
+ "return_dict_in_generate": false,
98
+ "sep_token_id": null,
99
+ "stage_names": [
100
+ "stem",
101
+ "stage1",
102
+ "stage2",
103
+ "stage3",
104
+ "stage4"
105
+ ],
106
+ "suppress_tokens": null,
107
+ "task_specific_params": null,
108
+ "temperature": 1.0,
109
+ "tf_legacy_loss": false,
110
+ "tie_encoder_decoder": false,
111
+ "tie_word_embeddings": true,
112
+ "tokenizer_class": null,
113
+ "top_k": 50,
114
+ "top_p": 1.0,
115
+ "torch_dtype": null,
116
+ "torchscript": false,
117
+ "transformers_version": "4.31.0",
118
+ "typical_p": 1.0,
119
+ "use_absolute_embeddings": false,
120
+ "use_bfloat16": false,
121
+ "window_size": 7
122
+ },
123
+ "hidden_size": 512,
124
+ "id2label": {
125
+ "0": "wall",
126
+ "1": "building",
127
+ "2": "sky",
128
+ "3": "floor",
129
+ "4": "tree",
130
+ "5": "ceiling",
131
+ "6": "road",
132
+ "7": "bed ",
133
+ "8": "windowpane",
134
+ "9": "grass",
135
+ "10": "cabinet",
136
+ "11": "sidewalk",
137
+ "12": "person",
138
+ "13": "earth",
139
+ "14": "door",
140
+ "15": "table",
141
+ "16": "mountain",
142
+ "17": "plant",
143
+ "18": "curtain",
144
+ "19": "chair",
145
+ "20": "car",
146
+ "21": "water",
147
+ "22": "painting",
148
+ "23": "sofa",
149
+ "24": "shelf",
150
+ "25": "house",
151
+ "26": "sea",
152
+ "27": "mirror",
153
+ "28": "rug",
154
+ "29": "field",
155
+ "30": "armchair",
156
+ "31": "seat",
157
+ "32": "fence",
158
+ "33": "desk",
159
+ "34": "rock",
160
+ "35": "wardrobe",
161
+ "36": "lamp",
162
+ "37": "bathtub",
163
+ "38": "railing",
164
+ "39": "cushion",
165
+ "40": "base",
166
+ "41": "box",
167
+ "42": "column",
168
+ "43": "signboard",
169
+ "44": "chest of drawers",
170
+ "45": "counter",
171
+ "46": "sand",
172
+ "47": "sink",
173
+ "48": "skyscraper",
174
+ "49": "fireplace",
175
+ "50": "refrigerator",
176
+ "51": "grandstand",
177
+ "52": "path",
178
+ "53": "stairs",
179
+ "54": "runway",
180
+ "55": "case",
181
+ "56": "pool table",
182
+ "57": "pillow",
183
+ "58": "screen door",
184
+ "59": "stairway",
185
+ "60": "river",
186
+ "61": "bridge",
187
+ "62": "bookcase",
188
+ "63": "blind",
189
+ "64": "coffee table",
190
+ "65": "toilet",
191
+ "66": "flower",
192
+ "67": "book",
193
+ "68": "hill",
194
+ "69": "bench",
195
+ "70": "countertop",
196
+ "71": "stove",
197
+ "72": "palm",
198
+ "73": "kitchen island",
199
+ "74": "computer",
200
+ "75": "swivel chair",
201
+ "76": "boat",
202
+ "77": "bar",
203
+ "78": "arcade machine",
204
+ "79": "hovel",
205
+ "80": "bus",
206
+ "81": "towel",
207
+ "82": "light",
208
+ "83": "truck",
209
+ "84": "tower",
210
+ "85": "chandelier",
211
+ "86": "awning",
212
+ "87": "streetlight",
213
+ "88": "booth",
214
+ "89": "television receiver",
215
+ "90": "airplane",
216
+ "91": "dirt track",
217
+ "92": "apparel",
218
+ "93": "pole",
219
+ "94": "land",
220
+ "95": "bannister",
221
+ "96": "escalator",
222
+ "97": "ottoman",
223
+ "98": "bottle",
224
+ "99": "buffet",
225
+ "100": "poster",
226
+ "101": "stage",
227
+ "102": "van",
228
+ "103": "ship",
229
+ "104": "fountain",
230
+ "105": "conveyer belt",
231
+ "106": "canopy",
232
+ "107": "washer",
233
+ "108": "plaything",
234
+ "109": "swimming pool",
235
+ "110": "stool",
236
+ "111": "barrel",
237
+ "112": "basket",
238
+ "113": "waterfall",
239
+ "114": "tent",
240
+ "115": "bag",
241
+ "116": "minibike",
242
+ "117": "cradle",
243
+ "118": "oven",
244
+ "119": "ball",
245
+ "120": "food",
246
+ "121": "step",
247
+ "122": "tank",
248
+ "123": "trade name",
249
+ "124": "microwave",
250
+ "125": "pot",
251
+ "126": "animal",
252
+ "127": "bicycle",
253
+ "128": "lake",
254
+ "129": "dishwasher",
255
+ "130": "screen",
256
+ "131": "blanket",
257
+ "132": "sculpture",
258
+ "133": "hood",
259
+ "134": "sconce",
260
+ "135": "vase",
261
+ "136": "traffic light",
262
+ "137": "tray",
263
+ "138": "ashcan",
264
+ "139": "fan",
265
+ "140": "pier",
266
+ "141": "crt screen",
267
+ "142": "plate",
268
+ "143": "monitor",
269
+ "144": "bulletin board",
270
+ "145": "shower",
271
+ "146": "radiator",
272
+ "147": "glass",
273
+ "148": "clock",
274
+ "149": "flag"
275
+ },
276
+ "initializer_range": 0.02,
277
+ "label2id": {
278
+ "airplane": 90,
279
+ "animal": 126,
280
+ "apparel": 92,
281
+ "arcade machine": 78,
282
+ "armchair": 30,
283
+ "ashcan": 138,
284
+ "awning": 86,
285
+ "bag": 115,
286
+ "ball": 119,
287
+ "bannister": 95,
288
+ "bar": 77,
289
+ "barrel": 111,
290
+ "base": 40,
291
+ "basket": 112,
292
+ "bathtub": 37,
293
+ "bed ": 7,
294
+ "bench": 69,
295
+ "bicycle": 127,
296
+ "blanket": 131,
297
+ "blind": 63,
298
+ "boat": 76,
299
+ "book": 67,
300
+ "bookcase": 62,
301
+ "booth": 88,
302
+ "bottle": 98,
303
+ "box": 41,
304
+ "bridge": 61,
305
+ "buffet": 99,
306
+ "building": 1,
307
+ "bulletin board": 144,
308
+ "bus": 80,
309
+ "cabinet": 10,
310
+ "canopy": 106,
311
+ "car": 20,
312
+ "case": 55,
313
+ "ceiling": 5,
314
+ "chair": 19,
315
+ "chandelier": 85,
316
+ "chest of drawers": 44,
317
+ "clock": 148,
318
+ "coffee table": 64,
319
+ "column": 42,
320
+ "computer": 74,
321
+ "conveyer belt": 105,
322
+ "counter": 45,
323
+ "countertop": 70,
324
+ "cradle": 117,
325
+ "crt screen": 141,
326
+ "curtain": 18,
327
+ "cushion": 39,
328
+ "desk": 33,
329
+ "dirt track": 91,
330
+ "dishwasher": 129,
331
+ "door": 14,
332
+ "earth": 13,
333
+ "escalator": 96,
334
+ "fan": 139,
335
+ "fence": 32,
336
+ "field": 29,
337
+ "fireplace": 49,
338
+ "flag": 149,
339
+ "floor": 3,
340
+ "flower": 66,
341
+ "food": 120,
342
+ "fountain": 104,
343
+ "glass": 147,
344
+ "grandstand": 51,
345
+ "grass": 9,
346
+ "hill": 68,
347
+ "hood": 133,
348
+ "house": 25,
349
+ "hovel": 79,
350
+ "kitchen island": 73,
351
+ "lake": 128,
352
+ "lamp": 36,
353
+ "land": 94,
354
+ "light": 82,
355
+ "microwave": 124,
356
+ "minibike": 116,
357
+ "mirror": 27,
358
+ "monitor": 143,
359
+ "mountain": 16,
360
+ "ottoman": 97,
361
+ "oven": 118,
362
+ "painting": 22,
363
+ "palm": 72,
364
+ "path": 52,
365
+ "person": 12,
366
+ "pier": 140,
367
+ "pillow": 57,
368
+ "plant": 17,
369
+ "plate": 142,
370
+ "plaything": 108,
371
+ "pole": 93,
372
+ "pool table": 56,
373
+ "poster": 100,
374
+ "pot": 125,
375
+ "radiator": 146,
376
+ "railing": 38,
377
+ "refrigerator": 50,
378
+ "river": 60,
379
+ "road": 6,
380
+ "rock": 34,
381
+ "rug": 28,
382
+ "runway": 54,
383
+ "sand": 46,
384
+ "sconce": 134,
385
+ "screen": 130,
386
+ "screen door": 58,
387
+ "sculpture": 132,
388
+ "sea": 26,
389
+ "seat": 31,
390
+ "shelf": 24,
391
+ "ship": 103,
392
+ "shower": 145,
393
+ "sidewalk": 11,
394
+ "signboard": 43,
395
+ "sink": 47,
396
+ "sky": 2,
397
+ "skyscraper": 48,
398
+ "sofa": 23,
399
+ "stage": 101,
400
+ "stairs": 53,
401
+ "stairway": 59,
402
+ "step": 121,
403
+ "stool": 110,
404
+ "stove": 71,
405
+ "streetlight": 87,
406
+ "swimming pool": 109,
407
+ "swivel chair": 75,
408
+ "table": 15,
409
+ "tank": 122,
410
+ "television receiver": 89,
411
+ "tent": 114,
412
+ "toilet": 65,
413
+ "towel": 81,
414
+ "tower": 84,
415
+ "trade name": 123,
416
+ "traffic light": 136,
417
+ "tray": 137,
418
+ "tree": 4,
419
+ "truck": 83,
420
+ "van": 102,
421
+ "vase": 135,
422
+ "wall": 0,
423
+ "wardrobe": 35,
424
+ "washer": 107,
425
+ "water": 21,
426
+ "waterfall": 113,
427
+ "windowpane": 8
428
+ },
429
+ "loss_ignore_index": 255,
430
+ "model_type": "upernet",
431
+ "pool_scales": [
432
+ 1,
433
+ 2,
434
+ 3,
435
+ 6
436
+ ],
437
+ "torch_dtype": "float32",
438
+ "transformers_version": null,
439
+ "use_auxiliary_head": true
440
+ }