ydshieh HF Staff commited on
Commit
f844aaa
·
1 Parent(s): 09b5b42

Upload tiny models for MaskFormerForInstanceSegmentation

Browse files
Files changed (3) hide show
  1. config.json +225 -0
  2. preprocessor_config.json +21 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "architectures": [
4
+ "MaskFormerForInstanceSegmentation"
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
+ "output_attentions": false,
69
+ "output_hidden_states": false,
70
+ "output_scores": false,
71
+ "pad_token_id": null,
72
+ "patch_size": 4,
73
+ "path_norm": true,
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
+ "suppress_tokens": null,
84
+ "task_specific_params": null,
85
+ "temperature": 1.0,
86
+ "tf_legacy_loss": false,
87
+ "tie_encoder_decoder": false,
88
+ "tie_word_embeddings": true,
89
+ "tokenizer_class": null,
90
+ "top_k": 50,
91
+ "top_p": 1.0,
92
+ "torch_dtype": null,
93
+ "torchscript": false,
94
+ "transformers_version": "4.25.0.dev0",
95
+ "typical_p": 1.0,
96
+ "use_absolute_embeddings": false,
97
+ "use_bfloat16": false,
98
+ "window_size": 7
99
+ },
100
+ "cross_entropy_weight": 1.0,
101
+ "decoder_config": {
102
+ "_name_or_path": "",
103
+ "activation_dropout": 0.0,
104
+ "activation_function": "relu",
105
+ "add_cross_attention": false,
106
+ "architectures": null,
107
+ "attention_dropout": 0.0,
108
+ "auxiliary_loss": false,
109
+ "backbone": "resnet50",
110
+ "bad_words_ids": null,
111
+ "bbox_cost": 5,
112
+ "bbox_loss_coefficient": 5,
113
+ "begin_suppress_tokens": null,
114
+ "bos_token_id": null,
115
+ "chunk_size_feed_forward": 0,
116
+ "class_cost": 1,
117
+ "cross_attention_hidden_size": null,
118
+ "d_model": 32,
119
+ "decoder_attention_heads": 2,
120
+ "decoder_ffn_dim": 128,
121
+ "decoder_layerdrop": 0.0,
122
+ "decoder_layers": 6,
123
+ "decoder_start_token_id": null,
124
+ "dice_loss_coefficient": 1,
125
+ "dilation": false,
126
+ "diversity_penalty": 0.0,
127
+ "do_sample": false,
128
+ "dropout": 0.1,
129
+ "early_stopping": false,
130
+ "encoder_attention_heads": 8,
131
+ "encoder_ffn_dim": 2048,
132
+ "encoder_layerdrop": 0.0,
133
+ "encoder_layers": 6,
134
+ "encoder_no_repeat_ngram_size": 0,
135
+ "eos_coefficient": 0.1,
136
+ "eos_token_id": null,
137
+ "exponential_decay_length_penalty": null,
138
+ "finetuning_task": null,
139
+ "forced_bos_token_id": null,
140
+ "forced_eos_token_id": null,
141
+ "giou_cost": 2,
142
+ "giou_loss_coefficient": 2,
143
+ "id2label": {
144
+ "0": "LABEL_0",
145
+ "1": "LABEL_1"
146
+ },
147
+ "init_std": 0.02,
148
+ "init_xavier_std": 1.0,
149
+ "is_decoder": false,
150
+ "is_encoder_decoder": true,
151
+ "label2id": {
152
+ "LABEL_0": 0,
153
+ "LABEL_1": 1
154
+ },
155
+ "length_penalty": 1.0,
156
+ "mask_loss_coefficient": 1,
157
+ "max_length": 20,
158
+ "max_position_embeddings": 1024,
159
+ "min_length": 0,
160
+ "model_type": "detr",
161
+ "no_repeat_ngram_size": 0,
162
+ "num_beam_groups": 1,
163
+ "num_beams": 1,
164
+ "num_channels": 3,
165
+ "num_hidden_layers": 6,
166
+ "num_queries": 10,
167
+ "num_return_sequences": 1,
168
+ "output_attentions": false,
169
+ "output_hidden_states": false,
170
+ "output_scores": false,
171
+ "pad_token_id": null,
172
+ "position_embedding_type": "sine",
173
+ "prefix": null,
174
+ "problem_type": null,
175
+ "pruned_heads": {},
176
+ "remove_invalid_values": false,
177
+ "repetition_penalty": 1.0,
178
+ "return_dict": true,
179
+ "return_dict_in_generate": false,
180
+ "scale_embedding": false,
181
+ "sep_token_id": null,
182
+ "suppress_tokens": null,
183
+ "task_specific_params": null,
184
+ "temperature": 1.0,
185
+ "tf_legacy_loss": false,
186
+ "tie_encoder_decoder": false,
187
+ "tie_word_embeddings": true,
188
+ "tokenizer_class": null,
189
+ "top_k": 50,
190
+ "top_p": 1.0,
191
+ "torch_dtype": null,
192
+ "torchscript": false,
193
+ "transformers_version": "4.25.0.dev0",
194
+ "typical_p": 1.0,
195
+ "use_bfloat16": false,
196
+ "use_pretrained_backbone": true
197
+ },
198
+ "dice_weight": 1.0,
199
+ "fpn_feature_size": 32,
200
+ "id2label": {
201
+ "0": "LABEL_0",
202
+ "1": "LABEL_1",
203
+ "2": "LABEL_2",
204
+ "3": "LABEL_3"
205
+ },
206
+ "init_std": 0.02,
207
+ "init_xavier_std": 1.0,
208
+ "label2id": {
209
+ "LABEL_0": 0,
210
+ "LABEL_1": 1,
211
+ "LABEL_2": 2,
212
+ "LABEL_3": 3
213
+ },
214
+ "mask_feature_size": 32,
215
+ "mask_weight": 20.0,
216
+ "model_type": "maskformer",
217
+ "no_object_weight": 0.1,
218
+ "num_attention_heads": 8,
219
+ "num_channels": 3,
220
+ "num_hidden_layers": 6,
221
+ "output_auxiliary_logits": null,
222
+ "torch_dtype": "float32",
223
+ "transformers_version": null,
224
+ "use_auxiliary_loss": false
225
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_resize": true,
4
+ "feature_extractor_type": "MaskFormerFeatureExtractor",
5
+ "ignore_index": 255,
6
+ "image_mean": [
7
+ 0.48500001430511475,
8
+ 0.4560000002384186,
9
+ 0.4059999883174896
10
+ ],
11
+ "image_std": [
12
+ 0.2290000021457672,
13
+ 0.2239999920129776,
14
+ 0.22499999403953552
15
+ ],
16
+ "max_size": 2560,
17
+ "reduce_labels": false,
18
+ "resample": 2,
19
+ "size": 640,
20
+ "size_divisibility": 32
21
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c015ff1221183c05e3fe8e613b5145fa44531c35300ab3f41bf7328e9162d1b
3
+ size 45776653