darknet 53のネットワーク構造ノート


自分のために忘れる
このネットワーク構造はgluoncv/modelからzoo/yolo/darknet.pyデバッグ
darknet layers =  [1,		2,		8,		8,		4]
darknet channels =  [64,	128,	256,	512,	1024]

--------------------------------------------------------------------------------
        Layer (type)                                Output Shape         Param #
================================================================================
               Input                            (1, 3, 512, 703)               0
            Conv2D-1                           (1, 32, 512, 703)             864
         BatchNorm-2                           (1, 32, 512, 703)             128
         LeakyReLU-3                           (1, 32, 512, 703)               0
_conv2d				1
            Conv2D-4                           (1, 64, 256, 352)           18432
         BatchNorm-5                           (1, 64, 256, 352)             256
         LeakyReLU-6                           (1, 64, 256, 352)               0
_conv2d				2
            Conv2D-7                           (1, 32, 256, 352)            2048
         BatchNorm-8                           (1, 32, 256, 352)             128
         LeakyReLU-9                           (1, 32, 256, 352)               0
           Conv2D-10                           (1, 64, 256, 352)           18432
        BatchNorm-11                           (1, 64, 256, 352)             256
        LeakyReLU-12                           (1, 64, 256, 352)               0
DarknetBasicBlockV3-13                           (1, 64, 256, 352)               0
DarknetBasicBlockV3		3
           Conv2D-14                          (1, 128, 128, 176)           73728
        BatchNorm-15                          (1, 128, 128, 176)             512
        LeakyReLU-16                          (1, 128, 128, 176)               0
_conv2d				4
           Conv2D-17                           (1, 64, 128, 176)            8192
        BatchNorm-18                           (1, 64, 128, 176)             256
        LeakyReLU-19                           (1, 64, 128, 176)               0
           Conv2D-20                          (1, 128, 128, 176)           73728
        BatchNorm-21                          (1, 128, 128, 176)             512
        LeakyReLU-22                          (1, 128, 128, 176)               0
DarknetBasicBlockV3-23                          (1, 128, 128, 176)               0
DarknetBasicBlockV3		5
           Conv2D-24                           (1, 64, 128, 176)            8192
        BatchNorm-25                           (1, 64, 128, 176)             256
        LeakyReLU-26                           (1, 64, 128, 176)               0
           Conv2D-27                          (1, 128, 128, 176)           73728
        BatchNorm-28                          (1, 128, 128, 176)             512
        LeakyReLU-29                          (1, 128, 128, 176)               0
DarknetBasicBlockV3-30                          (1, 128, 128, 176)               0
DarknetBasicBlockV3		6
           Conv2D-31                            (1, 256, 64, 88)          294912
        BatchNorm-32                            (1, 256, 64, 88)            1024
        LeakyReLU-33                            (1, 256, 64, 88)               0
_conv2d				7
           Conv2D-34                            (1, 128, 64, 88)           32768
        BatchNorm-35                            (1, 128, 64, 88)             512
        LeakyReLU-36                            (1, 128, 64, 88)               0
           Conv2D-37                            (1, 256, 64, 88)          294912
        BatchNorm-38                            (1, 256, 64, 88)            1024
        LeakyReLU-39                            (1, 256, 64, 88)               0
DarknetBasicBlockV3-40                            (1, 256, 64, 88)               0
DarknetBasicBlockV3		8
           Conv2D-41                            (1, 128, 64, 88)           32768
        BatchNorm-42                            (1, 128, 64, 88)             512
        LeakyReLU-43                            (1, 128, 64, 88)               0
           Conv2D-44                            (1, 256, 64, 88)          294912
        BatchNorm-45                            (1, 256, 64, 88)            1024
        LeakyReLU-46                            (1, 256, 64, 88)               0
DarknetBasicBlockV3-47                            (1, 256, 64, 88)               0
DarknetBasicBlockV3		9
           Conv2D-48                            (1, 128, 64, 88)           32768
        BatchNorm-49                            (1, 128, 64, 88)             512
        LeakyReLU-50                            (1, 128, 64, 88)               0
           Conv2D-51                            (1, 256, 64, 88)          294912
        BatchNorm-52                            (1, 256, 64, 88)            1024
        LeakyReLU-53                            (1, 256, 64, 88)               0
DarknetBasicBlockV3-54                            (1, 256, 64, 88)               0
DarknetBasicBlockV3		10
           Conv2D-55                            (1, 128, 64, 88)           32768
        BatchNorm-56                            (1, 128, 64, 88)             512
        LeakyReLU-57                            (1, 128, 64, 88)               0
           Conv2D-58                            (1, 256, 64, 88)          294912
        BatchNorm-59                            (1, 256, 64, 88)            1024
        LeakyReLU-60                            (1, 256, 64, 88)               0
