Xenova HF staff commited on
Commit
762f7d7
1 Parent(s): a3aa6ca

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "PekingU/rtdetr_r50vd",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "silu",
5
+ "anchor_image_size": [
6
+ 640,
7
+ 640
8
+ ],
9
+ "architectures": [
10
+ "RTDetrForObjectDetection"
11
+ ],
12
+ "attention_dropout": 0.0,
13
+ "auxiliary_loss": true,
14
+ "backbone": null,
15
+ "backbone_config": {
16
+ "model_type": "rt_detr_resnet",
17
+ "out_features": [
18
+ "stage2",
19
+ "stage3",
20
+ "stage4"
21
+ ],
22
+ "out_indices": [
23
+ 2,
24
+ 3,
25
+ 4
26
+ ]
27
+ },
28
+ "backbone_kwargs": null,
29
+ "batch_norm_eps": 1e-05,
30
+ "box_noise_scale": 1.0,
31
+ "d_model": 256,
32
+ "decoder_activation_function": "relu",
33
+ "decoder_attention_heads": 8,
34
+ "decoder_ffn_dim": 1024,
35
+ "decoder_in_channels": [
36
+ 256,
37
+ 256,
38
+ 256
39
+ ],
40
+ "decoder_layers": 6,
41
+ "decoder_n_points": 4,
42
+ "disable_custom_kernels": true,
43
+ "dropout": 0.0,
44
+ "encode_proj_layers": [
45
+ 2
46
+ ],
47
+ "encoder_activation_function": "gelu",
48
+ "encoder_attention_heads": 8,
49
+ "encoder_ffn_dim": 1024,
50
+ "encoder_hidden_dim": 256,
51
+ "encoder_in_channels": [
52
+ 512,
53
+ 1024,
54
+ 2048
55
+ ],
56
+ "encoder_layers": 1,
57
+ "eos_coefficient": 0.0001,
58
+ "eval_size": null,
59
+ "feat_strides": [
60
+ 8,
61
+ 16,
62
+ 32
63
+ ],
64
+ "focal_loss_alpha": 0.75,
65
+ "focal_loss_gamma": 2.0,
66
+ "hidden_expansion": 1.0,
67
+ "id2label": {
68
+ "0": "person",
69
+ "1": "bicycle",
70
+ "2": "car",
71
+ "3": "motorbike",
72
+ "4": "aeroplane",
73
+ "5": "bus",
74
+ "6": "train",
75
+ "7": "truck",
76
+ "8": "boat",
77
+ "9": "traffic light",
78
+ "10": "fire hydrant",
79
+ "11": "stop sign",
80
+ "12": "parking meter",
81
+ "13": "bench",
82
+ "14": "bird",
83
+ "15": "cat",
84
+ "16": "dog",
85
+ "17": "horse",
86
+ "18": "sheep",
87
+ "19": "cow",
88
+ "20": "elephant",
89
+ "21": "bear",
90
+ "22": "zebra",
91
+ "23": "giraffe",
92
+ "24": "backpack",
93
+ "25": "umbrella",
94
+ "26": "handbag",
95
+ "27": "tie",
96
+ "28": "suitcase",
97
+ "29": "frisbee",
98
+ "30": "skis",
99
+ "31": "snowboard",
100
+ "32": "sports ball",
101
+ "33": "kite",
102
+ "34": "baseball bat",
103
+ "35": "baseball glove",
104
+ "36": "skateboard",
105
+ "37": "surfboard",
106
+ "38": "tennis racket",
107
+ "39": "bottle",
108
+ "40": "wine glass",
109
+ "41": "cup",
110
+ "42": "fork",
111
+ "43": "knife",
112
+ "44": "spoon",
113
+ "45": "bowl",
114
+ "46": "banana",
115
+ "47": "apple",
116
+ "48": "sandwich",
117
+ "49": "orange",
118
+ "50": "broccoli",
119
+ "51": "carrot",
120
+ "52": "hot dog",
121
+ "53": "pizza",
122
+ "54": "donut",
123
+ "55": "cake",
124
+ "56": "chair",
125
+ "57": "sofa",
126
+ "58": "pottedplant",
127
+ "59": "bed",
128
+ "60": "diningtable",
129
+ "61": "toilet",
130
+ "62": "tvmonitor",
131
+ "63": "laptop",
132
+ "64": "mouse",
133
+ "65": "remote",
134
+ "66": "keyboard",
135
+ "67": "cell phone",
136
+ "68": "microwave",
137
+ "69": "oven",
138
+ "70": "toaster",
139
+ "71": "sink",
140
+ "72": "refrigerator",
141
+ "73": "book",
142
+ "74": "clock",
143
+ "75": "vase",
144
+ "76": "scissors",
145
+ "77": "teddy bear",
146
+ "78": "hair drier",
147
+ "79": "toothbrush"
148
+ },
149
+ "initializer_range": 0.01,
150
+ "is_encoder_decoder": true,
151
+ "label2id": {
152
+ "aeroplane": 4,
153
+ "apple": 47,
154
+ "backpack": 24,
155
+ "banana": 46,
156
+ "baseball bat": 34,
157
+ "baseball glove": 35,
158
+ "bear": 21,
159
+ "bed": 59,
160
+ "bench": 13,
161
+ "bicycle": 1,
162
+ "bird": 14,
163
+ "boat": 8,
164
+ "book": 73,
165
+ "bottle": 39,
166
+ "bowl": 45,
167
+ "broccoli": 50,
168
+ "bus": 5,
169
+ "cake": 55,
170
+ "car": 2,
171
+ "carrot": 51,
172
+ "cat": 15,
173
+ "cell phone": 67,
174
+ "chair": 56,
175
+ "clock": 74,
176
+ "cow": 19,
177
+ "cup": 41,
178
+ "diningtable": 60,
179
+ "dog": 16,
180
+ "donut": 54,
181
+ "elephant": 20,
182
+ "fire hydrant": 10,
183
+ "fork": 42,
184
+ "frisbee": 29,
185
+ "giraffe": 23,
186
+ "hair drier": 78,
187
+ "handbag": 26,
188
+ "horse": 17,
189
+ "hot dog": 52,
190
+ "keyboard": 66,
191
+ "kite": 33,
192
+ "knife": 43,
193
+ "laptop": 63,
194
+ "microwave": 68,
195
+ "motorbike": 3,
196
+ "mouse": 64,
197
+ "orange": 49,
198
+ "oven": 69,
199
+ "parking meter": 12,
200
+ "person": 0,
201
+ "pizza": 53,
202
+ "pottedplant": 58,
203
+ "refrigerator": 72,
204
+ "remote": 65,
205
+ "sandwich": 48,
206
+ "scissors": 76,
207
+ "sheep": 18,
208
+ "sink": 71,
209
+ "skateboard": 36,
210
+ "skis": 30,
211
+ "snowboard": 31,
212
+ "sofa": 57,
213
+ "spoon": 44,
214
+ "sports ball": 32,
215
+ "stop sign": 11,
216
+ "suitcase": 28,
217
+ "surfboard": 37,
218
+ "teddy bear": 77,
219
+ "tennis racket": 38,
220
+ "tie": 27,
221
+ "toaster": 70,
222
+ "toilet": 61,
223
+ "toothbrush": 79,
224
+ "traffic light": 9,
225
+ "train": 6,
226
+ "truck": 7,
227
+ "tvmonitor": 62,
228
+ "umbrella": 25,
229
+ "vase": 75,
230
+ "wine glass": 40,
231
+ "zebra": 22
232
+ },
233
+ "label_noise_ratio": 0.5,
234
+ "layer_norm_eps": 1e-05,
235
+ "learn_initial_query": false,
236
+ "matcher_alpha": 0.25,
237
+ "matcher_bbox_cost": 5.0,
238
+ "matcher_class_cost": 2.0,
239
+ "matcher_gamma": 2.0,
240
+ "matcher_giou_cost": 2.0,
241
+ "model_type": "rt_detr",
242
+ "normalize_before": false,
243
+ "num_denoising": 100,
244
+ "num_feature_levels": 3,
245
+ "num_queries": 300,
246
+ "positional_encoding_temperature": 10000,
247
+ "transformers_version": "4.42.2",
248
+ "use_focal_loss": true,
249
+ "use_pretrained_backbone": false,
250
+ "use_timm_backbone": false,
251
+ "weight_loss_bbox": 5.0,
252
+ "weight_loss_giou": 2.0,
253
+ "weight_loss_vfl": 1.0,
254
+ "with_box_refine": true
255
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1a6aa26c56b7838b02c2b5fa66d312deee1295095ea5e85f5679a6f41eee855
3
+ size 175421119
onnx/model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:757017ca7f3a6ecf5d5d4e4a93490fa731222d4039628afa299c601e2b5ec44c
3
+ size 145647912
onnx/model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e24be2e97f9d74d286252590034f6106d1e6aaa5370c977b0bd5a93eb99f986d
3
+ size 87976913
onnx/model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d52595ca2d74b3704e28f24a77823c049a2a20d8cd7935f933c7d9407f722b33
3
+ size 45463461
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32113df12215d633d6af05c75a4c9778788a28dbf73e9ef8cea3a9ff32f905a6
3
+ size 146242486
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d24ff05f00509f63d8eb374666cbd6be24eeaffc3148ea076ce464d12971b14
3
+ size 45463461
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d24ff05f00509f63d8eb374666cbd6be24eeaffc3148ea076ce464d12971b14
3
+ size 45463461
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
+ }
quantize_config.json ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fp16": {},
3
+ "q8": {
4
+ "per_model_config": {
5
+ "model": {
6
+ "op_types": [
7
+ "Add",
8
+ "AveragePool",
9
+ "Clip",
10
+ "Concat",
11
+ "Conv",
12
+ "Div",
13
+ "Erf",
14
+ "Gather",
15
+ "GatherElements",
16
+ "GridSample",
17
+ "Log",
18
+ "MatMul",
19
+ "MaxPool",
20
+ "Mul",
21
+ "Pow",
22
+ "ReduceMax",
23
+ "ReduceMean",
24
+ "ReduceSum",
25
+ "Relu",
26
+ "Reshape",
27
+ "Resize",
28
+ "Shape",
29
+ "Sigmoid",
30
+ "Slice",
31
+ "Softmax",
32
+ "Split",
33
+ "Sqrt",
34
+ "Sub",
35
+ "Tile",
36
+ "TopK",
37
+ "Transpose",
38
+ "Unsqueeze"
39
+ ],
40
+ "weight_type": "QUInt8"
41
+ }
42
+ },
43
+ "per_channel": true,
44
+ "reduce_range": true
45
+ },
46
+ "int8": {
47
+ "per_model_config": {
48
+ "model": {
49
+ "op_types": [
50
+ "Add",
51
+ "AveragePool",
52
+ "Clip",
53
+ "Concat",
54
+ "Conv",
55
+ "Div",
56
+ "Erf",
57
+ "Gather",
58
+ "GatherElements",
59
+ "GridSample",
60
+ "Log",
61
+ "MatMul",
62
+ "MaxPool",
63
+ "Mul",
64
+ "Pow",
65
+ "ReduceMax",
66
+ "ReduceMean",
67
+ "ReduceSum",
68
+ "Relu",
69
+ "Reshape",
70
+ "Resize",
71
+ "Shape",
72
+ "Sigmoid",
73
+ "Slice",
74
+ "Softmax",
75
+ "Split",
76
+ "Sqrt",
77
+ "Sub",
78
+ "Tile",
79
+ "TopK",
80
+ "Transpose",
81
+ "Unsqueeze"
82
+ ],
83
+ "weight_type": "QInt8"
84
+ }
85
+ },
86
+ "per_channel": true,
87
+ "reduce_range": true
88
+ },
89
+ "uint8": {
90
+ "per_model_config": {
91
+ "model": {
92
+ "op_types": [
93
+ "Add",
94
+ "AveragePool",
95
+ "Clip",
96
+ "Concat",
97
+ "Conv",
98
+ "Div",
99
+ "Erf",
100
+ "Gather",
101
+ "GatherElements",
102
+ "GridSample",
103
+ "Log",
104
+ "MatMul",
105
+ "MaxPool",
106
+ "Mul",
107
+ "Pow",
108
+ "ReduceMax",
109
+ "ReduceMean",
110
+ "ReduceSum",
111
+ "Relu",
112
+ "Reshape",
113
+ "Resize",
114
+ "Shape",
115
+ "Sigmoid",
116
+ "Slice",
117
+ "Softmax",
118
+ "Split",
119
+ "Sqrt",
120
+ "Sub",
121
+ "Tile",
122
+ "TopK",
123
+ "Transpose",
124
+ "Unsqueeze"
125
+ ],
126
+ "weight_type": "QUInt8"
127
+ }
128
+ },
129
+ "per_channel": true,
130
+ "reduce_range": true
131
+ },
132
+ "q4": {
133
+ "block_size": 32,
134
+ "is_symmetric": true,
135
+ "accuracy_level": null
136
+ },
137
+ "bnb4": {
138
+ "block_size": 64,
139
+ "quant_type": 1
140
+ }
141
+ }