<?xml version="1.0"?>  
 <lcfCfg name="UNet config" batchNum="8" maxIterNum="10000" saveIterNum="100" minStopError="0.015" lrBase="0.0001" lrDecay="0.9" lrStep="0" apiMem="5.6" apiParaType= "GPU" mainParaMem="8" mainParaType="CPU"  backParaMem="12" backParaType="CPU"    weightFile="ccnnWeight.dat">    
    <layer Type="INPT">
        <ID>1</ID>
        <channels>3</channels>
        <height>572</height>
        <width>572</width>
    </layer>

    <layer Type="CBA">
        <ID>2</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>64</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>1</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="CBA">
        <ID>3</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>64</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>2</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="MAXPOOL">
        <ID>4</ID>
        <kerSize>2</kerSize>
        <rbPad>0</rbPad>
        <crPad>0</crPad>
        <inputLayers>
            <inputLayer>3</inputLayer>
        </inputLayers>
    </layer>

     <layer Type="CBA">
        <ID>5</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>128</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>4</inputLayer>
        </inputLayers>
    </layer> 

     <layer Type="CBA">
        <ID>6</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>128</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>5</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="MAXPOOL">
        <ID>7</ID>
        <kerSize>2</kerSize>
        <rbPad>0</rbPad>
        <crPad>0</crPad>
        <inputLayers>
            <inputLayer>6</inputLayer>
        </inputLayers>
    </layer>

    <layer Type="CBA">
        <ID>8</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>7</inputLayer>
        </inputLayers>
    </layer> 

     <layer Type="CBA">
        <ID>9</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>8</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="MAXPOOL">
        <ID>10</ID>
        <kerSize>2</kerSize>
        <rbPad>0</rbPad>
        <crPad>0</crPad>
        <inputLayers>
            <inputLayer>9</inputLayer>
        </inputLayers>
    </layer>

    <layer Type="CBA">
        <ID>11</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>512</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>10</inputLayer>
        </inputLayers>
    </layer> 

     <layer Type="CBA">
        <ID>12</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>512</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>11</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="MAXPOOL">
        <ID>13</ID>
        <kerSize>2</kerSize>
        <rbPad>0</rbPad>
        <crPad>0</crPad>
        <inputLayers>
            <inputLayer>12</inputLayer>
        </inputLayers>
    </layer>

    <layer Type="CBA">
        <ID>14</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>1024</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>13</inputLayer>
        </inputLayers>
    </layer> 

     <layer Type="CBA">
        <ID>15</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>512</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>14</inputLayer>
        </inputLayers>
     </layer> 

     <layer Type="CBA">
        <ID>16</ID>
        <conv>DECONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <standPad>1</standPad>
        <kerNum>512</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <stride>2</stride>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>15</inputLayer>
        </inputLayers>
    </layer>

    <layer Type="CROP">
        <ID>100</ID>
        <TC>4</TC>
        <BC>4</BC>
       <LC>4</LC>
        <RC>4</RC>
        <inputLayers>
            <inputLayer>12</inputLayer>
        </inputLayers>
    </layer>

    <layer Type="MFL">
        <ID>17</ID>
        <inputLayers>
            <inputLayer>16</inputLayer>
            <inputLayer>100</inputLayer>
        </inputLayers>
        <DATA_FUSION>DATA_CAT_N_C_HW</DATA_FUSION>
    </layer>

    <layer Type="CBA">
        <ID>18</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>512</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>17</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="CBA">
        <ID>19</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>18</inputLayer>
        </inputLayers>
     </layer> 

     <layer Type="CBA">
        <ID>20</ID>
        <conv>DECONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <standPad>1</standPad>
        <kerNum>256</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <stride>2</stride>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>19</inputLayer>
        </inputLayers>
    </layer>

    <layer Type="CROP">
        <ID>101</ID>
        <TC>16</TC>
        <BC>16</BC>
       <LC>16</LC>
        <RC>16</RC>
        <inputLayers>
            <inputLayer>9</inputLayer>
        </inputLayers>
    </layer>
    
    <layer Type="MFL">
        <ID>21</ID>
        <inputLayers>
            <inputLayer>20</inputLayer>
            <inputLayer>101</inputLayer>
        </inputLayers>
        <DATA_FUSION>DATA_CAT_N_C_HW</DATA_FUSION>
    </layer>

    <layer Type="CBA">
        <ID>22</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>21</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="CBA">
        <ID>23</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>128</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>22</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="CBA">
        <ID>24</ID>
        <conv>DECONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <standPad>1</standPad>
        <kerNum>128</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <stride>2</stride>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>23</inputLayer>
        </inputLayers>
    </layer>

    <layer Type="CROP">
        <ID>102</ID>
        <TC>40</TC>
        <BC>40</BC>
        <LC>40</LC>
        <RC>40</RC>
        <inputLayers>
            <inputLayer>6</inputLayer>
        </inputLayers>
    </layer>
    
    <layer Type="MFL">
        <ID>25</ID>
        <inputLayers>
            <inputLayer>24</inputLayer>
            <inputLayer>102</inputLayer>
        </inputLayers>
        <DATA_FUSION>DATA_CAT_N_C_HW</DATA_FUSION>
     </layer>

     <layer Type="CBA">
        <ID>26</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>128</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>25</inputLayer>
        </inputLayers>
     </layer> 

    <layer Type="CBA">
        <ID>27</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>64</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>26</inputLayer>
        </inputLayers>
    </layer> 
    
    <layer Type="CBA">
        <ID>28</ID>
        <conv>DECONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <standPad>1</standPad>
        <kerNum>64</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <stride>2</stride>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>27</inputLayer>
        </inputLayers>
    </layer>
     
    <layer Type="CROP">
        <ID>103</ID>
        <TC>88</TC>
        <BC>88</BC>
        <LC>88</LC>
        <RC>88</RC>
        <inputLayers>
            <inputLayer>3</inputLayer>
        </inputLayers>
    </layer>
    
     <layer Type="MFL">
        <ID>29</ID>
        <inputLayers>
            <inputLayer>28</inputLayer>
            <inputLayer>103</inputLayer>
        </inputLayers>
        <DATA_FUSION>DATA_CAT_N_C_HW</DATA_FUSION>
     </layer>

     <layer Type="CBA">
        <ID>30</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>64</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>29</inputLayer>
        </inputLayers>
     </layer> 

     <layer Type="CBA">
        <ID>31</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>64</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>30</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="CBA">
        <ID>32</ID>
        <conv>CONV</conv>
        <kerSize>1</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>21</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>31</inputLayer>
        </inputLayers>
    </layer> 

    <layer Type="SFMIMG">
        <ID>33</ID>
        <inputLayers>
            <inputLayer>32</inputLayer>
        </inputLayers>
        <!--SL: softmax with loss-->
        <!--FL: Focal loss-->
        <LossType>FL</LossType>
        <RGB_TYPE_COFF_LIST>
            <!---First Line must be background-->
            <rgbItem>0 0 0</rgbItem>
            <rgbItem>128 0 0</rgbItem>
            <rgbItem>0 128 0</rgbItem>
            <rgbItem>128 128 0</rgbItem>
            <rgbItem>0 0 128</rgbItem>
            <rgbItem>128 0 128</rgbItem>
            <rgbItem>0 128 128</rgbItem>
            <rgbItem>128 128 128</rgbItem>
            <rgbItem>64 0 0</rgbItem>
            <rgbItem>192 0 0</rgbItem>
            <rgbItem>64 128 0</rgbItem>
            <rgbItem>192 128 0</rgbItem>
            <rgbItem>64 0 128</rgbItem>
            <rgbItem>192 0 128</rgbItem>
            <rgbItem>64 128 128</rgbItem>
            <rgbItem>192 128 128</rgbItem>
            <rgbItem>0 64 0</rgbItem>
            <rgbItem>128 64 0</rgbItem>
            <rgbItem>0 192 0</rgbItem>
            <rgbItem>128 192 0</rgbItem>
            <rgbItem>0 64 128</rgbItem>
        </RGB_TYPE_COFF_LIST>
    </layer>
</lcfCfg>
