<?xml version="1.0"?>  
<lcfCfg name="YOLO3 config" batchNum="16" maxIterNum="80000" saveIterNum="1000" minStopError="0.001" lrBase="0.005" lrDecay="0.99" lrStep="0" apiMem="0.8" apiParaType="GPU" mainParaMem="3.0" mainParaType="CPU"  backParaMem="1.0" backParaType="CPU" weightFile="yolo3Weight.dat">
    <layer Type="INPT">
        <ID>1</ID>
        <channels>3</channels>
        <height>416</height>
        <width>416</width>
    </layer>
 
    <layer Type="CBA">
        <ID>2</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>32</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>     
        <activeType>LRELU</activeType> 
        <inputLayers>
            <inputLayer>1</inputLayer>
        </inputLayers>
    </layer>
    
    <layer Type="RESN">
        <ID>3</ID>  
        <resNum>1</resNum>
        <kerNum>64</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>2</inputLayer>
        </inputLayers>      
     </layer>
     
      <layer Type="RESN">
        <ID>4</ID>  
        <resNum>2</resNum>
        <kerNum>128</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="RESN">
        <ID>5</ID>  
        <resNum>8</resNum>
        <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="RESN">
        <ID>6</ID>  
        <resNum>8</resNum>
        <kerNum>512</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>5</inputLayer>
        </inputLayers>      
     </layer>
     
      <layer Type="RESN">
        <ID>7</ID>  
        <resNum>4</resNum>
        <kerNum>1024</kerNum>
        <gamma>1</gamma>
        <beta>0</beta>       
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>
        <activeType>LRELU</activeType>
        <inputLayers>
            <inputLayer>6</inputLayer>
        </inputLayers>      
     </layer>
     
    <!--DarkNet53 finish-->
    
    <layer Type="CBA">
        <ID>8</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>512</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>1</pad>
        <stride>1</stride>
        <kerNum>1024</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha> 
        <activeType>LRELU</activeType>     
        <inputLayers>
            <inputLayer>8</inputLayer>
        </inputLayers>
    </layer>  
     
    <layer Type="CBA">
        <ID>10</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>512</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>9</inputLayer>
        </inputLayers>
    </layer> 
     
    <layer Type="CBA">
        <ID>11</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>1024</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>1</pad>
        <stride>1</stride>
        <kerNum>512</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha> 
        <activeType>LRELU</activeType>     
        <inputLayers>
            <inputLayer>11</inputLayer>
        </inputLayers>
    </layer>      
    <!---branch to path2----> 
     
    <layer Type="CBA">
        <ID>13</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>512</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>12</inputLayer>
        </inputLayers>
    </layer>   
    
    <layer Type="CBA">
        <ID>14</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <!--3 * (classNum + 5)-->
        <kerNum>255</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>1</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>   
        <activeType>LRELU</activeType>   
        <inputLayers>
            <inputLayer>12</inputLayer>
        </inputLayers>
    </layer>        
    
    <layer Type="AVEUS">
        <ID>16</ID>
        <kerSize>2</kerSize>     
        <inputLayers>
            <inputLayer>15</inputLayer>
        </inputLayers>
    </layer>   
      
    <layer Type="MFL">
        <ID>17</ID>
        <inputLayers>
            <inputLayer>16</inputLayer>
            <inputLayer>6</inputLayer>
        </inputLayers>
        <DATA_FUSION>DATA_CAT_N_C_HW</DATA_FUSION>
   </layer>  
      
   <!-----path2 5 * cba--------->
     <layer Type="CBA">
        <ID>18</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>256</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>1</pad>
        <stride>1</stride>
        <kerNum>512</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>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha> 
        <activeType>LRELU</activeType>     
        <inputLayers>
            <inputLayer>19</inputLayer>
        </inputLayers>
    </layer> 
     
    <layer Type="CBA">
        <ID>21</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>512</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>20</inputLayer>
        </inputLayers>
    </layer>  
 
     <layer Type="CBA">
        <ID>22</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</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>1</pad>
        <stride>1</stride>
        <kerNum>256</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>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <!--3 * (classNum + 5)-->
        <kerNum>255</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha> 
        <activeType>LRELU</activeType>     
        <inputLayers>
            <inputLayer>23</inputLayer>
        </inputLayers>
    </layer>    
      
     <layer Type="CBA">
        <ID>25</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha> 
        <activeType>LRELU</activeType>     
        <inputLayers>
            <inputLayer>22</inputLayer>
        </inputLayers>
    </layer>       
      
    <layer Type="AVEUS">
        <ID>26</ID>
        <kerSize>2</kerSize>     
        <inputLayers>
            <inputLayer>25</inputLayer>
        </inputLayers>
    </layer>   
      
    <layer Type="MFL">
        <ID>27</ID>
        <inputLayers>
            <inputLayer>26</inputLayer>
            <inputLayer>5</inputLayer>
        </inputLayers>
        <DATA_FUSION>DATA_CAT_N_C_HW</DATA_FUSION>
   </layer> 

     <!-----path3 5 * cba---->
     <layer Type="CBA">
        <ID>28</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>128</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha> 
        <activeType>LRELU</activeType>     
        <inputLayers>
            <inputLayer>27</inputLayer>
        </inputLayers>
    </layer> 
     
    <layer Type="CBA">
        <ID>29</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>256</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>28</inputLayer>
        </inputLayers>
    </layer>  
     
    <layer Type="CBA">
        <ID>30</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>128</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>1</pad>
        <stride>1</stride>
        <kerNum>256</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>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>128</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>31</inputLayer>
        </inputLayers>
    </layer>       
      
     <layer Type="CBA">
        <ID>33</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <kerNum>128</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha> 
        <activeType>LRELU</activeType>     
        <inputLayers>
            <inputLayer>32</inputLayer>
        </inputLayers>
    </layer>   
    
    <layer Type="CBA">
        <ID>34</ID>
        <conv>CONV</conv>
        <kerSize>3</kerSize>
        <pad>1</pad>
        <stride>1</stride>
        <!--3 * (classNum + 5)-->
        <kerNum>255</kerNum>
        <lambda>0.0</lambda>
        <alpha>0.9</alpha>  
        <activeType>LRELU</activeType>    
        <inputLayers>
            <inputLayer>33</inputLayer>
        </inputLayers>
    </layer>    

   <!--------------------------------------------->
   <layer Type="MFL">
        <ID>35</ID>
        <inputLayers>
            <inputLayer>14</inputLayer>
            <inputLayer>24</inputLayer>
            <inputLayer>34</inputLayer>
        </inputLayers>
        <DATA_FUSION>DATA_CAT_N_HW_C</DATA_FUSION>
   </layer>

   <layer Type="YOLO3">
        <ID>36</ID>
        <classNum>80</classNum>
        <!--SL: softmax with loss-->
        <!--FL: Focal loss-->
        <LossType>FL</LossType>       
        <className>person;bicycle;car;motorcycle;airplane;bus;train;truck;boat;traffic light;fire hydrant;stop sign;parking meter;bench;bird;cat;dog;horse;sheep;cow;elephant;bear;zebra;giraffe;backpack;umbrella;handbag;tie;suitcase;frisbee;skis;snowboard;sports ball;kite;baseball bat;baseball glove;skateboard;surfboard;tennis racket;bottle;wine glass;cup;fork;knife;spoon;bowl;banana;apple;sandwich;orange;broccoli;carrot;hot dog;pizza;donut;cake;chair;couch;potted plant;bed;dining table;toilet;tv;laptop;mouse;remote;keyboard;cell phone;microwave;oven;toaster;sink;refrigerator;book;clock;vase;scissors;teddy bear;hair drier;toothbrush</className>
        <keepTopMatchNum>50</keepTopMatchNum>
        <keepTopMatchNum>50</keepTopMatchNum>
        <inputLayers>
            <inputLayer>35</inputLayer>
        </inputLayers>
    </layer>

</lcfCfg>
