* Created per-device trees commit https://github.com/xiaomi-mt6899-dev/android_device_xiaomi_klee/tree/664b7fd9419947d4ca5c1a2b833968b2ad0b0e41
224 lines
6.0 KiB
JSON
224 lines
6.0 KiB
JSON
{
|
|
"//": "Global parameters",
|
|
"StructGlobal": {
|
|
"StructMask": {
|
|
"paramSwitch": 2,
|
|
"paramaiMaskDownSample": 4,
|
|
"parammImaskW": 960,
|
|
"parammImaskH": 720,
|
|
"paramDetModel": "human_detect",
|
|
"paramSegModel": "portrait_blur"
|
|
},
|
|
"StructAiDepth": {
|
|
"paramSwitch": 1,
|
|
"paramDepthW": 1024
|
|
},
|
|
"StructAideploy": {
|
|
"paramPlatform": 1
|
|
},
|
|
"paramDepthMode": 1,
|
|
"StructDenseNN": {
|
|
"paramSwitch": 1,
|
|
"paramDeploySwitchA": 0,
|
|
"paramDeploySwitchB": 1,
|
|
"paramDeploySwitchC": 1,
|
|
"paramDeploySwitchD": 1,
|
|
"paramSpDispScale": 4.0,
|
|
"StructModel1": {
|
|
"paramVer": "6.22",
|
|
"paramDepthW": 1024,
|
|
"paramDepthH": 768
|
|
},
|
|
"StructModel2": {
|
|
"paramVer": "8.14",
|
|
"paramDepthW": 512,
|
|
"paramDepthH": 512
|
|
}
|
|
},
|
|
"StructNNStereo": {
|
|
"StructModelStereo": {
|
|
"paramVer": "0_1013_90",
|
|
"paramInputW": 1024,
|
|
"paramInputH": 768
|
|
},
|
|
"StructModelRefine": {
|
|
"paramVer": "1_1013_90",
|
|
"paramInputW": 1024,
|
|
"paramInputH": 768
|
|
},
|
|
"paramValTruncL": 10.0,
|
|
"paramValTruncH": 50.0
|
|
},
|
|
"StructMultiThread": {
|
|
"paramMaskThreadSwitch": 0,
|
|
"paramBgFilterSwitch": 0,
|
|
"paramAiDepthThreadSwitch": 0
|
|
},
|
|
"StructDspGpu": {
|
|
"paramBmDspSwitch": 1,
|
|
"paramMatteGpuSwitch": 1
|
|
},
|
|
"paramIsTrustAfCode": 1
|
|
},
|
|
"///": "det parameters",
|
|
"det_param": {
|
|
"Loader_param": {
|
|
"model_file_name": "human_det_quant_npu_320.minn"
|
|
},
|
|
"PreProcess": {
|
|
"inputs": [
|
|
{
|
|
"name": "input",
|
|
"shape": [1, 320, 320, 3]
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "10",
|
|
"layer": "10_quantized",
|
|
"shape": [1, 40, 40, 1]
|
|
},
|
|
{
|
|
"name": "11",
|
|
"layer": "11_quantized",
|
|
"shape": [1, 20, 20, 1]
|
|
},
|
|
{
|
|
"name": "12",
|
|
"layer": "12_quantized",
|
|
"shape": [1, 10, 10, 1]
|
|
},
|
|
{
|
|
"name": "13",
|
|
"layer": "13_quantized",
|
|
"shape": [1, 5, 5, 1]
|
|
},
|
|
{
|
|
"name": "14",
|
|
"layer": "14_quantized",
|
|
"shape": [1, 40, 40, 32]
|
|
},
|
|
{
|
|
"name": "15",
|
|
"layer": "15_quantized",
|
|
"shape": [1, 20, 20, 32]
|
|
},
|
|
{
|
|
"name": "16",
|
|
"layer": "16_quantized",
|
|
"shape": [1, 10, 10, 32]
|
|
},
|
|
{
|
|
"name": "17",
|
|
"layer": "17_quantized",
|
|
"shape": [1, 5, 5, 32]
|
|
}
|
|
],
|
|
"resize_keep_ratio": true,
|
|
"image_mean": [
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
"image_std": [
|
|
255.0,
|
|
255.0,
|
|
255.0
|
|
],
|
|
"inputimage_format": "rgb"
|
|
},
|
|
"PostProcessList": {
|
|
"param": {
|
|
"anchor_generator": {
|
|
"anchor_strides": [
|
|
8,
|
|
16,
|
|
32,
|
|
64
|
|
]
|
|
},
|
|
"anchor_head": {
|
|
"cls_output_name": [
|
|
"10",
|
|
"11",
|
|
"12",
|
|
"13"
|
|
],
|
|
"reg_output_name": [
|
|
"14",
|
|
"15",
|
|
"16",
|
|
"17"
|
|
],
|
|
"use_sigmoid_cls": true,
|
|
"iou_thr": 0.4,
|
|
"score_thr": 0.4,
|
|
"num_class": 2,
|
|
"crop_focalthr": 42
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"////": "seg parameters",
|
|
"seg_param": {
|
|
"useTrimap": false,
|
|
"Loader_param": {
|
|
"model_file_name": "human_seg_bimap_quant_npu_768.minn",
|
|
"model_file_name_trimap": "human_seg_trimap_quant_npu_768.minn"
|
|
},
|
|
"PreProcess": {
|
|
"inputs": [
|
|
{
|
|
"name": "input",
|
|
"shape": [1, 768, 768, 3]
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "output",
|
|
"shape": [1, 768, 768, 1]
|
|
},
|
|
{
|
|
"name": "output_matting",
|
|
"shape": [1, 768, 768, 1]
|
|
},
|
|
{
|
|
"name": "output_trimap",
|
|
"shape": [1, 768, 768, 3]
|
|
}
|
|
],
|
|
"resize_keep_ratio": true,
|
|
"image_mean": [
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
"image_std": [
|
|
1.0,
|
|
1.0,
|
|
1.0
|
|
],
|
|
"inputimage_format": "bgr"
|
|
},
|
|
"PostProcessList": {
|
|
"param": {
|
|
"logit_map": true,
|
|
"output_channel": 0,
|
|
"scaler": 255,
|
|
"tensor_in": "output"
|
|
},
|
|
"trimap_param_0": {
|
|
"logit_map": true,
|
|
"output_channel": 0,
|
|
"scaler": 255,
|
|
"tensor_in": "output_matting"
|
|
},
|
|
"trimap_param_1": {
|
|
"logit_map": true,
|
|
"output_channel": 0,
|
|
"scaler": 127,
|
|
"tensor_in": "output_trimap"
|
|
}
|
|
}
|
|
}
|
|
} |