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