Upload folder using huggingface_hub
Browse files- config.json +111 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- preprocessor_config.json +23 -0
- quantize_config.json +33 -0
config.json
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nvidia/segformer-b4-finetuned-cityscapes-1024-1024",
|
3 |
+
"architectures": [
|
4 |
+
"SegformerForSemanticSegmentation"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"classifier_dropout_prob": 0.1,
|
8 |
+
"decoder_hidden_size": 768,
|
9 |
+
"depths": [
|
10 |
+
3,
|
11 |
+
8,
|
12 |
+
27,
|
13 |
+
3
|
14 |
+
],
|
15 |
+
"downsampling_rates": [
|
16 |
+
1,
|
17 |
+
4,
|
18 |
+
8,
|
19 |
+
16
|
20 |
+
],
|
21 |
+
"drop_path_rate": 0.1,
|
22 |
+
"hidden_act": "gelu",
|
23 |
+
"hidden_dropout_prob": 0.0,
|
24 |
+
"hidden_sizes": [
|
25 |
+
64,
|
26 |
+
128,
|
27 |
+
320,
|
28 |
+
512
|
29 |
+
],
|
30 |
+
"id2label": {
|
31 |
+
"0": "road",
|
32 |
+
"1": "sidewalk",
|
33 |
+
"2": "building",
|
34 |
+
"3": "wall",
|
35 |
+
"4": "fence",
|
36 |
+
"5": "pole",
|
37 |
+
"6": "traffic light",
|
38 |
+
"7": "traffic sign",
|
39 |
+
"8": "vegetation",
|
40 |
+
"9": "terrain",
|
41 |
+
"10": "sky",
|
42 |
+
"11": "person",
|
43 |
+
"12": "rider",
|
44 |
+
"13": "car",
|
45 |
+
"14": "truck",
|
46 |
+
"15": "bus",
|
47 |
+
"16": "train",
|
48 |
+
"17": "motorcycle",
|
49 |
+
"18": "bicycle"
|
50 |
+
},
|
51 |
+
"image_size": 224,
|
52 |
+
"initializer_range": 0.02,
|
53 |
+
"label2id": {
|
54 |
+
"bicycle": 18,
|
55 |
+
"building": 2,
|
56 |
+
"bus": 15,
|
57 |
+
"car": 13,
|
58 |
+
"fence": 4,
|
59 |
+
"motorcycle": 17,
|
60 |
+
"person": 11,
|
61 |
+
"pole": 5,
|
62 |
+
"rider": 12,
|
63 |
+
"road": 0,
|
64 |
+
"sidewalk": 1,
|
65 |
+
"sky": 10,
|
66 |
+
"terrain": 9,
|
67 |
+
"traffic light": 6,
|
68 |
+
"traffic sign": 7,
|
69 |
+
"train": 16,
|
70 |
+
"truck": 14,
|
71 |
+
"vegetation": 8,
|
72 |
+
"wall": 3
|
73 |
+
},
|
74 |
+
"layer_norm_eps": 1e-06,
|
75 |
+
"mlp_ratios": [
|
76 |
+
4,
|
77 |
+
4,
|
78 |
+
4,
|
79 |
+
4
|
80 |
+
],
|
81 |
+
"model_type": "segformer",
|
82 |
+
"num_attention_heads": [
|
83 |
+
1,
|
84 |
+
2,
|
85 |
+
5,
|
86 |
+
8
|
87 |
+
],
|
88 |
+
"num_channels": 3,
|
89 |
+
"num_encoder_blocks": 4,
|
90 |
+
"patch_sizes": [
|
91 |
+
7,
|
92 |
+
3,
|
93 |
+
3,
|
94 |
+
3
|
95 |
+
],
|
96 |
+
"reshape_last_stage": true,
|
97 |
+
"semantic_loss_ignore_index": 255,
|
98 |
+
"sr_ratios": [
|
99 |
+
8,
|
100 |
+
4,
|
101 |
+
2,
|
102 |
+
1
|
103 |
+
],
|
104 |
+
"strides": [
|
105 |
+
4,
|
106 |
+
2,
|
107 |
+
2,
|
108 |
+
2
|
109 |
+
],
|
110 |
+
"transformers_version": "4.37.0.dev0"
|
111 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b43ce362c7542fa81a2a3a8af507d82b0c05918e0d3ee30aa19e3bd2958b34c4
|
3 |
+
size 257519681
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf57e9423950585de2e7c69992df6b9abce3de1f2f4257c73451939b3582e8a1
|
3 |
+
size 67757773
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_reduce_labels": false,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "SegformerFeatureExtractor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 2,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 512,
|
21 |
+
"width": 512
|
22 |
+
}
|
23 |
+
}
|
quantize_config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Reshape",
|
8 |
+
"MatMul",
|
9 |
+
"Transpose",
|
10 |
+
"Mul",
|
11 |
+
"Add",
|
12 |
+
"Unsqueeze",
|
13 |
+
"Conv",
|
14 |
+
"Erf",
|
15 |
+
"Constant",
|
16 |
+
"Div",
|
17 |
+
"Gather",
|
18 |
+
"Resize",
|
19 |
+
"Slice",
|
20 |
+
"Softmax",
|
21 |
+
"Concat",
|
22 |
+
"Sub",
|
23 |
+
"Shape",
|
24 |
+
"Cast",
|
25 |
+
"Sqrt",
|
26 |
+
"ReduceMean",
|
27 |
+
"Relu",
|
28 |
+
"Pow"
|
29 |
+
],
|
30 |
+
"weight_type": "QUInt8"
|
31 |
+
}
|
32 |
+
}
|
33 |
+
}
|