Adding ONNX file of this model
#1
by
DeokGyu
- opened
- onnx/config.json +121 -0
- onnx/model.onnx +3 -0
- onnx/preprocessor_config.json +24 -0
onnx/config.json
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "yolo12138/segformer-b2-human-parse-24",
|
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 |
+
4,
|
12 |
+
6,
|
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": "background",
|
32 |
+
"1": "hat",
|
33 |
+
"2": "hair",
|
34 |
+
"3": "glove",
|
35 |
+
"4": "glasses",
|
36 |
+
"5": "upper_only_torso_region",
|
37 |
+
"6": "dresses_only_torso_region",
|
38 |
+
"7": "coat_only_torso_region",
|
39 |
+
"8": "socks",
|
40 |
+
"9": "left_pants",
|
41 |
+
"10": "right_patns",
|
42 |
+
"11": "skin_around_neck_region",
|
43 |
+
"12": "scarf",
|
44 |
+
"13": "skirts",
|
45 |
+
"14": "face",
|
46 |
+
"15": "left_arm",
|
47 |
+
"16": "right_arm",
|
48 |
+
"17": "left_leg",
|
49 |
+
"18": "right_leg",
|
50 |
+
"19": "left_shoe",
|
51 |
+
"20": "right_shoe",
|
52 |
+
"21": "left_sleeve_for_upper",
|
53 |
+
"22": "right_sleeve_for_upper",
|
54 |
+
"23": "bag"
|
55 |
+
},
|
56 |
+
"image_size": 224,
|
57 |
+
"initializer_range": 0.02,
|
58 |
+
"label2id": {
|
59 |
+
"background": 0,
|
60 |
+
"bag": 23,
|
61 |
+
"coat_only_torso_region": 7,
|
62 |
+
"dresses_only_torso_region": 6,
|
63 |
+
"face": 14,
|
64 |
+
"glasses": 4,
|
65 |
+
"glove": 3,
|
66 |
+
"hair": 2,
|
67 |
+
"hat": 1,
|
68 |
+
"left_arm": 15,
|
69 |
+
"left_leg": 17,
|
70 |
+
"left_pants": 9,
|
71 |
+
"left_shoe": 19,
|
72 |
+
"left_sleeve_for_upper": 21,
|
73 |
+
"right_arm": 16,
|
74 |
+
"right_leg": 18,
|
75 |
+
"right_patns": 10,
|
76 |
+
"right_shoe": 20,
|
77 |
+
"right_sleeve_for_upper": 22,
|
78 |
+
"scarf": 12,
|
79 |
+
"skin_around_neck_region": 11,
|
80 |
+
"skirts": 13,
|
81 |
+
"socks": 8,
|
82 |
+
"upper_only_torso_region": 5
|
83 |
+
},
|
84 |
+
"layer_norm_eps": 1e-06,
|
85 |
+
"mlp_ratios": [
|
86 |
+
4,
|
87 |
+
4,
|
88 |
+
4,
|
89 |
+
4
|
90 |
+
],
|
91 |
+
"model_type": "segformer",
|
92 |
+
"num_attention_heads": [
|
93 |
+
1,
|
94 |
+
2,
|
95 |
+
5,
|
96 |
+
8
|
97 |
+
],
|
98 |
+
"num_channels": 3,
|
99 |
+
"num_encoder_blocks": 4,
|
100 |
+
"patch_sizes": [
|
101 |
+
7,
|
102 |
+
3,
|
103 |
+
3,
|
104 |
+
3
|
105 |
+
],
|
106 |
+
"reshape_last_stage": true,
|
107 |
+
"semantic_loss_ignore_index": 255,
|
108 |
+
"sr_ratios": [
|
109 |
+
8,
|
110 |
+
4,
|
111 |
+
2,
|
112 |
+
1
|
113 |
+
],
|
114 |
+
"strides": [
|
115 |
+
4,
|
116 |
+
2,
|
117 |
+
2,
|
118 |
+
2
|
119 |
+
],
|
120 |
+
"transformers_version": "4.34.0"
|
121 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:534c9bc2553f4c364105f75f0231f9fa6ede6d276cf11f0866cbddccaccd0c15
|
3 |
+
size 110057747
|
onnx/preprocessor_config.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_reduce_labels": false,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"feature_extractor_type": "SegformerFeatureExtractor",
|
7 |
+
"image_mean": [
|
8 |
+
0.485,
|
9 |
+
0.456,
|
10 |
+
0.406
|
11 |
+
],
|
12 |
+
"image_processor_type": "SegformerFeatureExtractor",
|
13 |
+
"image_std": [
|
14 |
+
0.229,
|
15 |
+
0.224,
|
16 |
+
0.225
|
17 |
+
],
|
18 |
+
"resample": 2,
|
19 |
+
"rescale_factor": 0.00392156862745098,
|
20 |
+
"size": {
|
21 |
+
"height": 256,
|
22 |
+
"width": 256
|
23 |
+
}
|
24 |
+
}
|