<?xml version="1.0"?>  
<lcfCfg name="deepLabV3" batchNum="1" maxIterNum="10000" saveIterNum="100" minStopError="0.001" lrBase="0.0005" lrDecay="0.99" lrStep="0" apiMem="0.8" apiParaType="GPU" mainParaMem="1.0" mainParaType="CPU"  backParaMem="1.5" backParaType="CPU" weightFile="deeplab3Weight.dat">

    <layer Type="INPT">
        <ID>1</ID>
        <channels>3</channels>
        <height>512</height>
        <width>512</width>
    </layer>
 
    <layer Type="CONV">
        <ID>2</ID>
        <kerSize>7</kerSize>
        <pad>3</pad>
        <stride>2</stride>
        <kerNum>64</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>      
        <inputLayers>
            <inputLayer>1</inputLayer>
        </inputLayers>
    </layer>
    
    <layer Type="MAXPOOL">
        <ID>3</ID>
        <kerSize>2</kerSize>
        <rbPad>0</rbPad>
        <crPad>0</crPad>
        <inputLayers>
            <inputLayer>2</inputLayer>
        </inputLayers>      
    </layer>

    <!--######################################## STAGE0 Finish Out -->

    <layer Type="BTNK1">
        <ID>4</ID>  
        <stride>1</stride>
        <kerNum>64</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>3</inputLayer>
        </inputLayers>      
     </layer>
     
     <layer Type="BTNK2">
        <ID>5</ID>  
        <kerNum>256</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>4</inputLayer>
        </inputLayers>      
     </layer>
     
     <layer Type="BTNK2">
        <ID>6</ID>  
        <kerNum>256</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>5</inputLayer>
        </inputLayers>      
     </layer>
     
     <!--######################################## STAGE1 Finish-->
    
     <layer Type="BTNK1">
        <ID>7</ID>  
        <stride>2</stride>
        <kerNum>128</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>6</inputLayer>
        </inputLayers>      
     </layer>
     
     <layer Type="BTNK2">
        <ID>8</ID>  
        <kerNum>512</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>7</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>9</ID>  
        <kerNum>512</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>8</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>10</ID>  
        <kerNum>512</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>9</inputLayer>
        </inputLayers>        
     </layer>
     <!--######################################## STAGE2 Finish-->

      <layer Type="BTNK1">
        <ID>11</ID>  
        <stride>2</stride>
        <kerNum>256</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>10</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>12</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>11</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>13</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>12</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>14</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>13</inputLayer>
        </inputLayers>        
     </layer>
     
     <layer Type="BTNK2">
        <ID>15</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>14</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>16</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>15</inputLayer>
        </inputLayers>        
     </layer>
     
     <layer Type="BTNK2">
        <ID>17</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>16</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>18</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>17</inputLayer>
        </inputLayers>        
     </layer>
     
     <layer Type="BTNK2">
        <ID>19</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>18</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>20</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>19</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>21</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>20</inputLayer>
        </inputLayers>        
     </layer>
     
     <layer Type="BTNK2">
        <ID>22</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>21</inputLayer>
        </inputLayers>        
     </layer>
     
     <layer Type="BTNK2">
        <ID>23</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>22</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>24</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>23</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>25</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>24</inputLayer>
        </inputLayers>        
     </layer>
     
     <layer Type="BTNK2">
        <ID>26</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>25</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>27</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>26</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>28</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>27</inputLayer>
        </inputLayers>        
     </layer>
     
     <layer Type="BTNK2">
        <ID>29</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>28</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>30</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>29</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>31</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>30</inputLayer>
        </inputLayers>        
     </layer>
     
     <layer Type="BTNK2">
        <ID>32</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>31</inputLayer>
        </inputLayers>        
     </layer>
     
     <layer Type="BTNK2">
        <ID>33</ID>  
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>32</inputLayer>
        </inputLayers>       
     </layer>
     
     <!--######################################## STAGE3 Finish-->
   
    <layer Type="BTNK1">
        <ID>34</ID>  
        <stride>2</stride>
        <kerNum>512</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>33</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>35</ID>  
        <kerNum>2048</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>34</inputLayer>
        </inputLayers>       
     </layer>
     
     <layer Type="BTNK2">
        <ID>36</ID>  
        <kerNum>2048</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>35</inputLayer>
        </inputLayers>       
     </layer>  
  
     <!--ASPP Begin-->
     
     <layer Type="CBA">
        <ID>37</ID>
        <conv>CONV</conv>
        <kerSize>1</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>36</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="CBA">
        <ID>38</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>6</pad>
        <stride>1</stride>
        <dilate>6</dilate>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>36</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="CBA">
        <ID>39</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>12</pad>
        <stride>1</stride>
        <dilate>12</dilate>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>36</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="CBA">
        <ID>40</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>18</pad>
        <stride>1</stride>
        <dilate>18</dilate>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>36</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="AVEPOOL">
        <ID>41</ID>
        <kerSize>2</kerSize>
        <inputLayers>
            <inputLayer>36</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="CBA">
        <ID>42</ID>
        <conv>CONV</conv>
        <kerSize>1</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>41</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="AVEUS">
        <ID>43</ID>
        <kerSize>2</kerSize>
        <inputLayers>
            <inputLayer>42</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="MFL">
         <ID>44</ID>
         <inputLayers>
             <inputLayer>37</inputLayer>
             <inputLayer>38</inputLayer>
             <inputLayer>39</inputLayer>
             <inputLayer>40</inputLayer>
             <inputLayer>43</inputLayer>
        </inputLayers>
        <DATA_FUSION>DATA_CAT_N_C_HW</DATA_FUSION>
     </layer>
    
     <layer Type="CBA">
        <ID>45</ID>
        <conv>CONV</conv>
        <kerSize>1</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>44</inputLayer>
        </inputLayers>
     </layer>
     <!--ASPP Finish-->
     
     <layer Type="CBA">
        <ID>46</ID>
        <conv>CONV</conv>
        <kerSize>1</kerSize>
        <pad>0</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>45</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="AVEPOOL">
        <ID>47</ID>
        <kerSize>4</kerSize>
        <inputLayers>
            <inputLayer>46</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="MFL">
         <ID>48</ID>
         <inputLayers>
             <inputLayer>47</inputLayer>
             <inputLayer>10</inputLayer>
         </inputLayers>
        <DATA_FUSION>DATA_CAT_N_C_HW</DATA_FUSION>
     </layer>
     
     <layer Type="CBA">
        <ID>49</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>21</kerNum><!--NOTICE kerNum = classNum + 1(backGround 0 0 0)-->
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>48</inputLayer>
        </inputLayers>
     </layer>

     <layer Type="AVEUS">
        <ID>50</ID>
        <kerSize>4</kerSize>
        <inputLayers>
            <inputLayer>49</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="AVEUS">
        <ID>51</ID>
        <kerSize>2</kerSize>
        <inputLayers>
            <inputLayer>50</inputLayer>
        </inputLayers>
     </layer>
     
     <layer Type="SFMIMG">
        <ID>52</ID>
        <inputLayers>
            <inputLayer>51</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>