DarknetBasicBlockV3-61                            (1, 256, 64, 88)               0
DarknetBasicBlockV3		11
           Conv2D-62                            (1, 128, 64, 88)           32768
        BatchNorm-63                            (1, 128, 64, 88)             512
        LeakyReLU-64                            (1, 128, 64, 88)               0
           Conv2D-65                            (1, 256, 64, 88)          294912
        BatchNorm-66                            (1, 256, 64, 88)            1024
        LeakyReLU-67                            (1, 256, 64, 88)               0
DarknetBasicBlockV3-68                            (1, 256, 64, 88)               0
DarknetBasicBlockV3		12
           Conv2D-69                            (1, 128, 64, 88)           32768
        BatchNorm-70                            (1, 128, 64, 88)             512
        LeakyReLU-71                            (1, 128, 64, 88)               0
           Conv2D-72                            (1, 256, 64, 88)          294912
        BatchNorm-73                            (1, 256, 64, 88)            1024
        LeakyReLU-74                            (1, 256, 64, 88)               0
DarknetBasicBlockV3-75                            (1, 256, 64, 88)               0
DarknetBasicBlockV3		13
           Conv2D-76                            (1, 128, 64, 88)           32768
        BatchNorm-77                            (1, 128, 64, 88)             512
        LeakyReLU-78                            (1, 128, 64, 88)               0
           Conv2D-79                            (1, 256, 64, 88)          294912
        BatchNorm-80                            (1, 256, 64, 88)            1024
        LeakyReLU-81                            (1, 256, 64, 88)               0
DarknetBasicBlockV3-82                            (1, 256, 64, 88)               0
DarknetBasicBlockV3		14
           Conv2D-83                            (1, 128, 64, 88)           32768
        BatchNorm-84                            (1, 128, 64, 88)             512
        LeakyReLU-85                            (1, 128, 64, 88)               0
           Conv2D-86                            (1, 256, 64, 88)          294912
        BatchNorm-87                            (1, 256, 64, 88)            1024
        LeakyReLU-88                            (1, 256, 64, 88)               0
DarknetBasicBlockV3-89                            (1, 256, 64, 88)               0
DarknetBasicBlockV3		15
---------------------------------------------------------------------------------------------------------
           Conv2D-90                            (1, 512, 32, 44)         1179648
        BatchNorm-91                            (1, 512, 32, 44)            2048
        LeakyReLU-92                            (1, 512, 32, 44)               0
_conv2d				16
           Conv2D-93                            (1, 256, 32, 44)          131072
        BatchNorm-94                            (1, 256, 32, 44)            1024
        LeakyReLU-95                            (1, 256, 32, 44)               0
           Conv2D-96                            (1, 512, 32, 44)         1179648
        BatchNorm-97                            (1, 512, 32, 44)            2048
        LeakyReLU-98                            (1, 512, 32, 44)               0
DarknetBasicBlockV3-99                            (1, 512, 32, 44)               0
DarknetBasicBlockV3		17
          Conv2D-100                            (1, 256, 32, 44)          131072
       BatchNorm-101                            (1, 256, 32, 44)            1024
       LeakyReLU-102                            (1, 256, 32, 44)               0
          Conv2D-103                            (1, 512, 32, 44)         1179648
       BatchNorm-104                            (1, 512, 32, 44)            2048
       LeakyReLU-105                            (1, 512, 32, 44)               0
DarknetBasicBlockV3-106                            (1, 512, 32, 44)               0
DarknetBasicBlockV3		18
          Conv2D-107                            (1, 256, 32, 44)          131072
       BatchNorm-108                            (1, 256, 32, 44)            1024
       LeakyReLU-109                            (1, 256, 32, 44)               0
          Conv2D-110                            (1, 512, 32, 44)         1179648
       BatchNorm-111                            (1, 512, 32, 44)            2048
       LeakyReLU-112                            (1, 512, 32, 44)               0
DarknetBasicBlockV3-113                            (1, 512, 32, 44)               0
DarknetBasicBlockV3		19
          Conv2D-114                            (1, 256, 32, 44)          131072
       BatchNorm-115                            (1, 256, 32, 44)            1024
       LeakyReLU-116                            (1, 256, 32, 44)               0
          Conv2D-117                            (1, 512, 32, 44)         1179648
       BatchNorm-118                            (1, 512, 32, 44)            2048
       LeakyReLU-119                            (1, 512, 32, 44)               0
