nielsr HF staff commited on
Commit
4c8eb06
1 Parent(s): 552188b

Upload DetaForObjectDetection

Browse files
Files changed (2) hide show
  1. config.json +314 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.0,
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.27.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": 2048,
110
+ "decoder_layerdrop": 0.0,
111
+ "decoder_layers": 6,
112
+ "decoder_n_points": 4,
113
+ "dice_loss_coefficient": 1,
114
+ "dropout": 0.1,
115
+ "encoder_attention_heads": 8,
116
+ "encoder_ffn_dim": 2048,
117
+ "encoder_layerdrop": 0.0,
118
+ "encoder_layers": 6,
119
+ "encoder_n_points": 4,
120
+ "eos_coefficient": 0.1,
121
+ "focal_alpha": 0.25,
122
+ "giou_cost": 2,
123
+ "giou_loss_coefficient": 2,
124
+ "id2label": {
125
+ "0": "N/A",
126
+ "1": "person",
127
+ "2": "bicycle",
128
+ "3": "car",
129
+ "4": "motorcycle",
130
+ "5": "airplane",
131
+ "6": "bus",
132
+ "7": "train",
133
+ "8": "truck",
134
+ "9": "boat",
135
+ "10": "traffic light",
136
+ "11": "fire hydrant",
137
+ "12": "N/A",
138
+ "13": "stop sign",
139
+ "14": "parking meter",
140
+ "15": "bench",
141
+ "16": "bird",
142
+ "17": "cat",
143
+ "18": "dog",
144
+ "19": "horse",
145
+ "20": "sheep",
146
+ "21": "cow",
147
+ "22": "elephant",
148
+ "23": "bear",
149
+ "24": "zebra",
150
+ "25": "giraffe",
151
+ "26": "N/A",
152
+ "27": "backpack",
153
+ "28": "umbrella",
154
+ "29": "N/A",
155
+ "30": "N/A",
156
+ "31": "handbag",
157
+ "32": "tie",
158
+ "33": "suitcase",
159
+ "34": "frisbee",
160
+ "35": "skis",
161
+ "36": "snowboard",
162
+ "37": "sports ball",
163
+ "38": "kite",
164
+ "39": "baseball bat",
165
+ "40": "baseball glove",
166
+ "41": "skateboard",
167
+ "42": "surfboard",
168
+ "43": "tennis racket",
169
+ "44": "bottle",
170
+ "45": "N/A",
171
+ "46": "wine glass",
172
+ "47": "cup",
173
+ "48": "fork",
174
+ "49": "knife",
175
+ "50": "spoon",
176
+ "51": "bowl",
177
+ "52": "banana",
178
+ "53": "apple",
179
+ "54": "sandwich",
180
+ "55": "orange",
181
+ "56": "broccoli",
182
+ "57": "carrot",
183
+ "58": "hot dog",
184
+ "59": "pizza",
185
+ "60": "donut",
186
+ "61": "cake",
187
+ "62": "chair",
188
+ "63": "couch",
189
+ "64": "potted plant",
190
+ "65": "bed",
191
+ "66": "N/A",
192
+ "67": "dining table",
193
+ "68": "N/A",
194
+ "69": "N/A",
195
+ "70": "toilet",
196
+ "71": "N/A",
197
+ "72": "tv",
198
+ "73": "laptop",
199
+ "74": "mouse",
200
+ "75": "remote",
201
+ "76": "keyboard",
202
+ "77": "cell phone",
203
+ "78": "microwave",
204
+ "79": "oven",
205
+ "80": "toaster",
206
+ "81": "sink",
207
+ "82": "refrigerator",
208
+ "83": "N/A",
209
+ "84": "book",
210
+ "85": "clock",
211
+ "86": "vase",
212
+ "87": "scissors",
213
+ "88": "teddy bear",
214
+ "89": "hair drier",
215
+ "90": "toothbrush"
216
+ },
217
+ "init_std": 0.02,
218
+ "init_xavier_std": 1.0,
219
+ "is_encoder_decoder": true,
220
+ "label2id": {
221
+ "N/A": 83,
222
+ "airplane": 5,
223
+ "apple": 53,
224
+ "backpack": 27,
225
+ "banana": 52,
226
+ "baseball bat": 39,
227
+ "baseball glove": 40,
228
+ "bear": 23,
229
+ "bed": 65,
230
+ "bench": 15,
231
+ "bicycle": 2,
232
+ "bird": 16,
233
+ "boat": 9,
234
+ "book": 84,
235
+ "bottle": 44,
236
+ "bowl": 51,
237
+ "broccoli": 56,
238
+ "bus": 6,
239
+ "cake": 61,
240
+ "car": 3,
241
+ "carrot": 57,
242
+ "cat": 17,
243
+ "cell phone": 77,
244
+ "chair": 62,
245
+ "clock": 85,
246
+ "couch": 63,
247
+ "cow": 21,
248
+ "cup": 47,
249
+ "dining table": 67,
250
+ "dog": 18,
251
+ "donut": 60,
252
+ "elephant": 22,
253
+ "fire hydrant": 11,
254
+ "fork": 48,
255
+ "frisbee": 34,
256
+ "giraffe": 25,
257
+ "hair drier": 89,
258
+ "handbag": 31,
259
+ "horse": 19,
260
+ "hot dog": 58,
261
+ "keyboard": 76,
262
+ "kite": 38,
263
+ "knife": 49,
264
+ "laptop": 73,
265
+ "microwave": 78,
266
+ "motorcycle": 4,
267
+ "mouse": 74,
268
+ "orange": 55,
269
+ "oven": 79,
270
+ "parking meter": 14,
271
+ "person": 1,
272
+ "pizza": 59,
273
+ "potted plant": 64,
274
+ "refrigerator": 82,
275
+ "remote": 75,
276
+ "sandwich": 54,
277
+ "scissors": 87,
278
+ "sheep": 20,
279
+ "sink": 81,
280
+ "skateboard": 41,
281
+ "skis": 35,
282
+ "snowboard": 36,
283
+ "spoon": 50,
284
+ "sports ball": 37,
285
+ "stop sign": 13,
286
+ "suitcase": 33,
287
+ "surfboard": 42,
288
+ "teddy bear": 88,
289
+ "tennis racket": 43,
290
+ "tie": 32,
291
+ "toaster": 80,
292
+ "toilet": 70,
293
+ "toothbrush": 90,
294
+ "traffic light": 10,
295
+ "train": 7,
296
+ "truck": 8,
297
+ "tv": 72,
298
+ "umbrella": 28,
299
+ "vase": 86,
300
+ "wine glass": 46,
301
+ "zebra": 24
302
+ },
303
+ "mask_loss_coefficient": 1,
304
+ "max_position_embeddings": 2048,
305
+ "model_type": "deta",
306
+ "num_feature_levels": 5,
307
+ "num_queries": 900,
308
+ "position_embedding_type": "sine",
309
+ "torch_dtype": "float32",
310
+ "transformers_version": null,
311
+ "two_stage": true,
312
+ "two_stage_num_proposals": 300,
313
+ "with_box_refine": true
314
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b27af245cc5d3a93fc793acd6e202dba773413241ad2b61395287f9e35dfc22
3
+ size 194399493