Upload 5 files
Browse files- config.json +54 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- preprocessor_config.json +18 -0
- quantize_config.json +19 -0
config.json
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "test",
|
3 |
+
"depths": [
|
4 |
+
3,
|
5 |
+
4,
|
6 |
+
6,
|
7 |
+
3
|
8 |
+
],
|
9 |
+
"num_labels": 5,
|
10 |
+
"id2label": {
|
11 |
+
"0": "Brick",
|
12 |
+
"1": "Metal",
|
13 |
+
"2": "Paper",
|
14 |
+
"3": "Plastic",
|
15 |
+
"4": "Wood"
|
16 |
+
},
|
17 |
+
"label2id": {
|
18 |
+
"Brick": 0,
|
19 |
+
"Metal": 1,
|
20 |
+
"Paper": 2,
|
21 |
+
"Plastic": 3,
|
22 |
+
"Wood": 4
|
23 |
+
},
|
24 |
+
"downsample_in_bottleneck": false,
|
25 |
+
"downsample_in_first_stage": false,
|
26 |
+
"embedding_size": 64,
|
27 |
+
"freeze": true,
|
28 |
+
"hidden_act": "relu",
|
29 |
+
"hidden_sizes": [
|
30 |
+
256,
|
31 |
+
512,
|
32 |
+
1024,
|
33 |
+
2048
|
34 |
+
],
|
35 |
+
"layer_type": "bottleneck",
|
36 |
+
"model_type": "resnet",
|
37 |
+
"num_channels": 3,
|
38 |
+
"out_features": [
|
39 |
+
"stage4"
|
40 |
+
],
|
41 |
+
"out_indices": [
|
42 |
+
4
|
43 |
+
],
|
44 |
+
"outputs": 5,
|
45 |
+
"pretrained": true,
|
46 |
+
"stage_names": [
|
47 |
+
"stem",
|
48 |
+
"stage1",
|
49 |
+
"stage2",
|
50 |
+
"stage3",
|
51 |
+
"stage4"
|
52 |
+
],
|
53 |
+
"transformers_version": "4.42.4"
|
54 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8aac3ab1863b952ddc7f7aade004f3a1477b9141d80eb41140566999fee83412
|
3 |
+
size 93889646
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:70ad3f32d1eeceb9aa68406c667bc2528dd53dc61ca39a8d313f4645645aa6cc
|
3 |
+
size 23647743
|
preprocessor_config.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_resize": true,
|
4 |
+
"image_mean": [
|
5 |
+
0.485,
|
6 |
+
0.456,
|
7 |
+
0.406
|
8 |
+
],
|
9 |
+
"image_std": [
|
10 |
+
0.229,
|
11 |
+
0.224,
|
12 |
+
0.225
|
13 |
+
],
|
14 |
+
"size": {
|
15 |
+
"height": 512,
|
16 |
+
"width": 512
|
17 |
+
}
|
18 |
+
}
|
quantize_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"MaxPool",
|
8 |
+
"Identity",
|
9 |
+
"Flatten",
|
10 |
+
"Relu",
|
11 |
+
"GlobalAveragePool",
|
12 |
+
"Add",
|
13 |
+
"Conv",
|
14 |
+
"Gemm"
|
15 |
+
],
|
16 |
+
"weight_type": "QUInt8"
|
17 |
+
}
|
18 |
+
}
|
19 |
+
}
|