DarknetBasicBlockV3-120                            (1, 512, 32, 44)               0
DarknetBasicBlockV3		20
          Conv2D-121                            (1, 256, 32, 44)          131072
       BatchNorm-122                            (1, 256, 32, 44)            1024
       LeakyReLU-123                            (1, 256, 32, 44)               0
          Conv2D-124                            (1, 512, 32, 44)         1179648
       BatchNorm-125                            (1, 512, 32, 44)            2048
       LeakyReLU-126                            (1, 512, 32, 44)               0
DarknetBasicBlockV3-127                            (1, 512, 32, 44)               0
DarknetBasicBlockV3		21
          Conv2D-128                            (1, 256, 32, 44)          131072
       BatchNorm-129                            (1, 256, 32, 44)            1024
       LeakyReLU-130                            (1, 256, 32, 44)               0
          Conv2D-131                            (1, 512, 32, 44)         1179648
       BatchNorm-132                            (1, 512, 32, 44)            2048
       LeakyReLU-133                            (1, 512, 32, 44)               0
DarknetBasicBlockV3-134                            (1, 512, 32, 44)               0
DarknetBasicBlockV3		22
          Conv2D-135                            (1, 256, 32, 44)          131072
       BatchNorm-136                            (1, 256, 32, 44)            1024
       LeakyReLU-137                            (1, 256, 32, 44)               0
          Conv2D-138                            (1, 512, 32, 44)         1179648
       BatchNorm-139                            (1, 512, 32, 44)            2048
       LeakyReLU-140                            (1, 512, 32, 44)               0
DarknetBasicBlockV3-141                            (1, 512, 32, 44)               0
DarknetBasicBlockV3		23
          Conv2D-142                            (1, 256, 32, 44)          131072
       BatchNorm-143                            (1, 256, 32, 44)            1024
       LeakyReLU-144                            (1, 256, 32, 44)               0
          Conv2D-145                            (1, 512, 32, 44)         1179648
       BatchNorm-146                            (1, 512, 32, 44)            2048
       LeakyReLU-147                            (1, 512, 32, 44)               0
DarknetBasicBlockV3-148                            (1, 512, 32, 44)               0
DarknetBasicBlockV3		24
---------------------------------------------------------------------------------------------------------
          Conv2D-149                           (1, 1024, 16, 22)         4718592
       BatchNorm-150                           (1, 1024, 16, 22)            4096
       LeakyReLU-151                           (1, 1024, 16, 22)               0
_conv2d				25
          Conv2D-152                            (1, 512, 16, 22)          524288
       BatchNorm-153                            (1, 512, 16, 22)            2048
       LeakyReLU-154                            (1, 512, 16, 22)               0
          Conv2D-155                           (1, 1024, 16, 22)         4718592
       BatchNorm-156                           (1, 1024, 16, 22)            4096
       LeakyReLU-157                           (1, 1024, 16, 22)               0
DarknetBasicBlockV3-158                           (1, 1024, 16, 22)               0
DarknetBasicBlockV3		26
          Conv2D-159                            (1, 512, 16, 22)          524288
       BatchNorm-160                            (1, 512, 16, 22)            2048
       LeakyReLU-161                            (1, 512, 16, 22)               0
          Conv2D-162                           (1, 1024, 16, 22)         4718592
       BatchNorm-163                           (1, 1024, 16, 22)            4096
       LeakyReLU-164                           (1, 1024, 16, 22)               0
DarknetBasicBlockV3-165                           (1, 1024, 16, 22)               0
DarknetBasicBlockV3		27
          Conv2D-166                            (1, 512, 16, 22)          524288
       BatchNorm-167                            (1, 512, 16, 22)            2048
       LeakyReLU-168                            (1, 512, 16, 22)               0
          Conv2D-169                           (1, 1024, 16, 22)         4718592
       BatchNorm-170                           (1, 1024, 16, 22)            4096
       LeakyReLU-171                           (1, 1024, 16, 22)               0
DarknetBasicBlockV3-172                           (1, 1024, 16, 22)               0
DarknetBasicBlockV3		28
          Conv2D-173                            (1, 512, 16, 22)          524288
       BatchNorm-174                            (1, 512, 16, 22)            2048
       LeakyReLU-175                            (1, 512, 16, 22)               0
          Conv2D-176                           (1, 1024, 16, 22)         4718592
       BatchNorm-177                           (1, 1024, 16, 22)            4096
       LeakyReLU-178                           (1, 1024, 16, 22)               0
DarknetBasicBlockV3-179                           (1, 1024, 16, 22)               0
DarknetBasicBlockV3		29
---------------------------------------------------------------------------------------------------------
           Dense-180                                   (1, 1000)         1025000
       DarknetV3-181                                   (1, 1000)               0
================================================================================