jadechoghari commited on
Commit
09fb28b
·
verified ·
1 Parent(s): 9f9da79

add initial files

Browse files
Files changed (3) hide show
  1. config.json +266 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +26 -0
config.json ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "anchor_image_size": null,
5
+ "architectures": [
6
+ "RTDetrForObjectDetection"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": true,
10
+ "backbone": null,
11
+ "backbone_config": {
12
+ "depths": [
13
+ 2,
14
+ 2,
15
+ 2,
16
+ 2
17
+ ],
18
+ "hidden_sizes": [
19
+ 64,
20
+ 128,
21
+ 256,
22
+ 512
23
+ ],
24
+ "layer_type": "basic",
25
+ "model_type": "rt_detr_resnet",
26
+ "out_features": [
27
+ "stage2",
28
+ "stage3",
29
+ "stage4"
30
+ ],
31
+ "out_indices": [
32
+ 2,
33
+ 3,
34
+ 4
35
+ ]
36
+ },
37
+ "backbone_kwargs": null,
38
+ "batch_norm_eps": 1e-05,
39
+ "box_noise_scale": 1.0,
40
+ "d_model": 256,
41
+ "decoder_activation_function": "relu",
42
+ "decoder_attention_heads": 8,
43
+ "decoder_ffn_dim": 1024,
44
+ "decoder_in_channels": [
45
+ 256,
46
+ 256,
47
+ 256
48
+ ],
49
+ "decoder_layers": 3,
50
+ "decoder_n_points": 4,
51
+ "disable_custom_kernels": true,
52
+ "dropout": 0.0,
53
+ "encode_proj_layers": [
54
+ 2
55
+ ],
56
+ "encoder_activation_function": "gelu",
57
+ "encoder_attention_heads": 8,
58
+ "encoder_ffn_dim": 1024,
59
+ "encoder_hidden_dim": 256,
60
+ "encoder_in_channels": [
61
+ 128,
62
+ 256,
63
+ 512
64
+ ],
65
+ "encoder_layers": 1,
66
+ "eos_coefficient": 0.0001,
67
+ "eval_size": null,
68
+ "feat_strides": [
69
+ 8,
70
+ 16,
71
+ 32
72
+ ],
73
+ "focal_loss_alpha": 0.75,
74
+ "focal_loss_gamma": 2.0,
75
+ "hidden_expansion": 0.5,
76
+ "id2label": {
77
+ "0": "person",
78
+ "1": "bicycle",
79
+ "2": "car",
80
+ "3": "motorbike",
81
+ "4": "aeroplane",
82
+ "5": "bus",
83
+ "6": "train",
84
+ "7": "truck",
85
+ "8": "boat",
86
+ "9": "traffic light",
87
+ "10": "fire hydrant",
88
+ "11": "stop sign",
89
+ "12": "parking meter",
90
+ "13": "bench",
91
+ "14": "bird",
92
+ "15": "cat",
93
+ "16": "dog",
94
+ "17": "horse",
95
+ "18": "sheep",
96
+ "19": "cow",
97
+ "20": "elephant",
98
+ "21": "bear",
99
+ "22": "zebra",
100
+ "23": "giraffe",
101
+ "24": "backpack",
102
+ "25": "umbrella",
103
+ "26": "handbag",
104
+ "27": "tie",
105
+ "28": "suitcase",
106
+ "29": "frisbee",
107
+ "30": "skis",
108
+ "31": "snowboard",
109
+ "32": "sports ball",
110
+ "33": "kite",
111
+ "34": "baseball bat",
112
+ "35": "baseball glove",
113
+ "36": "skateboard",
114
+ "37": "surfboard",
115
+ "38": "tennis racket",
116
+ "39": "bottle",
117
+ "40": "wine glass",
118
+ "41": "cup",
119
+ "42": "fork",
120
+ "43": "knife",
121
+ "44": "spoon",
122
+ "45": "bowl",
123
+ "46": "banana",
124
+ "47": "apple",
125
+ "48": "sandwich",
126
+ "49": "orange",
127
+ "50": "broccoli",
128
+ "51": "carrot",
129
+ "52": "hot dog",
130
+ "53": "pizza",
131
+ "54": "donut",
132
+ "55": "cake",
133
+ "56": "chair",
134
+ "57": "sofa",
135
+ "58": "pottedplant",
136
+ "59": "bed",
137
+ "60": "diningtable",
138
+ "61": "toilet",
139
+ "62": "tvmonitor",
140
+ "63": "laptop",
141
+ "64": "mouse",
142
+ "65": "remote",
143
+ "66": "keyboard",
144
+ "67": "cell phone",
145
+ "68": "microwave",
146
+ "69": "oven",
147
+ "70": "toaster",
148
+ "71": "sink",
149
+ "72": "refrigerator",
150
+ "73": "book",
151
+ "74": "clock",
152
+ "75": "vase",
153
+ "76": "scissors",
154
+ "77": "teddy bear",
155
+ "78": "hair drier",
156
+ "79": "toothbrush"
157
+ },
158
+ "initializer_bias_prior_prob": null,
159
+ "initializer_range": 0.01,
160
+ "is_encoder_decoder": true,
161
+ "label2id": {
162
+ "aeroplane": 4,
163
+ "apple": 47,
164
+ "backpack": 24,
165
+ "banana": 46,
166
+ "baseball bat": 34,
167
+ "baseball glove": 35,
168
+ "bear": 21,
169
+ "bed": 59,
170
+ "bench": 13,
171
+ "bicycle": 1,
172
+ "bird": 14,
173
+ "boat": 8,
174
+ "book": 73,
175
+ "bottle": 39,
176
+ "bowl": 45,
177
+ "broccoli": 50,
178
+ "bus": 5,
179
+ "cake": 55,
180
+ "car": 2,
181
+ "carrot": 51,
182
+ "cat": 15,
183
+ "cell phone": 67,
184
+ "chair": 56,
185
+ "clock": 74,
186
+ "cow": 19,
187
+ "cup": 41,
188
+ "diningtable": 60,
189
+ "dog": 16,
190
+ "donut": 54,
191
+ "elephant": 20,
192
+ "fire hydrant": 10,
193
+ "fork": 42,
194
+ "frisbee": 29,
195
+ "giraffe": 23,
196
+ "hair drier": 78,
197
+ "handbag": 26,
198
+ "horse": 17,
199
+ "hot dog": 52,
200
+ "keyboard": 66,
201
+ "kite": 33,
202
+ "knife": 43,
203
+ "laptop": 63,
204
+ "microwave": 68,
205
+ "motorbike": 3,
206
+ "mouse": 64,
207
+ "orange": 49,
208
+ "oven": 69,
209
+ "parking meter": 12,
210
+ "person": 0,
211
+ "pizza": 53,
212
+ "pottedplant": 58,
213
+ "refrigerator": 72,
214
+ "remote": 65,
215
+ "sandwich": 48,
216
+ "scissors": 76,
217
+ "sheep": 18,
218
+ "sink": 71,
219
+ "skateboard": 36,
220
+ "skis": 30,
221
+ "snowboard": 31,
222
+ "sofa": 57,
223
+ "spoon": 44,
224
+ "sports ball": 32,
225
+ "stop sign": 11,
226
+ "suitcase": 28,
227
+ "surfboard": 37,
228
+ "teddy bear": 77,
229
+ "tennis racket": 38,
230
+ "tie": 27,
231
+ "toaster": 70,
232
+ "toilet": 61,
233
+ "toothbrush": 79,
234
+ "traffic light": 9,
235
+ "train": 6,
236
+ "truck": 7,
237
+ "tvmonitor": 62,
238
+ "umbrella": 25,
239
+ "vase": 75,
240
+ "wine glass": 40,
241
+ "zebra": 22
242
+ },
243
+ "label_noise_ratio": 0.5,
244
+ "layer_norm_eps": 1e-05,
245
+ "learn_initial_query": false,
246
+ "matcher_alpha": 0.25,
247
+ "matcher_bbox_cost": 5.0,
248
+ "matcher_class_cost": 2.0,
249
+ "matcher_gamma": 2.0,
250
+ "matcher_giou_cost": 2.0,
251
+ "model_type": "rt_detr",
252
+ "normalize_before": false,
253
+ "num_denoising": 100,
254
+ "num_feature_levels": 3,
255
+ "num_queries": 300,
256
+ "positional_encoding_temperature": 10000,
257
+ "torch_dtype": "float32",
258
+ "transformers_version": "4.43.0",
259
+ "use_focal_loss": true,
260
+ "use_pretrained_backbone": false,
261
+ "use_timm_backbone": false,
262
+ "weight_loss_bbox": 5.0,
263
+ "weight_loss_giou": 2.0,
264
+ "weight_loss_vfl": 1.0,
265
+ "with_box_refine": true
266
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59134ead31ee0e18c49566507cbadc176a1a437e2fe304f621ad32d318fe320f
3
+ size 80904152
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_annotations": true,
3
+ "do_normalize": false,
4
+ "do_pad": false,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "format": "coco_detection",
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_processor_type": "RTDetrImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "pad_size": null,
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "height": 640,
24
+ "width": 640
25
+ }
26
+ }