DazMashaly commited on
Commit
2c540a8
1 Parent(s): 44fd91a

Upload MaskFormerForInstanceSegmentation

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