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": "jonathandinu/face-parsing",
|
| 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 |
+
6,
|
| 12 |
+
40,
|
| 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": "skin.png",
|
| 33 |
+
"2": "nose.png",
|
| 34 |
+
"3": "r_eye.png",
|
| 35 |
+
"4": "l_eye.png",
|
| 36 |
+
"5": "r_brow.png",
|
| 37 |
+
"6": "l_brow.png",
|
| 38 |
+
"7": "r_ear.png",
|
| 39 |
+
"8": "l_ear.png",
|
| 40 |
+
"9": "mouth.png",
|
| 41 |
+
"10": "u_lip.png",
|
| 42 |
+
"11": "l_lip.png",
|
| 43 |
+
"12": "neck.png",
|
| 44 |
+
"13": "hair.png",
|
| 45 |
+
"14": "neck_l.png",
|
| 46 |
+
"15": "cloth.png",
|
| 47 |
+
"16": "eye_g.png",
|
| 48 |
+
"17": "hat.png",
|
| 49 |
+
"18": "ear_r.png"
|
| 50 |
+
},
|
| 51 |
+
"image_size": 224,
|
| 52 |
+
"initializer_range": 0.02,
|
| 53 |
+
"label2id": {
|
| 54 |
+
"background": 0,
|
| 55 |
+
"cloth.png": 15,
|
| 56 |
+
"ear_r.png": 18,
|
| 57 |
+
"eye_g.png": 16,
|
| 58 |
+
"hair.png": 13,
|
| 59 |
+
"hat.png": 17,
|
| 60 |
+
"l_brow.png": 6,
|
| 61 |
+
"l_ear.png": 8,
|
| 62 |
+
"l_eye.png": 4,
|
| 63 |
+
"l_lip.png": 11,
|
| 64 |
+
"mouth.png": 9,
|
| 65 |
+
"neck.png": 12,
|
| 66 |
+
"neck_l.png": 14,
|
| 67 |
+
"nose.png": 2,
|
| 68 |
+
"r_brow.png": 5,
|
| 69 |
+
"r_ear.png": 7,
|
| 70 |
+
"r_eye.png": 3,
|
| 71 |
+
"skin.png": 1,
|
| 72 |
+
"u_lip.png": 10
|
| 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:6d4e67af60ff78184745ebf74cc15163c0adc27d45cdeba31e3a03d1096fb8c3
|
| 3 |
+
size 340316611
|
onnx/model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5bab9bfb3cb979f3098ac3b934b1641dbf87f835e0b03c2ca6d88dcf18c83d27
|
| 3 |
+
size 89439678
|
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 |
+
"Unsqueeze",
|
| 8 |
+
"Shape",
|
| 9 |
+
"Transpose",
|
| 10 |
+
"Sqrt",
|
| 11 |
+
"Gather",
|
| 12 |
+
"Slice",
|
| 13 |
+
"Erf",
|
| 14 |
+
"Div",
|
| 15 |
+
"Reshape",
|
| 16 |
+
"Add",
|
| 17 |
+
"Cast",
|
| 18 |
+
"Sub",
|
| 19 |
+
"Concat",
|
| 20 |
+
"ReduceMean",
|
| 21 |
+
"Mul",
|
| 22 |
+
"Conv",
|
| 23 |
+
"Constant",
|
| 24 |
+
"Resize",
|
| 25 |
+
"Softmax",
|
| 26 |
+
"Pow",
|
| 27 |
+
"Relu",
|
| 28 |
+
"MatMul"
|
| 29 |
+
],
|
| 30 |
+
"weight_type": "QUInt8"
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|