Upload MaskFormerForInstanceSegmentation
Browse files- config.json +213 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/maskformer-swin-base-ade",
|
3 |
+
"architectures": [
|
4 |
+
"MaskFormerForInstanceSegmentation"
|
5 |
+
],
|
6 |
+
"backbone_config": {
|
7 |
+
"depths": [
|
8 |
+
2,
|
9 |
+
2,
|
10 |
+
18,
|
11 |
+
2
|
12 |
+
],
|
13 |
+
"drop_path_rate": 0.3,
|
14 |
+
"embed_dim": 128,
|
15 |
+
"hidden_size": 1024,
|
16 |
+
"image_size": 384,
|
17 |
+
"in_channels": 3,
|
18 |
+
"model_type": "swin",
|
19 |
+
"num_heads": [
|
20 |
+
4,
|
21 |
+
8,
|
22 |
+
16,
|
23 |
+
32
|
24 |
+
],
|
25 |
+
"out_features": [
|
26 |
+
"stage4"
|
27 |
+
],
|
28 |
+
"out_indices": [
|
29 |
+
4
|
30 |
+
],
|
31 |
+
"path_norm": true,
|
32 |
+
"pretrain_img_size": 384,
|
33 |
+
"window_size": 12
|
34 |
+
},
|
35 |
+
"ce_weight": 1.0,
|
36 |
+
"cross_entropy_weight": 1.0,
|
37 |
+
"decoder_config": {
|
38 |
+
"max_position_embeddings": 1024,
|
39 |
+
"model_type": "detr",
|
40 |
+
"scale_embedding": false
|
41 |
+
},
|
42 |
+
"dice_weight": 1.0,
|
43 |
+
"fpn_feature_size": 256,
|
44 |
+
"id2label": {
|
45 |
+
"0": "bg",
|
46 |
+
"1": "tumor"
|
47 |
+
},
|
48 |
+
"init_std": 0.02,
|
49 |
+
"init_xavier_std": 1.0,
|
50 |
+
"label2id": {
|
51 |
+
"animal": 126,
|
52 |
+
"arcade machine": 78,
|
53 |
+
"armchair": 30,
|
54 |
+
"awning, sunshade, sunblind": 86,
|
55 |
+
"bag": 115,
|
56 |
+
"ball": 119,
|
57 |
+
"bannister, banister, balustrade, balusters, handrail": 95,
|
58 |
+
"bar": 77,
|
59 |
+
"barrel, cask": 111,
|
60 |
+
"base, pedestal, stand": 40,
|
61 |
+
"basket, handbasket": 112,
|
62 |
+
"bed": 7,
|
63 |
+
"bench": 69,
|
64 |
+
"bicycle": 127,
|
65 |
+
"blanket, cover": 131,
|
66 |
+
"blind, screen": 63,
|
67 |
+
"boat": 76,
|
68 |
+
"book": 67,
|
69 |
+
"bookcase": 62,
|
70 |
+
"booth": 88,
|
71 |
+
"bottle": 98,
|
72 |
+
"box": 41,
|
73 |
+
"bridge, span": 61,
|
74 |
+
"buffet, counter, sideboard": 99,
|
75 |
+
"building": 1,
|
76 |
+
"bulletin board": 144,
|
77 |
+
"bus": 80,
|
78 |
+
"cabinet": 10,
|
79 |
+
"canopy": 106,
|
80 |
+
"car": 20,
|
81 |
+
"case, display case, showcase, vitrine": 55,
|
82 |
+
"ceiling": 5,
|
83 |
+
"chair": 19,
|
84 |
+
"chandelier": 85,
|
85 |
+
"chest of drawers, chest, bureau, dresser": 44,
|
86 |
+
"clock": 148,
|
87 |
+
"clothes": 92,
|
88 |
+
"coffee table": 64,
|
89 |
+
"column, pillar": 42,
|
90 |
+
"computer": 74,
|
91 |
+
"conveyer belt, conveyor belt, conveyer, conveyor, transporter": 105,
|
92 |
+
"counter": 45,
|
93 |
+
"countertop": 70,
|
94 |
+
"cradle": 117,
|
95 |
+
"crt screen": 141,
|
96 |
+
"curtain": 18,
|
97 |
+
"cushion": 39,
|
98 |
+
"desk": 33,
|
99 |
+
"dirt track": 91,
|
100 |
+
"dishwasher": 129,
|
101 |
+
"door": 14,
|
102 |
+
"earth, ground": 13,
|
103 |
+
"escalator, moving staircase, moving stairway": 96,
|
104 |
+
"falls": 113,
|
105 |
+
"fan": 139,
|
106 |
+
"fence": 32,
|
107 |
+
"field": 29,
|
108 |
+
"fireplace": 49,
|
109 |
+
"flag": 149,
|
110 |
+
"floor": 3,
|
111 |
+
"flower": 66,
|
112 |
+
"food, solid food": 120,
|
113 |
+
"fountain": 104,
|
114 |
+
"glass, drinking glass": 147,
|
115 |
+
"grandstand, covered stand": 51,
|
116 |
+
"grass": 9,
|
117 |
+
"hill": 68,
|
118 |
+
"hood, exhaust hood": 133,
|
119 |
+
"house": 25,
|
120 |
+
"hovel, hut, hutch, shack, shanty": 79,
|
121 |
+
"kitchen island": 73,
|
122 |
+
"lake": 128,
|
123 |
+
"lamp": 36,
|
124 |
+
"land, ground, soil": 94,
|
125 |
+
"light": 82,
|
126 |
+
"microwave": 124,
|
127 |
+
"minibike, motorbike": 116,
|
128 |
+
"mirror": 27,
|
129 |
+
"monitor": 143,
|
130 |
+
"mountain, mount": 16,
|
131 |
+
"ottoman, pouf, pouffe, puff, hassock": 97,
|
132 |
+
"oven": 118,
|
133 |
+
"painting, picture": 22,
|
134 |
+
"palm, palm tree": 72,
|
135 |
+
"path": 52,
|
136 |
+
"person": 12,
|
137 |
+
"pier": 140,
|
138 |
+
"pillow": 57,
|
139 |
+
"plane": 90,
|
140 |
+
"plant": 17,
|
141 |
+
"plate": 142,
|
142 |
+
"plaything, toy": 108,
|
143 |
+
"pole": 93,
|
144 |
+
"pool": 109,
|
145 |
+
"pool table, billiard table, snooker table": 56,
|
146 |
+
"poster, posting, placard, notice, bill, card": 100,
|
147 |
+
"pot": 125,
|
148 |
+
"radiator": 146,
|
149 |
+
"rail": 38,
|
150 |
+
"refrigerator, icebox": 50,
|
151 |
+
"river": 60,
|
152 |
+
"road, route": 6,
|
153 |
+
"rock, stone": 34,
|
154 |
+
"rug": 28,
|
155 |
+
"runway": 54,
|
156 |
+
"sand": 46,
|
157 |
+
"sconce": 134,
|
158 |
+
"screen": 130,
|
159 |
+
"screen door, screen": 58,
|
160 |
+
"sculpture": 132,
|
161 |
+
"sea": 26,
|
162 |
+
"seat": 31,
|
163 |
+
"shelf": 24,
|
164 |
+
"ship": 103,
|
165 |
+
"shower": 145,
|
166 |
+
"sidewalk, pavement": 11,
|
167 |
+
"signboard, sign": 43,
|
168 |
+
"sink": 47,
|
169 |
+
"sky": 2,
|
170 |
+
"skyscraper": 48,
|
171 |
+
"sofa": 23,
|
172 |
+
"stage": 101,
|
173 |
+
"stairs": 53,
|
174 |
+
"stairway, staircase": 59,
|
175 |
+
"step, stair": 121,
|
176 |
+
"stool": 110,
|
177 |
+
"stove": 71,
|
178 |
+
"street lamp": 87,
|
179 |
+
"swivel chair": 75,
|
180 |
+
"table": 15,
|
181 |
+
"tank, storage tank": 122,
|
182 |
+
"tent": 114,
|
183 |
+
"toilet, can, commode, crapper, pot, potty, stool, throne": 65,
|
184 |
+
"towel": 81,
|
185 |
+
"tower": 84,
|
186 |
+
"trade name": 123,
|
187 |
+
"traffic light": 136,
|
188 |
+
"trash can": 138,
|
189 |
+
"tray": 137,
|
190 |
+
"tree": 4,
|
191 |
+
"truck": 83,
|
192 |
+
"tub": 37,
|
193 |
+
"tv": 89,
|
194 |
+
"van": 102,
|
195 |
+
"vase": 135,
|
196 |
+
"wall": 0,
|
197 |
+
"wardrobe, closet, press": 35,
|
198 |
+
"washer, automatic washer, washing machine": 107,
|
199 |
+
"water": 21,
|
200 |
+
"window ": 8
|
201 |
+
},
|
202 |
+
"mask_feature_size": 256,
|
203 |
+
"mask_weight": 20.0,
|
204 |
+
"model_type": "maskformer",
|
205 |
+
"no_object_weight": 0.1,
|
206 |
+
"num_attention_heads": 8,
|
207 |
+
"num_hidden_layers": 6,
|
208 |
+
"num_queries": 100,
|
209 |
+
"output_auxiliary_logits": null,
|
210 |
+
"torch_dtype": "float32",
|
211 |
+
"transformers_version": "4.35.2",
|
212 |
+
"use_auxiliary_loss": false
|
213 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b38896d9a3354befca1824bfa8cab06363f770e8cfeae0273ccead37d25c07b6
|
3 |
+
size 411253576
|