<?xml version="1.0" encoding="utf-8"?>
<PowerConfig version="3.5.0.3">
    <BaseConfig>
        <!-- 0: rear Skin, 1: front SKIN 2: rear hd, 3: front hd -->
        <AlgoMode>2</AlgoMode>

        <!-- max number of faces can be processed -->
        <MaxFaceNum>5</MaxFaceNum>

        <!-- enable drcGain or not -->
        <UseDrcgain>0</UseDrcgain>

        <!-- border rate for blending HD result with input -->
        <BlendRate>10</BlendRate>

        <!-- algorithm run condition -->
        <GlobalRunCondition use="1">
            <!-- lumType: 0 means ISO, 1 means LuxIndex -->
            <LumVal type="0" min="0" max="1300000"></LumVal>

            <!-- roll: [minRoll,maxRoll], yaw: [minYaw, maxYaw], pitch: [minPitch, maxPitch] -->
            <FaceAngle minRoll="0" maxRoll="360" minYaw="-90" maxYaw="90" minPitch="-90" maxPitch="90"></FaceAngle>
        </GlobalRunCondition>

        <IQAConfig use="1" path="pllm_config.xml"></IQAConfig>

        <!-- method: 0 - USM, 1 - Pyramid-->
        <SharpenConfig method="0">
            <USM>
                <Sigma>1.0</Sigma>
                <Weight>1.0</Weight>
                <Threshold>1</Threshold>
            </USM>
            <Pyramid>
                <!-- maximum levelMum is 4 -->
                <LevelNum>3</LevelNum>
                <Levels>16 64 256</Levels>
            </Pyramid>
        </SharpenConfig>

        <!-- FaceBoxConfig -->
        <FaceBoxConfig>
            <FaceCropRatio>0.20 0.65 0.20 0.35</FaceCropRatio>
        </FaceBoxConfig>

        <!-- FaceMask expand ratios; Blur kernels of silkworm and stru are separate -->
        <FaceMaskConfig>
            <ExpandRadius use="1">
                <Eye x="4" y="4"></Eye>
                <Mouth x="2" y="2"></Mouth>
                <Eyebrow x="2" y="2"></Eyebrow>
                <Nostril x="1" y="1"></Nostril>
            </ExpandRadius>
            <FiveSenseBlurRadius use="1" val="3"></FiveSenseBlurRadius>
        </FaceMaskConfig>

        <!-- color fix method: 0 - None, 1 - Adain, 2 - Wavelet-->
        <ColorFix>2</ColorFix>
    </BaseConfig>

    <!-- model config list -->
    <ModelConfigList>
        <!-- middle face net, output node sequence: hd -->
        <ModelConfig use="1" nid="0" engine="7" device="0" power="0" thread="1" width="640" height="768">
            <ModelPath>RearMidHD.vdnn</ModelPath>
            <InputNode>inp</InputNode>
            <OutputNode>add_6_act_fake_quant add_8_act_fake_quant</OutputNode>
        </ModelConfig>

        <!-- big main face net, output node sequence: hd -->
        <ModelConfig use="1" nid="1" engine="7" device="0" power="0" thread="1" width="1152" height="1536">
            <ModelPath>RearBigMainHD.vdnn</ModelPath>
            <InputNode>inp</InputNode>
            <OutputNode>add_6_act_fake_quant add_8_act_fake_quant</OutputNode>
        </ModelConfig>

        <!-- big kid face net, output node sequence: hd -->
        <ModelConfig use="1" nid="2" engine="7" device="0" power="0" thread="1" width="1152" height="1536">
            <ModelPath>RearBigKidsHD.vdnn</ModelPath>
            <InputNode>inp</InputNode>
            <OutputNode>add_6_act_fake_quant add_8_act_fake_quant</OutputNode>
        </ModelConfig>
    </ModelConfigList>

    <!-- effect config list, segment according to UIZoomRatio and lum (ISO or LuxIndex). -->
    <EffectConfigList lumType="0">
        <!-- uiZoomRatio: [minUIZoomRatio, maxUIZoomRatio), lum: [minLum, maxLum) -->
        <EffectConfig minUIZoomRatio="0.0" maxUIZoomRatio="10.0" minLum="0" maxLum="665600">
            <!-- FaceTypeConfig: the long border length of face box. -->
            <FaceTypeConfig maxSupportSize="10000">
                <MinFaceCond minSize="130" minWid="128" minHei="160" minScore="0.1" faceHDNetId="0"></MinFaceCond>
                <MidFaceCond minSize="450" minWid="400" minHei="550" minScore="0.0" faceHDNetId="0"></MidFaceCond>
                <MaxFaceCond minSize="790" minWid="655" minHei="930" minScore="0.0" faceHDNetId="1"></MaxFaceCond>
                <SupFaceCond minSize="2500" minWid="1800" minHei="2800" minScore="0.0" faceHDNetId="1"></SupFaceCond>
            </FaceTypeConfig>
            <!-- ageType: 1(child) -->
            <FaceTypeConfig maxSupportSize="10000" ageType="1">
                <MinFaceCond minSize="130" minWid="128" minHei="160" minScore="0.1" faceHDNetId="2"></MinFaceCond>
                <MidFaceCond minSize="450" minWid="400" minHei="550" minScore="0.0" faceHDNetId="2"></MidFaceCond>
                <MaxFaceCond minSize="790" minWid="655" minHei="930" minScore="0.0" faceHDNetId="2"></MaxFaceCond>
                <SupFaceCond minSize="2500" minWid="1800" minHei="2800" minScore="0.0" faceHDNetId="2"></SupFaceCond>
            </FaceTypeConfig>

            <!-- config for min face. -->
            <MinFaceConfig>
                <!-- run condition -->
                <RunCond use="1">
                    <MinLaplacian>0.0</MinLaplacian>
                </RunCond>

                <IQARunCond use="1">
                    <score lessThan="0.001" ratio="1.00" ratioSkin="0.0"></score>
                    <score lessThan="0.00100001" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.10" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.20" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.40" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.50" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="1.01" ratio="1.00" ratioSkin="1.0"></score>
                </IQARunCond>

                <HairNetFusionRatio>0.0</HairNetFusionRatio>

                <!-- fusion ratios for output of faceHDNet:  -->
                <HDFusionRatio>
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Unknown>
                    <Child          female="0.50 0.50 0.20 0.50 0.50 0.50 0.00" male="0.50 0.50 0.20 0.50 0.50 0.50 0.00"></Child>
                    <Teenager       female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Teenager>
                    <Youth          female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Youth>
                    <MidAge         female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></MidAge>
                    <YoungElderly   female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></YoungElderly>
                    <Elderly        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Elderly>
                </HDFusionRatio>

                <HDSkinFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="0.50 0.35 0.35 0.50 0.35 0.30 0.00" male="0.50 0.35 0.35 0.50 0.35 0.30 0.00"></Child>
                </HDSkinFusionRatio>

                <DetailFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Child>
                </DetailFusionRatio>

                <ExtraFusionRatio>
                    <SharpenWeights use="1">
                        <!-- regions:         hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                        <Unknown      female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Unknown>
                        <Child        female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Child>
                    </SharpenWeights>
                </ExtraFusionRatio>
            </MinFaceConfig>

            <!-- config for mid face. -->
            <MidFaceConfig>
                <!-- run condition -->
                <RunCond use="1">
                    <MinLaplacian>0.0</MinLaplacian>
                </RunCond>

                <IQARunCond use="1">
                    <score lessThan="0.001" ratio="1.00" ratioSkin="0.0"></score>
                    <score lessThan="0.00100001" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.10" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.20" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.40" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.50" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="1.01" ratio="1.00" ratioSkin="1.0"></score>
                </IQARunCond>

                <HairNetFusionRatio>0.0</HairNetFusionRatio>

                <!-- fusion ratios for output of faceHDNet:  -->
                <HDFusionRatio>
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Unknown>
                    <Child          female="0.50 0.50 0.20 0.50 0.50 0.50 0.00" male="0.50 0.50 0.20 0.50 0.50 0.50 0.00"></Child>
                    <Teenager       female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Teenager>
                    <Youth          female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Youth>
                    <MidAge         female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></MidAge>
                    <YoungElderly   female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></YoungElderly>
                    <Elderly        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Elderly>
                </HDFusionRatio>

                <HDSkinFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="0.50 0.35 0.35 0.50 0.35 0.30 0.00" male="0.50 0.35 0.35 0.50 0.35 0.30 0.00"></Child>
                </HDSkinFusionRatio>

                <DetailFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Child>
                </DetailFusionRatio>

                <ExtraFusionRatio>
                    <SharpenWeights use="1">
                        <!-- regions:         hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                        <Unknown      female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Unknown>
                        <Child        female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Child>
                    </SharpenWeights>
                </ExtraFusionRatio>
            </MidFaceConfig>

            <!-- config for max face. -->
            <MaxFaceConfig>
                <!-- run condition -->
                <RunCond use="1">
                    <MinLaplacian>0.0</MinLaplacian>
                </RunCond>

                <IQARunCond use="1">
                    <score lessThan="0.001" ratio="1.00" ratioSkin="0.0"></score>
                    <score lessThan="0.00100001" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.10" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.20" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.40" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.50" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="1.01" ratio="1.00" ratioSkin="1.0"></score>
                </IQARunCond>

                <HairNetFusionRatio>0.0</HairNetFusionRatio>

                <!-- fusion ratios for output of faceHDNet:  -->
                <HDFusionRatio>
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Unknown>
                    <Child          female="0.50 0.50 0.20 0.50 0.50 0.50 0.00" male="0.50 0.50 0.20 0.50 0.50 0.50 0.00"></Child>
                    <Teenager       female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Teenager>
                    <Youth          female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Youth>
                    <MidAge         female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></MidAge>
                    <YoungElderly   female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></YoungElderly>
                    <Elderly        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Elderly>
                </HDFusionRatio>

                <HDSkinFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="0.50 0.35 0.35 0.50 0.35 0.30 0.00" male="0.50 0.35 0.35 0.50 0.35 0.30 0.00"></Child>
                </HDSkinFusionRatio>

                <DetailFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 0.50 1.00 0.00" male="1.00 1.00 1.00 1.00 0.50 1.00 0.00"></Unknown>
                    <Child   female="1.00 1.00 1.00 1.00 0.50 1.00 0.00" male="1.00 1.00 1.00 1.00 0.50 1.00 0.00"></Child>
                </DetailFusionRatio>

                <ExtraFusionRatio>
                    <SharpenWeights use="1">
                        <!-- regions:         hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                        <Unknown      female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Unknown>
                        <Child        female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Child>
                    </SharpenWeights>
                </ExtraFusionRatio>
            </MaxFaceConfig>

            <!-- config for sup face. -->
            <SupFaceConfig>
                <!-- run condition -->
                <RunCond use="1">
                    <MinLaplacian>0.0</MinLaplacian>
                </RunCond>

                <IQARunCond use="1">
                    <score lessThan="0.001" ratio="1.00" ratioSkin="0.0"></score>
                    <score lessThan="0.00100001" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.10" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.20" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.40" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.50" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="1.01" ratio="1.00" ratioSkin="1.0"></score>
                </IQARunCond>

                <HairNetFusionRatio>0.0</HairNetFusionRatio>

                <!-- fusion ratios for output of faceHDNet:  -->
                <HDFusionRatio>
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Unknown>
                    <Child          female="0.50 0.50 0.20 0.50 0.50 0.50 0.00" male="0.50 0.50 0.20 0.50 0.50 0.50 0.00"></Child>
                    <Teenager       female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Teenager>
                    <Youth          female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Youth>
                    <MidAge         female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></MidAge>
                    <YoungElderly   female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></YoungElderly>
                    <Elderly        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Elderly>
                </HDFusionRatio>

                <HDSkinFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 0.65 0.80 0.00" male="1.00 1.00 1.00 1.00 0.65 0.80 0.00"></Unknown>
                    <Child   female="0.50 0.35 0.35 0.50 0.35 0.30 0.00" male="0.50 0.35 0.35 0.50 0.35 0.30 0.00"></Child>
                </HDSkinFusionRatio>

                <DetailFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 0.50 1.00 0.00" male="1.00 1.00 1.00 1.00 0.50 1.00 0.00"></Unknown>
                    <Child   female="1.00 1.00 1.00 1.00 0.50 1.00 0.00" male="1.00 1.00 1.00 1.00 0.50 1.00 0.00"></Child>
                </DetailFusionRatio>

                <ExtraFusionRatio>
                    <SharpenWeights use="1">
                        <!-- regions:         hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                        <Unknown      female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Unknown>
                        <Child        female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Child>
                    </SharpenWeights>
                </ExtraFusionRatio>
            </SupFaceConfig>
        </EffectConfig>

		<EffectConfig minUIZoomRatio="10.0" maxUIZoomRatio="105.0" minLum="0" maxLum="665600">
            <!-- FaceTypeConfig: the long border length of face box. -->
            <FaceTypeConfig maxSupportSize="10000">
                <MinFaceCond minSize="130" minWid="128" minHei="160" minScore="0.1" faceHDNetId="0"></MinFaceCond>
                <MidFaceCond minSize="450" minWid="400" minHei="550" minScore="0.0" faceHDNetId="0"></MidFaceCond>
                <MaxFaceCond minSize="790" minWid="655" minHei="930" minScore="0.0" faceHDNetId="1"></MaxFaceCond>
                <SupFaceCond minSize="2500" minWid="1800" minHei="2800" minScore="0.0" faceHDNetId="1"></SupFaceCond>
            </FaceTypeConfig>
            <!-- ageType: 1(child) -->
            <FaceTypeConfig maxSupportSize="10000" ageType="1">
                <MinFaceCond minSize="130" minWid="128" minHei="160" minScore="0.1" faceHDNetId="2"></MinFaceCond>
                <MidFaceCond minSize="450" minWid="400" minHei="550" minScore="0.0" faceHDNetId="2"></MidFaceCond>
                <MaxFaceCond minSize="790" minWid="655" minHei="930" minScore="0.0" faceHDNetId="2"></MaxFaceCond>
                <SupFaceCond minSize="2500" minWid="1800" minHei="2800" minScore="0.0" faceHDNetId="2"></SupFaceCond>
            </FaceTypeConfig>

            <!-- config for min face. -->
            <MinFaceConfig>
                <!-- run condition -->
                <RunCond use="1">
                    <MinLaplacian>0.0</MinLaplacian>
                </RunCond>

                <IQARunCond use="1">
                    <score lessThan="0.001" ratio="1.00" ratioSkin="0.0"></score>
                    <score lessThan="0.00100001" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.10" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.20" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.40" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.50" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="1.01" ratio="1.00" ratioSkin="1.0"></score>
                </IQARunCond>

                <HairNetFusionRatio>0.0</HairNetFusionRatio>

                <!-- fusion ratios for output of faceHDNet:  -->
                <HDFusionRatio>
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Unknown>
                    <Child          female="0.50 0.50 0.20 0.50 0.50 0.50 0.00" male="0.50 0.50 0.20 0.50 0.50 0.50 0.00"></Child>
                    <Teenager       female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Teenager>
                    <Youth          female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Youth>
                    <MidAge         female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></MidAge>
                    <YoungElderly   female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></YoungElderly>
                    <Elderly        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Elderly>
                </HDFusionRatio>

                <HDSkinFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="0.50 0.35 0.35 0.50 0.35 0.30 0.00" male="0.50 0.35 0.35 0.50 0.35 0.30 0.00"></Child>
                </HDSkinFusionRatio>

                <DetailFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Child>
                </DetailFusionRatio>

                <ExtraFusionRatio>
                    <SharpenWeights use="1">
                        <!-- regions:         hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                        <Unknown      female="0.00 0.20 0.50 0.30 0.00 0.00 0.00" male="0.00 0.20 0.50 0.30 0.00 0.00 0.00"></Unknown>
                        <Child        female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Child>
                    </SharpenWeights>
                </ExtraFusionRatio>
            </MinFaceConfig>

            <!-- config for mid face. -->
            <MidFaceConfig>
                <!-- run condition -->
                <RunCond use="1">
                    <MinLaplacian>0.0</MinLaplacian>
                </RunCond>

                <IQARunCond use="1">
                    <score lessThan="0.001" ratio="1.00" ratioSkin="0.0"></score>
                    <score lessThan="0.00100001" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.10" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.20" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.40" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.50" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="1.01" ratio="1.00" ratioSkin="1.0"></score>
                </IQARunCond>

                <HairNetFusionRatio>0.0</HairNetFusionRatio>

                <!-- fusion ratios for output of faceHDNet:  -->
                <HDFusionRatio>
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Unknown>
                    <Child          female="0.50 0.50 0.20 0.50 0.50 0.50 0.00" male="0.50 0.50 0.20 0.50 0.50 0.50 0.00"></Child>
                    <Teenager       female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Teenager>
                    <Youth          female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Youth>
                    <MidAge         female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></MidAge>
                    <YoungElderly   female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></YoungElderly>
                    <Elderly        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Elderly>
                </HDFusionRatio>

                <HDSkinFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="0.50 0.35 0.35 0.50 0.35 0.30 0.00" male="0.50 0.35 0.35 0.50 0.35 0.30 0.00"></Child>
                </HDSkinFusionRatio>

                <DetailFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Child>
                </DetailFusionRatio>

                <ExtraFusionRatio>
                    <SharpenWeights use="1">
                        <!-- regions:         hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                        <Unknown      female="0.00 0.20 0.50 0.30 0.00 0.00 0.00" male="0.00 0.20 0.50 0.30 0.00 0.00 0.00"></Unknown>
                        <Child        female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Child>
                    </SharpenWeights>
                </ExtraFusionRatio>
            </MidFaceConfig>

            <!-- config for max face. -->
            <MaxFaceConfig>
                <!-- run condition -->
                <RunCond use="1">
                    <MinLaplacian>0.0</MinLaplacian>
                </RunCond>

                <IQARunCond use="1">
                    <score lessThan="0.001" ratio="1.00" ratioSkin="0.0"></score>
                    <score lessThan="0.00100001" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.10" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.20" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.40" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.50" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="1.01" ratio="1.00" ratioSkin="1.0"></score>
                </IQARunCond>

                <HairNetFusionRatio>0.0</HairNetFusionRatio>

                <!-- fusion ratios for output of faceHDNet:  -->
                <HDFusionRatio>
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Unknown>
                    <Child          female="0.50 0.50 0.20 0.50 0.50 0.50 0.00" male="0.50 0.50 0.20 0.50 0.50 0.50 0.00"></Child>
                    <Teenager       female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Teenager>
                    <Youth          female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Youth>
                    <MidAge         female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></MidAge>
                    <YoungElderly   female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></YoungElderly>
                    <Elderly        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Elderly>
                </HDFusionRatio>

                <HDSkinFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 1.00 1.00 0.00" male="1.00 1.00 1.00 1.00 1.00 1.00 0.00"></Unknown>
                    <Child   female="0.50 0.35 0.35 0.50 0.35 0.30 0.00" male="0.50 0.35 0.35 0.50 0.35 0.30 0.00"></Child>
                </HDSkinFusionRatio>

                <DetailFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 0.50 1.00 0.00" male="1.00 1.00 1.00 1.00 0.50 1.00 0.00"></Unknown>
                    <Child   female="1.00 1.00 1.00 1.00 0.50 1.00 0.00" male="1.00 1.00 1.00 1.00 0.50 1.00 0.00"></Child>
                </DetailFusionRatio>

                <ExtraFusionRatio>
                    <SharpenWeights use="1">
                        <!-- regions:         hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                        <Unknown      female="0.00 0.20 0.50 0.30 0.00 0.00 0.00" male="0.00 0.20 0.50 0.30 0.00 0.00 0.00"></Unknown>
                        <Child        female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Child>
                    </SharpenWeights>
                </ExtraFusionRatio>
            </MaxFaceConfig>

            <!-- config for sup face. -->
            <SupFaceConfig>
                <!-- run condition -->
                <RunCond use="1">
                    <MinLaplacian>0.0</MinLaplacian>
                </RunCond>

                <IQARunCond use="1">
                    <score lessThan="0.001" ratio="1.00" ratioSkin="0.0"></score>
                    <score lessThan="0.00100001" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.10" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.20" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.40" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="0.50" ratio="1.00" ratioSkin="1.0"></score>
                    <score lessThan="1.01" ratio="1.00" ratioSkin="1.0"></score>
                </IQARunCond>

                <HairNetFusionRatio>0.0</HairNetFusionRatio>

                <!-- fusion ratios for output of faceHDNet:  -->
                <HDFusionRatio>
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Unknown>
                    <Child          female="0.50 0.50 0.20 0.50 0.50 0.50 0.00" male="0.50 0.50 0.20 0.50 0.50 0.50 0.00"></Child>
                    <Teenager       female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Teenager>
                    <Youth          female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Youth>
                    <MidAge         female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></MidAge>
                    <YoungElderly   female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></YoungElderly>
                    <Elderly        female="1.00 1.00 1.00 1.00 1.00 1.00 1.00" male="1.00 1.00 1.00 1.00 1.00 1.00 1.00"></Elderly>
                </HDFusionRatio>

                <HDSkinFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 0.65 0.80 0.00" male="1.00 1.00 1.00 1.00 0.65 0.80 0.00"></Unknown>
                    <Child   female="0.50 0.35 0.35 0.50 0.35 0.30 0.00" male="0.50 0.35 0.35 0.50 0.35 0.30 0.00"></Child>
                </HDSkinFusionRatio>

                <DetailFusionRatio use="1">
                    <!-- regions: hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                    <Unknown female="1.00 1.00 1.00 1.00 0.50 1.00 0.00" male="1.00 1.00 1.00 1.00 0.50 1.00 0.00"></Unknown>
                    <Child   female="1.00 1.00 1.00 1.00 0.50 1.00 0.00" male="1.00 1.00 1.00 1.00 0.50 1.00 0.00"></Child>
                </DetailFusionRatio>

                <ExtraFusionRatio>
                    <SharpenWeights use="1">
                        <!-- regions:         hair|eye|brow|mouth|skin|bodyWithoutFace|background -->
                        <Unknown      female="0.00 0.10 0.50 0.20 0.00 0.00 0.00" male="0.00 0.10 0.50 0.20 0.00 0.00 0.00"></Unknown>
                        <Child        female="0.00 0.00 0.00 0.00 0.00 0.00 0.00" male="0.00 0.00 0.00 0.00 0.00 0.00 0.00"></Child>
                    </SharpenWeights>
                </ExtraFusionRatio>
            </SupFaceConfig>
        </EffectConfig>
    </EffectConfigList>
</PowerConfig>

