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
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_commit_hash": null,
|
3 |
+
"architectures": [
|
4 |
+
"MaskFormerModel"
|
5 |
+
],
|
6 |
+
"backbone_config": {
|
7 |
+
"_name_or_path": "",
|
8 |
+
"add_cross_attention": false,
|
9 |
+
"architectures": null,
|
10 |
+
"attention_probs_dropout_prob": 0.0,
|
11 |
+
"bad_words_ids": null,
|
12 |
+
"begin_suppress_tokens": null,
|
13 |
+
"bos_token_id": null,
|
14 |
+
"chunk_size_feed_forward": 0,
|
15 |
+
"cross_attention_hidden_size": null,
|
16 |
+
"decoder_start_token_id": null,
|
17 |
+
"depths": [
|
18 |
+
1,
|
19 |
+
1,
|
20 |
+
1,
|
21 |
+
1
|
22 |
+
],
|
23 |
+
"diversity_penalty": 0.0,
|
24 |
+
"do_sample": false,
|
25 |
+
"drop_path_rate": 0.1,
|
26 |
+
"early_stopping": false,
|
27 |
+
"embed_dim": 96,
|
28 |
+
"encoder_no_repeat_ngram_size": 0,
|
29 |
+
"encoder_stride": 32,
|
30 |
+
"eos_token_id": null,
|
31 |
+
"exponential_decay_length_penalty": null,
|
32 |
+
"finetuning_task": null,
|
33 |
+
"forced_bos_token_id": null,
|
34 |
+
"forced_eos_token_id": null,
|
35 |
+
"hidden_act": "gelu",
|
36 |
+
"hidden_dropout_prob": 0.0,
|
37 |
+
"hidden_size": 768,
|
38 |
+
"id2label": {
|
39 |
+
"0": "LABEL_0",
|
40 |
+
"1": "LABEL_1"
|
41 |
+
},
|
42 |
+
"image_size": 224,
|
43 |
+
"initializer_range": 0.02,
|
44 |
+
"is_decoder": false,
|
45 |
+
"is_encoder_decoder": false,
|
46 |
+
"label2id": {
|
47 |
+
"LABEL_0": 0,
|
48 |
+
"LABEL_1": 1
|
49 |
+
},
|
50 |
+
"layer_norm_eps": 1e-05,
|
51 |
+
"length_penalty": 1.0,
|
52 |
+
"max_length": 20,
|
53 |
+
"min_length": 0,
|
54 |
+
"mlp_ratio": 4.0,
|
55 |
+
"model_type": "swin",
|
56 |
+
"no_repeat_ngram_size": 0,
|
57 |
+
"num_beam_groups": 1,
|
58 |
+
"num_beams": 1,
|
59 |
+
"num_channels": 3,
|
60 |
+
"num_heads": [
|
61 |
+
3,
|
62 |
+
6,
|
63 |
+
12,
|
64 |
+
24
|
65 |
+
],
|
66 |
+
"num_layers": 4,
|
67 |
+
"num_return_sequences": 1,
|
68 |
+
"out_features": null,
|
69 |
+
"output_attentions": false,
|
70 |
+
"output_hidden_states": false,
|
71 |
+
"output_scores": false,
|
72 |
+
"pad_token_id": null,
|
73 |
+
"patch_size": 4,
|
74 |
+
"prefix": null,
|
75 |
+
"problem_type": null,
|
76 |
+
"pruned_heads": {},
|
77 |
+
"qkv_bias": true,
|
78 |
+
"remove_invalid_values": false,
|
79 |
+
"repetition_penalty": 1.0,
|
80 |
+
"return_dict": true,
|
81 |
+
"return_dict_in_generate": false,
|
82 |
+
"sep_token_id": null,
|
83 |
+
"stage_names": [
|
84 |
+
"stem",
|
85 |
+
"stage1",
|
86 |
+
"stage2",
|
87 |
+
"stage3",
|
88 |
+
"stage4"
|
89 |
+
],
|
90 |
+
"suppress_tokens": null,
|
91 |
+
"task_specific_params": null,
|
92 |
+
"temperature": 1.0,
|
93 |
+
"tf_legacy_loss": false,
|
94 |
+
"tie_encoder_decoder": false,
|
95 |
+
"tie_word_embeddings": true,
|
96 |
+
"tokenizer_class": null,
|
97 |
+
"top_k": 50,
|
98 |
+
"top_p": 1.0,
|
99 |
+
"torch_dtype": null,
|
100 |
+
"torchscript": false,
|
101 |
+
"transformers_version": "4.28.0.dev0",
|
102 |
+
"typical_p": 1.0,
|
103 |
+
"use_absolute_embeddings": false,
|
104 |
+
"use_bfloat16": false,
|
105 |
+
"window_size": 7
|
106 |
+
},
|
107 |
+
"cross_entropy_weight": 1.0,
|
108 |
+
"decoder_config": {
|
109 |
+
"_commit_hash": null,
|
110 |
+
"_name_or_path": "",
|
111 |
+
"activation_dropout": 0.0,
|
112 |
+
"activation_function": "relu",
|
113 |
+
"add_cross_attention": false,
|
114 |
+
"architectures": null,
|
115 |
+
"attention_dropout": 0.0,
|
116 |
+
"auxiliary_loss": false,
|
117 |
+
"backbone": "resnet50",
|
118 |
+
"backbone_config": null,
|
119 |
+
"bad_words_ids": null,
|
120 |
+
"bbox_cost": 5,
|
121 |
+
"bbox_loss_coefficient": 5,
|
122 |
+
"begin_suppress_tokens": null,
|
123 |
+
"bos_token_id": null,
|
124 |
+
"chunk_size_feed_forward": 0,
|
125 |
+
"class_cost": 1,
|
126 |
+
"cross_attention_hidden_size": null,
|
127 |
+
"d_model": 32,
|
128 |
+
"decoder_attention_heads": 2,
|
129 |
+
"decoder_ffn_dim": 128,
|
130 |
+
"decoder_layerdrop": 0.0,
|
131 |
+
"decoder_layers": 6,
|
132 |
+
"decoder_start_token_id": null,
|
133 |
+
"dice_loss_coefficient": 1,
|
134 |
+
"dilation": false,
|
135 |
+
"diversity_penalty": 0.0,
|
136 |
+
"do_sample": false,
|
137 |
+
"dropout": 0.1,
|
138 |
+
"early_stopping": false,
|
139 |
+
"encoder_attention_heads": 8,
|
140 |
+
"encoder_ffn_dim": 2048,
|
141 |
+
"encoder_layerdrop": 0.0,
|
142 |
+
"encoder_layers": 6,
|
143 |
+
"encoder_no_repeat_ngram_size": 0,
|
144 |
+
"eos_coefficient": 0.1,
|
145 |
+
"eos_token_id": null,
|
146 |
+
"exponential_decay_length_penalty": null,
|
147 |
+
"finetuning_task": null,
|
148 |
+
"forced_bos_token_id": null,
|
149 |
+
"forced_eos_token_id": null,
|
150 |
+
"giou_cost": 2,
|
151 |
+
"giou_loss_coefficient": 2,
|
152 |
+
"id2label": {
|
153 |
+
"0": "LABEL_0",
|
154 |
+
"1": "LABEL_1"
|
155 |
+
},
|
156 |
+
"init_std": 0.02,
|
157 |
+
"init_xavier_std": 1.0,
|
158 |
+
"is_decoder": false,
|
159 |
+
"is_encoder_decoder": true,
|
160 |
+
"label2id": {
|
161 |
+
"LABEL_0": 0,
|
162 |
+
"LABEL_1": 1
|
163 |
+
},
|
164 |
+
"length_penalty": 1.0,
|
165 |
+
"mask_loss_coefficient": 1,
|
166 |
+
"max_length": 20,
|
167 |
+
"min_length": 0,
|
168 |
+
"model_type": "detr",
|
169 |
+
"no_repeat_ngram_size": 0,
|
170 |
+
"num_beam_groups": 1,
|
171 |
+
"num_beams": 1,
|
172 |
+
"num_channels": 3,
|
173 |
+
"num_hidden_layers": 6,
|
174 |
+
"num_queries": 10,
|
175 |
+
"num_return_sequences": 1,
|
176 |
+
"output_attentions": false,
|
177 |
+
"output_hidden_states": false,
|
178 |
+
"output_scores": false,
|
179 |
+
"pad_token_id": null,
|
180 |
+
"position_embedding_type": "sine",
|
181 |
+
"prefix": null,
|
182 |
+
"problem_type": null,
|
183 |
+
"pruned_heads": {},
|
184 |
+
"remove_invalid_values": false,
|
185 |
+
"repetition_penalty": 1.0,
|
186 |
+
"return_dict": true,
|
187 |
+
"return_dict_in_generate": false,
|
188 |
+
"sep_token_id": null,
|
189 |
+
"suppress_tokens": null,
|
190 |
+
"task_specific_params": null,
|
191 |
+
"temperature": 1.0,
|
192 |
+
"tf_legacy_loss": false,
|
193 |
+
"tie_encoder_decoder": false,
|
194 |
+
"tie_word_embeddings": true,
|
195 |
+
"tokenizer_class": null,
|
196 |
+
"top_k": 50,
|
197 |
+
"top_p": 1.0,
|
198 |
+
"torch_dtype": null,
|
199 |
+
"torchscript": false,
|
200 |
+
"transformers_version": null,
|
201 |
+
"typical_p": 1.0,
|
202 |
+
"use_bfloat16": false,
|
203 |
+
"use_pretrained_backbone": true,
|
204 |
+
"use_timm_backbone": true
|
205 |
+
},
|
206 |
+
"dice_weight": 1.0,
|
207 |
+
"fpn_feature_size": 32,
|
208 |
+
"id2label": {
|
209 |
+
"0": "LABEL_0",
|
210 |
+
"1": "LABEL_1",
|
211 |
+
"2": "LABEL_2",
|
212 |
+
"3": "LABEL_3"
|
213 |
+
},
|
214 |
+
"init_std": 0.02,
|
215 |
+
"init_xavier_std": 1.0,
|
216 |
+
"label2id": {
|
217 |
+
"LABEL_0": 0,
|
218 |
+
"LABEL_1": 1,
|
219 |
+
"LABEL_2": 2,
|
220 |
+
"LABEL_3": 3
|
221 |
+
},
|
222 |
+
"mask_feature_size": 32,
|
223 |
+
"mask_weight": 20.0,
|
224 |
+
"model_type": "maskformer",
|
225 |
+
"no_object_weight": 0.1,
|
226 |
+
"num_attention_heads": 8,
|
227 |
+
"num_channels": 3,
|
228 |
+
"num_hidden_layers": 6,
|
229 |
+
"output_auxiliary_logits": null,
|
230 |
+
"torch_dtype": "float32",
|
231 |
+
"transformers_version": null,
|
232 |
+
"use_auxiliary_loss": false
|
233 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_max_size": 2560,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_reduce_labels": false,
|
5 |
+
"do_rescale": true,
|
6 |
+
"do_resize": true,
|
7 |
+
"feature_extractor_type": "MaskFormerFeatureExtractor",
|
8 |
+
"ignore_index": 255,
|
9 |
+
"image_mean": [
|
10 |
+
0.48500001430511475,
|
11 |
+
0.4560000002384186,
|
12 |
+
0.4059999883174896
|
13 |
+
],
|
14 |
+
"image_processor_type": "MaskFormerImageProcessor",
|
15 |
+
"image_std": [
|
16 |
+
0.2290000021457672,
|
17 |
+
0.2239999920129776,
|
18 |
+
0.22499999403953552
|
19 |
+
],
|
20 |
+
"resample": 2,
|
21 |
+
"rescale_factor": 0.00392156862745098,
|
22 |
+
"size": {
|
23 |
+
"longest_edge": 2560,
|
24 |
+
"shortest_edge": 640
|
25 |
+
},
|
26 |
+
"size_divisor": 32
|
27 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a27b94c9f02c21c292377ab2c58a209d987bf31df3dcb77271c8788d1f76e8a7
|
3 |
+
size 45758953
|