nielsr HF staff commited on
Commit
db8d17b
1 Parent(s): 88c6245

Upload DetaForObjectDetection

Browse files
Files changed (2) hide show
  1. config.json +329 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,329 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "resnet50",
12
+ "backbone_config": {
13
+ "_name_or_path": "",
14
+ "add_cross_attention": false,
15
+ "architectures": null,
16
+ "attention_probs_dropout_prob": 0.0,
17
+ "bad_words_ids": null,
18
+ "begin_suppress_tokens": null,
19
+ "bos_token_id": null,
20
+ "chunk_size_feed_forward": 0,
21
+ "cross_attention_hidden_size": null,
22
+ "decoder_start_token_id": null,
23
+ "depths": [
24
+ 2,
25
+ 2,
26
+ 18,
27
+ 2
28
+ ],
29
+ "diversity_penalty": 0.0,
30
+ "do_sample": false,
31
+ "drop_path_rate": 0.1,
32
+ "early_stopping": false,
33
+ "embed_dim": 192,
34
+ "encoder_no_repeat_ngram_size": 0,
35
+ "encoder_stride": 32,
36
+ "eos_token_id": null,
37
+ "exponential_decay_length_penalty": null,
38
+ "finetuning_task": null,
39
+ "forced_bos_token_id": null,
40
+ "forced_eos_token_id": null,
41
+ "hidden_act": "gelu",
42
+ "hidden_dropout_prob": 0.0,
43
+ "hidden_size": 1536,
44
+ "id2label": {
45
+ "0": "LABEL_0",
46
+ "1": "LABEL_1"
47
+ },
48
+ "image_size": 224,
49
+ "initializer_range": 0.02,
50
+ "is_decoder": false,
51
+ "is_encoder_decoder": false,
52
+ "label2id": {
53
+ "LABEL_0": 0,
54
+ "LABEL_1": 1
55
+ },
56
+ "layer_norm_eps": 1e-05,
57
+ "length_penalty": 1.0,
58
+ "max_length": 20,
59
+ "min_length": 0,
60
+ "mlp_ratio": 4.0,
61
+ "model_type": "swin",
62
+ "no_repeat_ngram_size": 0,
63
+ "num_beam_groups": 1,
64
+ "num_beams": 1,
65
+ "num_channels": 3,
66
+ "num_heads": [
67
+ 6,
68
+ 12,
69
+ 24,
70
+ 48
71
+ ],
72
+ "num_layers": 4,
73
+ "num_return_sequences": 1,
74
+ "out_features": [
75
+ "stage2",
76
+ "stage3",
77
+ "stage4"
78
+ ],
79
+ "output_attentions": false,
80
+ "output_hidden_states": false,
81
+ "output_scores": false,
82
+ "pad_token_id": null,
83
+ "patch_size": 4,
84
+ "path_norm": true,
85
+ "prefix": null,
86
+ "problem_type": null,
87
+ "pruned_heads": {},
88
+ "qkv_bias": true,
89
+ "remove_invalid_values": false,
90
+ "repetition_penalty": 1.0,
91
+ "return_dict": true,
92
+ "return_dict_in_generate": false,
93
+ "sep_token_id": null,
94
+ "stage_names": [
95
+ "stem",
96
+ "stage1",
97
+ "stage2",
98
+ "stage3",
99
+ "stage4"
100
+ ],
101
+ "suppress_tokens": null,
102
+ "task_specific_params": null,
103
+ "temperature": 1.0,
104
+ "tf_legacy_loss": false,
105
+ "tie_encoder_decoder": false,
106
+ "tie_word_embeddings": true,
107
+ "tokenizer_class": null,
108
+ "top_k": 50,
109
+ "top_p": 1.0,
110
+ "torch_dtype": null,
111
+ "torchscript": false,
112
+ "transformers_version": "4.26.0.dev0",
113
+ "typical_p": 1.0,
114
+ "use_absolute_embeddings": false,
115
+ "use_bfloat16": false,
116
+ "window_size": 12
117
+ },
118
+ "bbox_cost": 5,
119
+ "bbox_loss_coefficient": 5,
120
+ "class_cost": 1,
121
+ "d_model": 256,
122
+ "decoder_attention_heads": 8,
123
+ "decoder_ffn_dim": 2048,
124
+ "decoder_layerdrop": 0.0,
125
+ "decoder_layers": 6,
126
+ "decoder_n_points": 4,
127
+ "dice_loss_coefficient": 1,
128
+ "dilation": false,
129
+ "dropout": 0.1,
130
+ "encoder_attention_heads": 8,
131
+ "encoder_ffn_dim": 2048,
132
+ "encoder_layerdrop": 0.0,
133
+ "encoder_layers": 6,
134
+ "encoder_n_points": 4,
135
+ "eos_coefficient": 0.1,
136
+ "focal_alpha": 0.25,
137
+ "giou_cost": 2,
138
+ "giou_loss_coefficient": 2,
139
+ "id2label": {
140
+ "0": "N/A",
141
+ "1": "person",
142
+ "2": "bicycle",
143
+ "3": "car",
144
+ "4": "motorcycle",
145
+ "5": "airplane",
146
+ "6": "bus",
147
+ "7": "train",
148
+ "8": "truck",
149
+ "9": "boat",
150
+ "10": "traffic light",
151
+ "11": "fire hydrant",
152
+ "12": "N/A",
153
+ "13": "stop sign",
154
+ "14": "parking meter",
155
+ "15": "bench",
156
+ "16": "bird",
157
+ "17": "cat",
158
+ "18": "dog",
159
+ "19": "horse",
160
+ "20": "sheep",
161
+ "21": "cow",
162
+ "22": "elephant",
163
+ "23": "bear",
164
+ "24": "zebra",
165
+ "25": "giraffe",
166
+ "26": "N/A",
167
+ "27": "backpack",
168
+ "28": "umbrella",
169
+ "29": "N/A",
170
+ "30": "N/A",
171
+ "31": "handbag",
172
+ "32": "tie",
173
+ "33": "suitcase",
174
+ "34": "frisbee",
175
+ "35": "skis",
176
+ "36": "snowboard",
177
+ "37": "sports ball",
178
+ "38": "kite",
179
+ "39": "baseball bat",
180
+ "40": "baseball glove",
181
+ "41": "skateboard",
182
+ "42": "surfboard",
183
+ "43": "tennis racket",
184
+ "44": "bottle",
185
+ "45": "N/A",
186
+ "46": "wine glass",
187
+ "47": "cup",
188
+ "48": "fork",
189
+ "49": "knife",
190
+ "50": "spoon",
191
+ "51": "bowl",
192
+ "52": "banana",
193
+ "53": "apple",
194
+ "54": "sandwich",
195
+ "55": "orange",
196
+ "56": "broccoli",
197
+ "57": "carrot",
198
+ "58": "hot dog",
199
+ "59": "pizza",
200
+ "60": "donut",
201
+ "61": "cake",
202
+ "62": "chair",
203
+ "63": "couch",
204
+ "64": "potted plant",
205
+ "65": "bed",
206
+ "66": "N/A",
207
+ "67": "dining table",
208
+ "68": "N/A",
209
+ "69": "N/A",
210
+ "70": "toilet",
211
+ "71": "N/A",
212
+ "72": "tv",
213
+ "73": "laptop",
214
+ "74": "mouse",
215
+ "75": "remote",
216
+ "76": "keyboard",
217
+ "77": "cell phone",
218
+ "78": "microwave",
219
+ "79": "oven",
220
+ "80": "toaster",
221
+ "81": "sink",
222
+ "82": "refrigerator",
223
+ "83": "N/A",
224
+ "84": "book",
225
+ "85": "clock",
226
+ "86": "vase",
227
+ "87": "scissors",
228
+ "88": "teddy bear",
229
+ "89": "hair drier",
230
+ "90": "toothbrush"
231
+ },
232
+ "init_std": 0.02,
233
+ "init_xavier_std": 1.0,
234
+ "is_encoder_decoder": true,
235
+ "label2id": {
236
+ "N/A": 83,
237
+ "airplane": 5,
238
+ "apple": 53,
239
+ "backpack": 27,
240
+ "banana": 52,
241
+ "baseball bat": 39,
242
+ "baseball glove": 40,
243
+ "bear": 23,
244
+ "bed": 65,
245
+ "bench": 15,
246
+ "bicycle": 2,
247
+ "bird": 16,
248
+ "boat": 9,
249
+ "book": 84,
250
+ "bottle": 44,
251
+ "bowl": 51,
252
+ "broccoli": 56,
253
+ "bus": 6,
254
+ "cake": 61,
255
+ "car": 3,
256
+ "carrot": 57,
257
+ "cat": 17,
258
+ "cell phone": 77,
259
+ "chair": 62,
260
+ "clock": 85,
261
+ "couch": 63,
262
+ "cow": 21,
263
+ "cup": 47,
264
+ "dining table": 67,
265
+ "dog": 18,
266
+ "donut": 60,
267
+ "elephant": 22,
268
+ "fire hydrant": 11,
269
+ "fork": 48,
270
+ "frisbee": 34,
271
+ "giraffe": 25,
272
+ "hair drier": 89,
273
+ "handbag": 31,
274
+ "horse": 19,
275
+ "hot dog": 58,
276
+ "keyboard": 76,
277
+ "kite": 38,
278
+ "knife": 49,
279
+ "laptop": 73,
280
+ "microwave": 78,
281
+ "motorcycle": 4,
282
+ "mouse": 74,
283
+ "orange": 55,
284
+ "oven": 79,
285
+ "parking meter": 14,
286
+ "person": 1,
287
+ "pizza": 59,
288
+ "potted plant": 64,
289
+ "refrigerator": 82,
290
+ "remote": 75,
291
+ "sandwich": 54,
292
+ "scissors": 87,
293
+ "sheep": 20,
294
+ "sink": 81,
295
+ "skateboard": 41,
296
+ "skis": 35,
297
+ "snowboard": 36,
298
+ "spoon": 50,
299
+ "sports ball": 37,
300
+ "stop sign": 13,
301
+ "suitcase": 33,
302
+ "surfboard": 42,
303
+ "teddy bear": 88,
304
+ "tennis racket": 43,
305
+ "tie": 32,
306
+ "toaster": 80,
307
+ "toilet": 70,
308
+ "toothbrush": 90,
309
+ "traffic light": 10,
310
+ "train": 7,
311
+ "truck": 8,
312
+ "tv": 72,
313
+ "umbrella": 28,
314
+ "vase": 86,
315
+ "wine glass": 46,
316
+ "zebra": 24
317
+ },
318
+ "mask_loss_coefficient": 1,
319
+ "max_position_embeddings": 1024,
320
+ "model_type": "deta",
321
+ "num_feature_levels": 5,
322
+ "num_queries": 900,
323
+ "position_embedding_type": "sine",
324
+ "torch_dtype": "float32",
325
+ "transformers_version": null,
326
+ "two_stage": true,
327
+ "two_stage_num_proposals": 300,
328
+ "with_box_refine": true
329
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ea070fdf046bb69df0e2e29be68496af97b8e9a0c414849c8614567d6821467
3
+ size 879370769