hf-transformers-bot commited on
Commit
f831132
1 Parent(s): c170b54

Upload tiny models for DetaForObjectDetection

Browse files
Files changed (3) hide show
  1. config.json +323 -0
  2. preprocessor_config.json +25 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,323 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "relu",
5
+ "architectures": [
6
+ "DetaForObjectDetection"
7
+ ],
8
+ "assign_first_stage": true,
9
+ "attention_dropout": 0.1,
10
+ "auxiliary_loss": false,
11
+ "backbone_config": {
12
+ "_name_or_path": "",
13
+ "add_cross_attention": false,
14
+ "architectures": null,
15
+ "bad_words_ids": null,
16
+ "begin_suppress_tokens": null,
17
+ "bos_token_id": null,
18
+ "chunk_size_feed_forward": 0,
19
+ "cross_attention_hidden_size": null,
20
+ "decoder_start_token_id": null,
21
+ "depths": [
22
+ 3,
23
+ 4,
24
+ 6,
25
+ 3
26
+ ],
27
+ "diversity_penalty": 0.0,
28
+ "do_sample": false,
29
+ "downsample_in_first_stage": false,
30
+ "early_stopping": false,
31
+ "embedding_size": 64,
32
+ "encoder_no_repeat_ngram_size": 0,
33
+ "eos_token_id": null,
34
+ "exponential_decay_length_penalty": null,
35
+ "finetuning_task": null,
36
+ "forced_bos_token_id": null,
37
+ "forced_eos_token_id": null,
38
+ "hidden_act": "relu",
39
+ "hidden_sizes": [
40
+ 256,
41
+ 512,
42
+ 1024,
43
+ 2048
44
+ ],
45
+ "id2label": {
46
+ "0": "LABEL_0",
47
+ "1": "LABEL_1"
48
+ },
49
+ "is_decoder": false,
50
+ "is_encoder_decoder": false,
51
+ "label2id": {
52
+ "LABEL_0": 0,
53
+ "LABEL_1": 1
54
+ },
55
+ "layer_type": "bottleneck",
56
+ "length_penalty": 1.0,
57
+ "max_length": 20,
58
+ "min_length": 0,
59
+ "model_type": "resnet",
60
+ "no_repeat_ngram_size": 0,
61
+ "num_beam_groups": 1,
62
+ "num_beams": 1,
63
+ "num_channels": 3,
64
+ "num_return_sequences": 1,
65
+ "out_features": [
66
+ "stage2",
67
+ "stage3",
68
+ "stage4"
69
+ ],
70
+ "output_attentions": false,
71
+ "output_hidden_states": false,
72
+ "output_scores": false,
73
+ "pad_token_id": null,
74
+ "prefix": null,
75
+ "problem_type": null,
76
+ "pruned_heads": {},
77
+ "remove_invalid_values": false,
78
+ "repetition_penalty": 1.0,
79
+ "return_dict": true,
80
+ "return_dict_in_generate": false,
81
+ "sep_token_id": null,
82
+ "stage_names": [
83
+ "stem",
84
+ "stage1",
85
+ "stage2",
86
+ "stage3",
87
+ "stage4"
88
+ ],
89
+ "suppress_tokens": null,
90
+ "task_specific_params": null,
91
+ "temperature": 1.0,
92
+ "tf_legacy_loss": false,
93
+ "tie_encoder_decoder": false,
94
+ "tie_word_embeddings": true,
95
+ "tokenizer_class": null,
96
+ "top_k": 50,
97
+ "top_p": 1.0,
98
+ "torch_dtype": null,
99
+ "torchscript": false,
100
+ "transformers_version": "4.28.0.dev0",
101
+ "typical_p": 1.0,
102
+ "use_bfloat16": false
103
+ },
104
+ "bbox_cost": 5,
105
+ "bbox_loss_coefficient": 5,
106
+ "class_cost": 1,
107
+ "d_model": 256,
108
+ "decoder_attention_heads": 8,
109
+ "decoder_ffn_dim": 4,
110
+ "decoder_layers": 2,
111
+ "decoder_n_points": 6,
112
+ "dice_loss_coefficient": 1,
113
+ "dropout": 0.1,
114
+ "encoder_attention_heads": 8,
115
+ "encoder_ffn_dim": 4,
116
+ "encoder_layerdrop": 0.0,
117
+ "encoder_layers": 2,
118
+ "encoder_n_points": 2,
119
+ "eos_coefficient": 0.1,
120
+ "focal_alpha": 0.25,
121
+ "giou_cost": 2,
122
+ "giou_loss_coefficient": 2,
123
+ "id2label": {
124
+ "0": "LABEL_0",
125
+ "1": "LABEL_1",
126
+ "2": "LABEL_2",
127
+ "3": "LABEL_3",
128
+ "4": "LABEL_4",
129
+ "5": "LABEL_5",
130
+ "6": "LABEL_6",
131
+ "7": "LABEL_7",
132
+ "8": "LABEL_8",
133
+ "9": "LABEL_9",
134
+ "10": "LABEL_10",
135
+ "11": "LABEL_11",
136
+ "12": "LABEL_12",
137
+ "13": "LABEL_13",
138
+ "14": "LABEL_14",
139
+ "15": "LABEL_15",
140
+ "16": "LABEL_16",
141
+ "17": "LABEL_17",
142
+ "18": "LABEL_18",
143
+ "19": "LABEL_19",
144
+ "20": "LABEL_20",
145
+ "21": "LABEL_21",
146
+ "22": "LABEL_22",
147
+ "23": "LABEL_23",
148
+ "24": "LABEL_24",
149
+ "25": "LABEL_25",
150
+ "26": "LABEL_26",
151
+ "27": "LABEL_27",
152
+ "28": "LABEL_28",
153
+ "29": "LABEL_29",
154
+ "30": "LABEL_30",
155
+ "31": "LABEL_31",
156
+ "32": "LABEL_32",
157
+ "33": "LABEL_33",
158
+ "34": "LABEL_34",
159
+ "35": "LABEL_35",
160
+ "36": "LABEL_36",
161
+ "37": "LABEL_37",
162
+ "38": "LABEL_38",
163
+ "39": "LABEL_39",
164
+ "40": "LABEL_40",
165
+ "41": "LABEL_41",
166
+ "42": "LABEL_42",
167
+ "43": "LABEL_43",
168
+ "44": "LABEL_44",
169
+ "45": "LABEL_45",
170
+ "46": "LABEL_46",
171
+ "47": "LABEL_47",
172
+ "48": "LABEL_48",
173
+ "49": "LABEL_49",
174
+ "50": "LABEL_50",
175
+ "51": "LABEL_51",
176
+ "52": "LABEL_52",
177
+ "53": "LABEL_53",
178
+ "54": "LABEL_54",
179
+ "55": "LABEL_55",
180
+ "56": "LABEL_56",
181
+ "57": "LABEL_57",
182
+ "58": "LABEL_58",
183
+ "59": "LABEL_59",
184
+ "60": "LABEL_60",
185
+ "61": "LABEL_61",
186
+ "62": "LABEL_62",
187
+ "63": "LABEL_63",
188
+ "64": "LABEL_64",
189
+ "65": "LABEL_65",
190
+ "66": "LABEL_66",
191
+ "67": "LABEL_67",
192
+ "68": "LABEL_68",
193
+ "69": "LABEL_69",
194
+ "70": "LABEL_70",
195
+ "71": "LABEL_71",
196
+ "72": "LABEL_72",
197
+ "73": "LABEL_73",
198
+ "74": "LABEL_74",
199
+ "75": "LABEL_75",
200
+ "76": "LABEL_76",
201
+ "77": "LABEL_77",
202
+ "78": "LABEL_78",
203
+ "79": "LABEL_79",
204
+ "80": "LABEL_80",
205
+ "81": "LABEL_81",
206
+ "82": "LABEL_82",
207
+ "83": "LABEL_83",
208
+ "84": "LABEL_84",
209
+ "85": "LABEL_85",
210
+ "86": "LABEL_86",
211
+ "87": "LABEL_87",
212
+ "88": "LABEL_88",
213
+ "89": "LABEL_89",
214
+ "90": "LABEL_90"
215
+ },
216
+ "init_std": 0.02,
217
+ "init_xavier_std": 1.0,
218
+ "is_encoder_decoder": true,
219
+ "label2id": {
220
+ "LABEL_0": 0,
221
+ "LABEL_1": 1,
222
+ "LABEL_10": 10,
223
+ "LABEL_11": 11,
224
+ "LABEL_12": 12,
225
+ "LABEL_13": 13,
226
+ "LABEL_14": 14,
227
+ "LABEL_15": 15,
228
+ "LABEL_16": 16,
229
+ "LABEL_17": 17,
230
+ "LABEL_18": 18,
231
+ "LABEL_19": 19,
232
+ "LABEL_2": 2,
233
+ "LABEL_20": 20,
234
+ "LABEL_21": 21,
235
+ "LABEL_22": 22,
236
+ "LABEL_23": 23,
237
+ "LABEL_24": 24,
238
+ "LABEL_25": 25,
239
+ "LABEL_26": 26,
240
+ "LABEL_27": 27,
241
+ "LABEL_28": 28,
242
+ "LABEL_29": 29,
243
+ "LABEL_3": 3,
244
+ "LABEL_30": 30,
245
+ "LABEL_31": 31,
246
+ "LABEL_32": 32,
247
+ "LABEL_33": 33,
248
+ "LABEL_34": 34,
249
+ "LABEL_35": 35,
250
+ "LABEL_36": 36,
251
+ "LABEL_37": 37,
252
+ "LABEL_38": 38,
253
+ "LABEL_39": 39,
254
+ "LABEL_4": 4,
255
+ "LABEL_40": 40,
256
+ "LABEL_41": 41,
257
+ "LABEL_42": 42,
258
+ "LABEL_43": 43,
259
+ "LABEL_44": 44,
260
+ "LABEL_45": 45,
261
+ "LABEL_46": 46,
262
+ "LABEL_47": 47,
263
+ "LABEL_48": 48,
264
+ "LABEL_49": 49,
265
+ "LABEL_5": 5,
266
+ "LABEL_50": 50,
267
+ "LABEL_51": 51,
268
+ "LABEL_52": 52,
269
+ "LABEL_53": 53,
270
+ "LABEL_54": 54,
271
+ "LABEL_55": 55,
272
+ "LABEL_56": 56,
273
+ "LABEL_57": 57,
274
+ "LABEL_58": 58,
275
+ "LABEL_59": 59,
276
+ "LABEL_6": 6,
277
+ "LABEL_60": 60,
278
+ "LABEL_61": 61,
279
+ "LABEL_62": 62,
280
+ "LABEL_63": 63,
281
+ "LABEL_64": 64,
282
+ "LABEL_65": 65,
283
+ "LABEL_66": 66,
284
+ "LABEL_67": 67,
285
+ "LABEL_68": 68,
286
+ "LABEL_69": 69,
287
+ "LABEL_7": 7,
288
+ "LABEL_70": 70,
289
+ "LABEL_71": 71,
290
+ "LABEL_72": 72,
291
+ "LABEL_73": 73,
292
+ "LABEL_74": 74,
293
+ "LABEL_75": 75,
294
+ "LABEL_76": 76,
295
+ "LABEL_77": 77,
296
+ "LABEL_78": 78,
297
+ "LABEL_79": 79,
298
+ "LABEL_8": 8,
299
+ "LABEL_80": 80,
300
+ "LABEL_81": 81,
301
+ "LABEL_82": 82,
302
+ "LABEL_83": 83,
303
+ "LABEL_84": 84,
304
+ "LABEL_85": 85,
305
+ "LABEL_86": 86,
306
+ "LABEL_87": 87,
307
+ "LABEL_88": 88,
308
+ "LABEL_89": 89,
309
+ "LABEL_9": 9,
310
+ "LABEL_90": 90
311
+ },
312
+ "mask_loss_coefficient": 1,
313
+ "max_position_embeddings": 2048,
314
+ "model_type": "deta",
315
+ "num_feature_levels": 4,
316
+ "num_queries": 12,
317
+ "position_embedding_type": "sine",
318
+ "torch_dtype": "float32",
319
+ "transformers_version": null,
320
+ "two_stage": false,
321
+ "two_stage_num_proposals": 300,
322
+ "with_box_refine": true
323
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_pad": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "feature_extractor_type": "DeformableDetrFeatureExtractor",
7
+ "format": "coco_detection",
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_processor_type": "DetaImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "max_size": 1333,
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "shortest_edge": 800
24
+ }
25
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73cec1a535c9d41126c253f27d64851f94fce86ab848ecd2c30d8d42cadaff6a
3
+ size 124061841