ResNet与Densenet之间的关系以及区别

一、ResNet和DenseNet的之间的关系以及区别,如参数量和训练速度。

简单介绍下ResNet以及DenseNet

  • ResNet的最大的贡献是缓解深层的神经网络训练中的梯度消失问题,主要是利用shortcut的技术可以加深网络的深度而没有退化。反向传播时,梯度可能会在距离输入近的地方中产生消失的现象,既然离输入近的神经网络层较难训练,则可以将它短接到更加靠近输出的地方。因为直接映射是难以学习的,而ResNet学习的是残差,这是更容易学习的。shortcut的设计是将模块的输入和输出连接在一起,然后在元素层面上进行加(add),相当于跨过中间层,进行简单的同等映射,这样做不会产生额外的参数,不会增加计算的复杂度,而且保证至少加深后网络的性能不会比加深前差。

  • DenseNet主要是基于ResNet的shortcut的思想,不同的是采用的是一种更密集的连接方式,是一个密集卷积神经网络,以前向传播方式,将每一层与其余层密集连接。这样做的目的是可以确保各层之间的信息流动达到最大,将所有层(特征图大小匹配)直接连接在一起,注意这里是维度上相加(concat)。

  • 相对ResNet,DenseNet有以下几个显著特点:
    (1)更好地缓解了梯度消失问题
    (2)增强了特征在网络间的传播
    (3)实现和加强了特征重用
    (4)有效减少了参数数量

DenseNet参数比ResNet参数少的原因:

  1. 每一次卷积输入输出的chanenl个数要比ResNet少很多。
  2. 全连接层的参数也比ResNet少很多。

DenseNet训练速度比ResNet训练慢的原因:

  1. DenseNet的feature map比ResNet大很多,导致卷积过程的计算量比ResNet大很多,简而言之就是flops要大一些,内存的占用要大一些。
  2. 内存的访问次数要多很多,内存的访问是很慢的。因为DenseNet是一种密集的连接方式。每一层的输入是前面每一层的特征,因为每当进行新的一层计算,需要读取前面所有层,因此需要频繁读取内存。
附一下如何计算模型的参数量
from torchstat import stat
import torchvision

DenseNet = torchvision.models.densenet121()
stat(DenseNet, (3,244,244))
                                   module name   input shape  output shape     params memory(MB)             MAdd            Flops  MemRead(B)  MemWrite(B) duration[%]    MemR+W(B)
0                               features.conv0     3 244 244    64 122 122     9408.0       3.63    279,104,768.0    140,028,672.0    752064.0    3810304.0       3.20%    4562368.0
1                               features.norm0    64 122 122    64 122 122      128.0       3.63      3,810,304.0      1,905,152.0   3810816.0    3810304.0       0.80%    7621120.0
2                               features.relu0    64 122 122    64 122 122        0.0       3.63        952,576.0        952,576.0   3810304.0    3810304.0       0.00%    7620608.0
3                               features.pool0    64 122 122    64  61  61        0.0       0.91      1,905,152.0        952,576.0   3810304.0     952576.0       5.60%    4762880.0
4       features.denseblock1.denselayer1.norm1    64  61  61    64  61  61      128.0       0.91        952,576.0        476,288.0    953088.0     952576.0       0.00%    1905664.0
5       features.denseblock1.denselayer1.relu1    64  61  61    64  61  61        0.0       0.91        238,144.0        238,144.0    952576.0     952576.0       0.00%    1905152.0
6       features.denseblock1.denselayer1.conv1    64  61  61   128  61  61     8192.0       1.82     60,488,576.0     30,482,432.0    985344.0    1905152.0       0.80%    2890496.0
7       features.denseblock1.denselayer1.norm2   128  61  61   128  61  61      256.0       1.82      1,905,152.0        952,576.0   1906176.0    1905152.0       0.80%    3811328.0
8       features.denseblock1.denselayer1.relu2   128  61  61   128  61  61        0.0       1.82        476,288.0        476,288.0   1905152.0    1905152.0       0.00%    3810304.0
9       features.denseblock1.denselayer1.conv2   128  61  61    32  61  61    36864.0       0.45    274,222,816.0    137,170,944.0   2052608.0     476288.0       0.80%    2528896.0
10      features.denseblock1.denselayer2.norm1    96  61  61    96  61  61      192.0       1.36      1,428,864.0        714,432.0   1429632.0    1428864.0       0.00%    2858496.0
11      features.denseblock1.denselayer2.relu1    96  61  61    96  61  61        0.0       1.36        357,216.0        357,216.0   1428864.0    1428864.0       0.00%    2857728.0
12      features.denseblock1.denselayer2.conv1    96  61  61   128  61  61    12288.0       1.82     90,971,008.0     45,723,648.0   1478016.0    1905152.0       1.60%    3383168.0
13      features.denseblock1.denselayer2.norm2   128  61  61   128  61  61      256.0       1.82      1,905,152.0        952,576.0   1906176.0    1905152.0       0.00%    3811328.0
14      features.denseblock1.denselayer2.relu2   128  61  61   128  61  61        0.0       1.82        476,288.0        476,288.0   1905152.0    1905152.0       0.80%    3810304.0
15      features.denseblock1.denselayer2.conv2   128  61  61    32  61  61    36864.0       0.45    274,222,816.0    137,170,944.0   2052608.0     476288.0       0.80%    2528896.0
16      features.denseblock1.denselayer3.norm1   128  61  61   128  61  61      256.0       1.82      1,905,152.0        952,576.0   1906176.0    1905152.0       0.80%    3811328.0
17      features.denseblock1.denselayer3.relu1   128  61  61   128  61  61        0.0       1.82        476,288.0        476,288.0   1905152.0    1905152.0       0.00%    3810304.0
18      features.denseblock1.denselayer3.conv1   128  61  61   128  61  61    16384.0       1.82    121,453,440.0     60,964,864.0   1970688.0    1905152.0       1.60%    3875840.0
19      features.denseblock1.denselayer3.norm2   128  61  61   128  61  61      256.0       1.82      1,905,152.0        952,576.0   1906176.0    1905152.0       0.00%    3811328.0
20      features.denseblock1.denselayer3.relu2   128  61  61   128  61  61        0.0       1.82        476,288.0        476,288.0   1905152.0    1905152.0       0.80%    3810304.0
21      features.denseblock1.denselayer3.conv2   128  61  61    32  61  61    36864.0       0.45    274,222,816.0    137,170,944.0   2052608.0     476288.0       0.80%    2528896.0
22      features.denseblock1.denselayer4.norm1   160  61  61   160  61  61      320.0       2.27      2,381,440.0      1,190,720.0   2382720.0    2381440.0       0.00%    4764160.0
23      features.denseblock1.denselayer4.relu1   160  61  61   160  61  61        0.0       2.27        595,360.0        595,360.0   2381440.0    2381440.0       0.00%    4762880.0
24      features.denseblock1.denselayer4.conv1   160  61  61   128  61  61    20480.0       1.82    151,935,872.0     76,206,080.0   2463360.0    1905152.0       0.80%    4368512.0
25      features.denseblock1.denselayer4.norm2   128  61  61   128  61  61      256.0       1.82      1,905,152.0        952,576.0   1906176.0    1905152.0       0.80%    3811328.0
26      features.denseblock1.denselayer4.relu2   128  61  61   128  61  61        0.0       1.82        476,288.0        476,288.0   1905152.0    1905152.0       0.00%    3810304.0
27      features.denseblock1.denselayer4.conv2   128  61  61    32  61  61    36864.0       0.45    274,222,816.0    137,170,944.0   2052608.0     476288.0       0.80%    2528896.0
28      features.denseblock1.denselayer5.norm1   192  61  61   192  61  61      384.0       2.73      2,857,728.0      1,428,864.0   2859264.0    2857728.0       0.80%    5716992.0
29      features.denseblock1.denselayer5.relu1   192  61  61   192  61  61        0.0       2.73        714,432.0        714,432.0   2857728.0    2857728.0       0.80%    5715456.0
30      features.denseblock1.denselayer5.conv1   192  61  61   128  61  61    24576.0       1.82    182,418,304.0     91,447,296.0   2956032.0    1905152.0       1.60%    4861184.0
31      features.denseblock1.denselayer5.norm2   128  61  61   128  61  61      256.0       1.82      1,905,152.0        952,576.0   1906176.0    1905152.0       0.00%    3811328.0
32      features.denseblock1.denselayer5.relu2   128  61  61   128  61  61        0.0       1.82        476,288.0        476,288.0   1905152.0    1905152.0       0.80%    3810304.0
33      features.denseblock1.denselayer5.conv2   128  61  61    32  61  61    36864.0       0.45    274,222,816.0    137,170,944.0   2052608.0     476288.0       0.80%    2528896.0
34      features.denseblock1.denselayer6.norm1   224  61  61   224  61  61      448.0       3.18      3,334,016.0      1,667,008.0   3335808.0    3334016.0       0.80%    6669824.0
35      features.denseblock1.denselayer6.relu1   224  61  61   224  61  61        0.0       3.18        833,504.0        833,504.0   3334016.0    3334016.0       0.80%    6668032.0
36      features.denseblock1.denselayer6.conv1   224  61  61   128  61  61    28672.0       1.82    212,900,736.0    106,688,512.0   3448704.0    1905152.0       1.60%    5353856.0
37      features.denseblock1.denselayer6.norm2   128  61  61   128  61  61      256.0       1.82      1,905,152.0        952,576.0   1906176.0    1905152.0       0.80%    3811328.0
38      features.denseblock1.denselayer6.relu2   128  61  61   128  61  61        0.0       1.82        476,288.0        476,288.0   1905152.0    1905152.0       0.00%    3810304.0
39      features.denseblock1.denselayer6.conv2   128  61  61    32  61  61    36864.0       0.45    274,222,816.0    137,170,944.0   2052608.0     476288.0       1.60%    2528896.0
40                   features.transition1.norm   256  61  61   256  61  61      512.0       3.63      3,810,304.0      1,905,152.0   3812352.0    3810304.0       0.80%    7622656.0
41                   features.transition1.relu   256  61  61   256  61  61        0.0       3.63        952,576.0        952,576.0   3810304.0    3810304.0       0.00%    7620608.0
42                   features.transition1.conv   256  61  61   128  61  61    32768.0       1.82    243,383,168.0    121,929,728.0   3941376.0    1905152.0       2.40%    5846528.0
43                   features.transition1.pool   128  61  61   128  30  30        0.0       0.44        460,800.0        476,288.0   1905152.0     460800.0       1.60%    2365952.0
44      features.denseblock2.denselayer1.norm1   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
45      features.denseblock2.denselayer1.relu1   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
46      features.denseblock2.denselayer1.conv1   128  30  30   128  30  30    16384.0       0.44     29,376,000.0     14,745,600.0    526336.0     460800.0       0.80%     987136.0
47      features.denseblock2.denselayer1.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
48      features.denseblock2.denselayer1.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
49      features.denseblock2.denselayer1.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.80%     723456.0
50      features.denseblock2.denselayer2.norm1   160  30  30   160  30  30      320.0       0.55        576,000.0        288,000.0    577280.0     576000.0       0.00%    1153280.0
51      features.denseblock2.denselayer2.relu1   160  30  30   160  30  30        0.0       0.55        144,000.0        144,000.0    576000.0     576000.0       0.00%    1152000.0
52      features.denseblock2.denselayer2.conv1   160  30  30   128  30  30    20480.0       0.44     36,748,800.0     18,432,000.0    657920.0     460800.0       0.00%    1118720.0
53      features.denseblock2.denselayer2.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
54      features.denseblock2.denselayer2.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.80%     921600.0
55      features.denseblock2.denselayer2.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.00%     723456.0
56      features.denseblock2.denselayer3.norm1   192  30  30   192  30  30      384.0       0.66        691,200.0        345,600.0    692736.0     691200.0       0.80%    1383936.0
57      features.denseblock2.denselayer3.relu1   192  30  30   192  30  30        0.0       0.66        172,800.0        172,800.0    691200.0     691200.0       0.00%    1382400.0
58      features.denseblock2.denselayer3.conv1   192  30  30   128  30  30    24576.0       0.44     44,121,600.0     22,118,400.0    789504.0     460800.0       0.00%    1250304.0
59      features.denseblock2.denselayer3.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.80%     922624.0
60      features.denseblock2.denselayer3.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
61      features.denseblock2.denselayer3.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.00%     723456.0
62      features.denseblock2.denselayer4.norm1   224  30  30   224  30  30      448.0       0.77        806,400.0        403,200.0    808192.0     806400.0       0.80%    1614592.0
63      features.denseblock2.denselayer4.relu1   224  30  30   224  30  30        0.0       0.77        201,600.0        201,600.0    806400.0     806400.0       0.00%    1612800.0
64      features.denseblock2.denselayer4.conv1   224  30  30   128  30  30    28672.0       0.44     51,494,400.0     25,804,800.0    921088.0     460800.0       0.80%    1381888.0
65      features.denseblock2.denselayer4.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
66      features.denseblock2.denselayer4.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
67      features.denseblock2.denselayer4.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.00%     723456.0
68      features.denseblock2.denselayer5.norm1   256  30  30   256  30  30      512.0       0.88        921,600.0        460,800.0    923648.0     921600.0       0.00%    1845248.0
69      features.denseblock2.denselayer5.relu1   256  30  30   256  30  30        0.0       0.88        230,400.0        230,400.0    921600.0     921600.0       0.00%    1843200.0
70      features.denseblock2.denselayer5.conv1   256  30  30   128  30  30    32768.0       0.44     58,867,200.0     29,491,200.0   1052672.0     460800.0       0.00%    1513472.0
71      features.denseblock2.denselayer5.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
72      features.denseblock2.denselayer5.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.80%     921600.0
73      features.denseblock2.denselayer5.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.00%     723456.0
74      features.denseblock2.denselayer6.norm1   288  30  30   288  30  30      576.0       0.99      1,036,800.0        518,400.0   1039104.0    1036800.0       0.80%    2075904.0
75      features.denseblock2.denselayer6.relu1   288  30  30   288  30  30        0.0       0.99        259,200.0        259,200.0   1036800.0    1036800.0       0.00%    2073600.0
76      features.denseblock2.denselayer6.conv1   288  30  30   128  30  30    36864.0       0.44     66,240,000.0     33,177,600.0   1184256.0     460800.0       0.80%    1645056.0
77      features.denseblock2.denselayer6.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
78      features.denseblock2.denselayer6.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
79      features.denseblock2.denselayer6.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.80%     723456.0
80      features.denseblock2.denselayer7.norm1   320  30  30   320  30  30      640.0       1.10      1,152,000.0        576,000.0   1154560.0    1152000.0       0.00%    2306560.0
81      features.denseblock2.denselayer7.relu1   320  30  30   320  30  30        0.0       1.10        288,000.0        288,000.0   1152000.0    1152000.0       0.00%    2304000.0
82      features.denseblock2.denselayer7.conv1   320  30  30   128  30  30    40960.0       0.44     73,612,800.0     36,864,000.0   1315840.0     460800.0       0.00%    1776640.0
83      features.denseblock2.denselayer7.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
84      features.denseblock2.denselayer7.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
85      features.denseblock2.denselayer7.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.00%     723456.0
86      features.denseblock2.denselayer8.norm1   352  30  30   352  30  30      704.0       1.21      1,267,200.0        633,600.0   1270016.0    1267200.0       0.00%    2537216.0
87      features.denseblock2.denselayer8.relu1   352  30  30   352  30  30        0.0       1.21        316,800.0        316,800.0   1267200.0    1267200.0       0.00%    2534400.0
88      features.denseblock2.denselayer8.conv1   352  30  30   128  30  30    45056.0       0.44     80,985,600.0     40,550,400.0   1447424.0     460800.0       0.80%    1908224.0
89      features.denseblock2.denselayer8.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
90      features.denseblock2.denselayer8.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.80%     921600.0
91      features.denseblock2.denselayer8.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.00%     723456.0
92      features.denseblock2.denselayer9.norm1   384  30  30   384  30  30      768.0       1.32      1,382,400.0        691,200.0   1385472.0    1382400.0       0.80%    2767872.0
93      features.denseblock2.denselayer9.relu1   384  30  30   384  30  30        0.0       1.32        345,600.0        345,600.0   1382400.0    1382400.0       0.00%    2764800.0
94      features.denseblock2.denselayer9.conv1   384  30  30   128  30  30    49152.0       0.44     88,358,400.0     44,236,800.0   1579008.0     460800.0       0.80%    2039808.0
95      features.denseblock2.denselayer9.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
96      features.denseblock2.denselayer9.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
97      features.denseblock2.denselayer9.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.80%     723456.0
98     features.denseblock2.denselayer10.norm1   416  30  30   416  30  30      832.0       1.43      1,497,600.0        748,800.0   1500928.0    1497600.0       0.80%    2998528.0
99     features.denseblock2.denselayer10.relu1   416  30  30   416  30  30        0.0       1.43        374,400.0        374,400.0   1497600.0    1497600.0       0.00%    2995200.0
100    features.denseblock2.denselayer10.conv1   416  30  30   128  30  30    53248.0       0.44     95,731,200.0     47,923,200.0   1710592.0     460800.0       0.80%    2171392.0
101    features.denseblock2.denselayer10.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
102    features.denseblock2.denselayer10.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
103    features.denseblock2.denselayer10.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.80%     723456.0
104    features.denseblock2.denselayer11.norm1   448  30  30   448  30  30      896.0       1.54      1,612,800.0        806,400.0   1616384.0    1612800.0       0.00%    3229184.0
105    features.denseblock2.denselayer11.relu1   448  30  30   448  30  30        0.0       1.54        403,200.0        403,200.0   1612800.0    1612800.0       0.00%    3225600.0
106    features.denseblock2.denselayer11.conv1   448  30  30   128  30  30    57344.0       0.44    103,104,000.0     51,609,600.0   1842176.0     460800.0       0.80%    2302976.0
107    features.denseblock2.denselayer11.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.80%     922624.0
108    features.denseblock2.denselayer11.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
109    features.denseblock2.denselayer11.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.00%     723456.0
110    features.denseblock2.denselayer12.norm1   480  30  30   480  30  30      960.0       1.65      1,728,000.0        864,000.0   1731840.0    1728000.0       0.00%    3459840.0
111    features.denseblock2.denselayer12.relu1   480  30  30   480  30  30        0.0       1.65        432,000.0        432,000.0   1728000.0    1728000.0       0.80%    3456000.0
112    features.denseblock2.denselayer12.conv1   480  30  30   128  30  30    61440.0       0.44    110,476,800.0     55,296,000.0   1973760.0     460800.0       0.80%    2434560.0
113    features.denseblock2.denselayer12.norm2   128  30  30   128  30  30      256.0       0.44        460,800.0        230,400.0    461824.0     460800.0       0.00%     922624.0
114    features.denseblock2.denselayer12.relu2   128  30  30   128  30  30        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.00%     921600.0
115    features.denseblock2.denselayer12.conv2   128  30  30    32  30  30    36864.0       0.11     66,326,400.0     33,177,600.0    608256.0     115200.0       0.00%     723456.0
116                  features.transition2.norm   512  30  30   512  30  30     1024.0       1.76      1,843,200.0        921,600.0   1847296.0    1843200.0       0.00%    3690496.0
117                  features.transition2.relu   512  30  30   512  30  30        0.0       1.76        460,800.0        460,800.0   1843200.0    1843200.0       0.00%    3686400.0
118                  features.transition2.conv   512  30  30   256  30  30   131072.0       0.88    235,699,200.0    117,964,800.0   2367488.0     921600.0       0.80%    3289088.0
119                  features.transition2.pool   256  30  30   256  15  15        0.0       0.22        230,400.0        230,400.0    921600.0     230400.0       0.00%    1152000.0
120     features.denseblock3.denselayer1.norm1   256  15  15   256  15  15      512.0       0.22        230,400.0        115,200.0    232448.0     230400.0       0.00%     462848.0
121     features.denseblock3.denselayer1.relu1   256  15  15   256  15  15        0.0       0.22         57,600.0         57,600.0    230400.0     230400.0       0.00%     460800.0
122     features.denseblock3.denselayer1.conv1   256  15  15   128  15  15    32768.0       0.11     14,716,800.0      7,372,800.0    361472.0     115200.0       0.00%     476672.0
123     features.denseblock3.denselayer1.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
124     features.denseblock3.denselayer1.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
125     features.denseblock3.denselayer1.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
126     features.denseblock3.denselayer2.norm1   288  15  15   288  15  15      576.0       0.25        259,200.0        129,600.0    261504.0     259200.0       0.80%     520704.0
127     features.denseblock3.denselayer2.relu1   288  15  15   288  15  15        0.0       0.25         64,800.0         64,800.0    259200.0     259200.0       0.00%     518400.0
128     features.denseblock3.denselayer2.conv1   288  15  15   128  15  15    36864.0       0.11     16,560,000.0      8,294,400.0    406656.0     115200.0       0.00%     521856.0
129     features.denseblock3.denselayer2.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
130     features.denseblock3.denselayer2.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
131     features.denseblock3.denselayer2.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.80%     291456.0
132     features.denseblock3.denselayer3.norm1   320  15  15   320  15  15      640.0       0.27        288,000.0        144,000.0    290560.0     288000.0       0.00%     578560.0
133     features.denseblock3.denselayer3.relu1   320  15  15   320  15  15        0.0       0.27         72,000.0         72,000.0    288000.0     288000.0       0.00%     576000.0
134     features.denseblock3.denselayer3.conv1   320  15  15   128  15  15    40960.0       0.11     18,403,200.0      9,216,000.0    451840.0     115200.0       0.80%     567040.0
135     features.denseblock3.denselayer3.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
136     features.denseblock3.denselayer3.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
137     features.denseblock3.denselayer3.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
138     features.denseblock3.denselayer4.norm1   352  15  15   352  15  15      704.0       0.30        316,800.0        158,400.0    319616.0     316800.0       0.00%     636416.0
139     features.denseblock3.denselayer4.relu1   352  15  15   352  15  15        0.0       0.30         79,200.0         79,200.0    316800.0     316800.0       0.00%     633600.0
140     features.denseblock3.denselayer4.conv1   352  15  15   128  15  15    45056.0       0.11     20,246,400.0     10,137,600.0    497024.0     115200.0       0.00%     612224.0
141     features.denseblock3.denselayer4.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
142     features.denseblock3.denselayer4.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
143     features.denseblock3.denselayer4.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.80%     291456.0
144     features.denseblock3.denselayer5.norm1   384  15  15   384  15  15      768.0       0.33        345,600.0        172,800.0    348672.0     345600.0       0.00%     694272.0
145     features.denseblock3.denselayer5.relu1   384  15  15   384  15  15        0.0       0.33         86,400.0         86,400.0    345600.0     345600.0       0.00%     691200.0
146     features.denseblock3.denselayer5.conv1   384  15  15   128  15  15    49152.0       0.11     22,089,600.0     11,059,200.0    542208.0     115200.0       0.80%     657408.0
147     features.denseblock3.denselayer5.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
148     features.denseblock3.denselayer5.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
149     features.denseblock3.denselayer5.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
150     features.denseblock3.denselayer6.norm1   416  15  15   416  15  15      832.0       0.36        374,400.0        187,200.0    377728.0     374400.0       0.00%     752128.0
151     features.denseblock3.denselayer6.relu1   416  15  15   416  15  15        0.0       0.36         93,600.0         93,600.0    374400.0     374400.0       0.00%     748800.0
152     features.denseblock3.denselayer6.conv1   416  15  15   128  15  15    53248.0       0.11     23,932,800.0     11,980,800.0    587392.0     115200.0       0.00%     702592.0
153     features.denseblock3.denselayer6.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
154     features.denseblock3.denselayer6.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
155     features.denseblock3.denselayer6.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
156     features.denseblock3.denselayer7.norm1   448  15  15   448  15  15      896.0       0.38        403,200.0        201,600.0    406784.0     403200.0       0.80%     809984.0
157     features.denseblock3.denselayer7.relu1   448  15  15   448  15  15        0.0       0.38        100,800.0        100,800.0    403200.0     403200.0       0.00%     806400.0
158     features.denseblock3.denselayer7.conv1   448  15  15   128  15  15    57344.0       0.11     25,776,000.0     12,902,400.0    632576.0     115200.0       0.00%     747776.0
159     features.denseblock3.denselayer7.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
160     features.denseblock3.denselayer7.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
161     features.denseblock3.denselayer7.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
162     features.denseblock3.denselayer8.norm1   480  15  15   480  15  15      960.0       0.41        432,000.0        216,000.0    435840.0     432000.0       0.80%     867840.0
163     features.denseblock3.denselayer8.relu1   480  15  15   480  15  15        0.0       0.41        108,000.0        108,000.0    432000.0     432000.0       0.00%     864000.0
164     features.denseblock3.denselayer8.conv1   480  15  15   128  15  15    61440.0       0.11     27,619,200.0     13,824,000.0    677760.0     115200.0       0.00%     792960.0
165     features.denseblock3.denselayer8.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
166     features.denseblock3.denselayer8.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
167     features.denseblock3.denselayer8.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
168     features.denseblock3.denselayer9.norm1   512  15  15   512  15  15     1024.0       0.44        460,800.0        230,400.0    464896.0     460800.0       0.00%     925696.0
169     features.denseblock3.denselayer9.relu1   512  15  15   512  15  15        0.0       0.44        115,200.0        115,200.0    460800.0     460800.0       0.80%     921600.0
170     features.denseblock3.denselayer9.conv1   512  15  15   128  15  15    65536.0       0.11     29,462,400.0     14,745,600.0    722944.0     115200.0       0.00%     838144.0
171     features.denseblock3.denselayer9.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
172     features.denseblock3.denselayer9.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.80%     230400.0
173     features.denseblock3.denselayer9.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
174    features.denseblock3.denselayer10.norm1   544  15  15   544  15  15     1088.0       0.47        489,600.0        244,800.0    493952.0     489600.0       0.00%     983552.0
175    features.denseblock3.denselayer10.relu1   544  15  15   544  15  15        0.0       0.47        122,400.0        122,400.0    489600.0     489600.0       0.00%     979200.0
176    features.denseblock3.denselayer10.conv1   544  15  15   128  15  15    69632.0       0.11     31,305,600.0     15,667,200.0    768128.0     115200.0       0.00%     883328.0
177    features.denseblock3.denselayer10.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
178    features.denseblock3.denselayer10.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
179    features.denseblock3.denselayer10.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
180    features.denseblock3.denselayer11.norm1   576  15  15   576  15  15     1152.0       0.49        518,400.0        259,200.0    523008.0     518400.0       0.00%    1041408.0
181    features.denseblock3.denselayer11.relu1   576  15  15   576  15  15        0.0       0.49        129,600.0        129,600.0    518400.0     518400.0       0.00%    1036800.0
182    features.denseblock3.denselayer11.conv1   576  15  15   128  15  15    73728.0       0.11     33,148,800.0     16,588,800.0    813312.0     115200.0       0.00%     928512.0
183    features.denseblock3.denselayer11.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
184    features.denseblock3.denselayer11.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
185    features.denseblock3.denselayer11.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
186    features.denseblock3.denselayer12.norm1   608  15  15   608  15  15     1216.0       0.52        547,200.0        273,600.0    552064.0     547200.0       0.80%    1099264.0
187    features.denseblock3.denselayer12.relu1   608  15  15   608  15  15        0.0       0.52        136,800.0        136,800.0    547200.0     547200.0       0.00%    1094400.0
188    features.denseblock3.denselayer12.conv1   608  15  15   128  15  15    77824.0       0.11     34,992,000.0     17,510,400.0    858496.0     115200.0       0.00%     973696.0
189    features.denseblock3.denselayer12.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.80%     231424.0
190    features.denseblock3.denselayer12.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
191    features.denseblock3.denselayer12.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
192    features.denseblock3.denselayer13.norm1   640  15  15   640  15  15     1280.0       0.55        576,000.0        288,000.0    581120.0     576000.0       0.80%    1157120.0
193    features.denseblock3.denselayer13.relu1   640  15  15   640  15  15        0.0       0.55        144,000.0        144,000.0    576000.0     576000.0       0.00%    1152000.0
194    features.denseblock3.denselayer13.conv1   640  15  15   128  15  15    81920.0       0.11     36,835,200.0     18,432,000.0    903680.0     115200.0       0.00%    1018880.0
195    features.denseblock3.denselayer13.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
196    features.denseblock3.denselayer13.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
197    features.denseblock3.denselayer13.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
198    features.denseblock3.denselayer14.norm1   672  15  15   672  15  15     1344.0       0.58        604,800.0        302,400.0    610176.0     604800.0       0.00%    1214976.0
199    features.denseblock3.denselayer14.relu1   672  15  15   672  15  15        0.0       0.58        151,200.0        151,200.0    604800.0     604800.0       0.80%    1209600.0
200    features.denseblock3.denselayer14.conv1   672  15  15   128  15  15    86016.0       0.11     38,678,400.0     19,353,600.0    948864.0     115200.0       0.00%    1064064.0
201    features.denseblock3.denselayer14.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.80%     231424.0
202    features.denseblock3.denselayer14.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
203    features.denseblock3.denselayer14.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
204    features.denseblock3.denselayer15.norm1   704  15  15   704  15  15     1408.0       0.60        633,600.0        316,800.0    639232.0     633600.0       0.80%    1272832.0
205    features.denseblock3.denselayer15.relu1   704  15  15   704  15  15        0.0       0.60        158,400.0        158,400.0    633600.0     633600.0       0.00%    1267200.0
206    features.denseblock3.denselayer15.conv1   704  15  15   128  15  15    90112.0       0.11     40,521,600.0     20,275,200.0    994048.0     115200.0       0.80%    1109248.0
207    features.denseblock3.denselayer15.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
208    features.denseblock3.denselayer15.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
209    features.denseblock3.denselayer15.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
210    features.denseblock3.denselayer16.norm1   736  15  15   736  15  15     1472.0       0.63        662,400.0        331,200.0    668288.0     662400.0       0.00%    1330688.0
211    features.denseblock3.denselayer16.relu1   736  15  15   736  15  15        0.0       0.63        165,600.0        165,600.0    662400.0     662400.0       0.00%    1324800.0
212    features.denseblock3.denselayer16.conv1   736  15  15   128  15  15    94208.0       0.11     42,364,800.0     21,196,800.0   1039232.0     115200.0       0.80%    1154432.0
213    features.denseblock3.denselayer16.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
214    features.denseblock3.denselayer16.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
215    features.denseblock3.denselayer16.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.80%     291456.0
216    features.denseblock3.denselayer17.norm1   768  15  15   768  15  15     1536.0       0.66        691,200.0        345,600.0    697344.0     691200.0       0.00%    1388544.0
217    features.denseblock3.denselayer17.relu1   768  15  15   768  15  15        0.0       0.66        172,800.0        172,800.0    691200.0     691200.0       0.80%    1382400.0
218    features.denseblock3.denselayer17.conv1   768  15  15   128  15  15    98304.0       0.11     44,208,000.0     22,118,400.0   1084416.0     115200.0       0.00%    1199616.0
219    features.denseblock3.denselayer17.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
220    features.denseblock3.denselayer17.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
221    features.denseblock3.denselayer17.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
222    features.denseblock3.denselayer18.norm1   800  15  15   800  15  15     1600.0       0.69        720,000.0        360,000.0    726400.0     720000.0       0.80%    1446400.0
223    features.denseblock3.denselayer18.relu1   800  15  15   800  15  15        0.0       0.69        180,000.0        180,000.0    720000.0     720000.0       0.00%    1440000.0
224    features.denseblock3.denselayer18.conv1   800  15  15   128  15  15   102400.0       0.11     46,051,200.0     23,040,000.0   1129600.0     115200.0       0.80%    1244800.0
225    features.denseblock3.denselayer18.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
226    features.denseblock3.denselayer18.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
227    features.denseblock3.denselayer18.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
228    features.denseblock3.denselayer19.norm1   832  15  15   832  15  15     1664.0       0.71        748,800.0        374,400.0    755456.0     748800.0       0.00%    1504256.0
229    features.denseblock3.denselayer19.relu1   832  15  15   832  15  15        0.0       0.71        187,200.0        187,200.0    748800.0     748800.0       0.00%    1497600.0
230    features.denseblock3.denselayer19.conv1   832  15  15   128  15  15   106496.0       0.11     47,894,400.0     23,961,600.0   1174784.0     115200.0       0.80%    1289984.0
231    features.denseblock3.denselayer19.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
232    features.denseblock3.denselayer19.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.80%     230400.0
233    features.denseblock3.denselayer19.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
234    features.denseblock3.denselayer20.norm1   864  15  15   864  15  15     1728.0       0.74        777,600.0        388,800.0    784512.0     777600.0       0.00%    1562112.0
235    features.denseblock3.denselayer20.relu1   864  15  15   864  15  15        0.0       0.74        194,400.0        194,400.0    777600.0     777600.0       0.80%    1555200.0
236    features.denseblock3.denselayer20.conv1   864  15  15   128  15  15   110592.0       0.11     49,737,600.0     24,883,200.0   1219968.0     115200.0       0.00%    1335168.0
237    features.denseblock3.denselayer20.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.80%     231424.0
238    features.denseblock3.denselayer20.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
239    features.denseblock3.denselayer20.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
240    features.denseblock3.denselayer21.norm1   896  15  15   896  15  15     1792.0       0.77        806,400.0        403,200.0    813568.0     806400.0       0.80%    1619968.0
241    features.denseblock3.denselayer21.relu1   896  15  15   896  15  15        0.0       0.77        201,600.0        201,600.0    806400.0     806400.0       0.00%    1612800.0
242    features.denseblock3.denselayer21.conv1   896  15  15   128  15  15   114688.0       0.11     51,580,800.0     25,804,800.0   1265152.0     115200.0       0.80%    1380352.0
243    features.denseblock3.denselayer21.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
244    features.denseblock3.denselayer21.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
245    features.denseblock3.denselayer21.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.80%     291456.0
246    features.denseblock3.denselayer22.norm1   928  15  15   928  15  15     1856.0       0.80        835,200.0        417,600.0    842624.0     835200.0       0.00%    1677824.0
247    features.denseblock3.denselayer22.relu1   928  15  15   928  15  15        0.0       0.80        208,800.0        208,800.0    835200.0     835200.0       0.00%    1670400.0
248    features.denseblock3.denselayer22.conv1   928  15  15   128  15  15   118784.0       0.11     53,424,000.0     26,726,400.0   1310336.0     115200.0       0.80%    1425536.0
249    features.denseblock3.denselayer22.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
250    features.denseblock3.denselayer22.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.80%     230400.0
251    features.denseblock3.denselayer22.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
252    features.denseblock3.denselayer23.norm1   960  15  15   960  15  15     1920.0       0.82        864,000.0        432,000.0    871680.0     864000.0       0.00%    1735680.0
253    features.denseblock3.denselayer23.relu1   960  15  15   960  15  15        0.0       0.82        216,000.0        216,000.0    864000.0     864000.0       0.00%    1728000.0
254    features.denseblock3.denselayer23.conv1   960  15  15   128  15  15   122880.0       0.11     55,267,200.0     27,648,000.0   1355520.0     115200.0       0.00%    1470720.0
255    features.denseblock3.denselayer23.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
256    features.denseblock3.denselayer23.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
257    features.denseblock3.denselayer23.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
258    features.denseblock3.denselayer24.norm1   992  15  15   992  15  15     1984.0       0.85        892,800.0        446,400.0    900736.0     892800.0       0.00%    1793536.0
259    features.denseblock3.denselayer24.relu1   992  15  15   992  15  15        0.0       0.85        223,200.0        223,200.0    892800.0     892800.0       0.00%    1785600.0
260    features.denseblock3.denselayer24.conv1   992  15  15   128  15  15   126976.0       0.11     57,110,400.0     28,569,600.0   1400704.0     115200.0       0.80%    1515904.0
261    features.denseblock3.denselayer24.norm2   128  15  15   128  15  15      256.0       0.11        115,200.0         57,600.0    116224.0     115200.0       0.00%     231424.0
262    features.denseblock3.denselayer24.relu2   128  15  15   128  15  15        0.0       0.11         28,800.0         28,800.0    115200.0     115200.0       0.00%     230400.0
263    features.denseblock3.denselayer24.conv2   128  15  15    32  15  15    36864.0       0.03     16,581,600.0      8,294,400.0    262656.0      28800.0       0.00%     291456.0
264                  features.transition3.norm  1024  15  15  1024  15  15     2048.0       0.88        921,600.0        460,800.0    929792.0     921600.0       0.80%    1851392.0
265                  features.transition3.relu  1024  15  15  1024  15  15        0.0       0.88        230,400.0        230,400.0    921600.0     921600.0       0.00%    1843200.0
266                  features.transition3.conv  1024  15  15   512  15  15   524288.0       0.44    235,814,400.0    117,964,800.0   3018752.0     460800.0       1.60%    3479552.0
267                  features.transition3.pool   512  15  15   512   7   7        0.0       0.10        100,352.0        115,200.0    460800.0     100352.0       0.00%     561152.0
268     features.denseblock4.denselayer1.norm1   512   7   7   512   7   7     1024.0       0.10        100,352.0         50,176.0    104448.0     100352.0       0.00%     204800.0
269     features.denseblock4.denselayer1.relu1   512   7   7   512   7   7        0.0       0.10         25,088.0         25,088.0    100352.0     100352.0       0.80%     200704.0
270     features.denseblock4.denselayer1.conv1   512   7   7   128   7   7    65536.0       0.02      6,416,256.0      3,211,264.0    362496.0      25088.0       0.00%     387584.0
271     features.denseblock4.denselayer1.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
272     features.denseblock4.denselayer1.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
273     features.denseblock4.denselayer1.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       4.00%     178816.0
274     features.denseblock4.denselayer2.norm1   544   7   7   544   7   7     1088.0       0.10        106,624.0         53,312.0    110976.0     106624.0       0.00%     217600.0
275     features.denseblock4.denselayer2.relu1   544   7   7   544   7   7        0.0       0.10         26,656.0         26,656.0    106624.0     106624.0       0.00%     213248.0
276     features.denseblock4.denselayer2.conv1   544   7   7   128   7   7    69632.0       0.02      6,817,664.0      3,411,968.0    385152.0      25088.0       0.00%     410240.0
277     features.denseblock4.denselayer2.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
278     features.denseblock4.denselayer2.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
279     features.denseblock4.denselayer2.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.80%     178816.0
280     features.denseblock4.denselayer3.norm1   576   7   7   576   7   7     1152.0       0.11        112,896.0         56,448.0    117504.0     112896.0       0.00%     230400.0
281     features.denseblock4.denselayer3.relu1   576   7   7   576   7   7        0.0       0.11         28,224.0         28,224.0    112896.0     112896.0       0.00%     225792.0
282     features.denseblock4.denselayer3.conv1   576   7   7   128   7   7    73728.0       0.02      7,219,072.0      3,612,672.0    407808.0      25088.0       0.00%     432896.0
283     features.denseblock4.denselayer3.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
284     features.denseblock4.denselayer3.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
285     features.denseblock4.denselayer3.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
286     features.denseblock4.denselayer4.norm1   608   7   7   608   7   7     1216.0       0.11        119,168.0         59,584.0    124032.0     119168.0       0.00%     243200.0
287     features.denseblock4.denselayer4.relu1   608   7   7   608   7   7        0.0       0.11         29,792.0         29,792.0    119168.0     119168.0       0.00%     238336.0
288     features.denseblock4.denselayer4.conv1   608   7   7   128   7   7    77824.0       0.02      7,620,480.0      3,813,376.0    430464.0      25088.0       0.80%     455552.0
289     features.denseblock4.denselayer4.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
290     features.denseblock4.denselayer4.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
291     features.denseblock4.denselayer4.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
292     features.denseblock4.denselayer5.norm1   640   7   7   640   7   7     1280.0       0.12        125,440.0         62,720.0    130560.0     125440.0       0.00%     256000.0
293     features.denseblock4.denselayer5.relu1   640   7   7   640   7   7        0.0       0.12         31,360.0         31,360.0    125440.0     125440.0       0.00%     250880.0
294     features.denseblock4.denselayer5.conv1   640   7   7   128   7   7    81920.0       0.02      8,021,888.0      4,014,080.0    453120.0      25088.0       0.00%     478208.0
295     features.denseblock4.denselayer5.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
296     features.denseblock4.denselayer5.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.80%      50176.0
297     features.denseblock4.denselayer5.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
298     features.denseblock4.denselayer6.norm1   672   7   7   672   7   7     1344.0       0.13        131,712.0         65,856.0    137088.0     131712.0       0.00%     268800.0
299     features.denseblock4.denselayer6.relu1   672   7   7   672   7   7        0.0       0.13         32,928.0         32,928.0    131712.0     131712.0       0.00%     263424.0
300     features.denseblock4.denselayer6.conv1   672   7   7   128   7   7    86016.0       0.02      8,423,296.0      4,214,784.0    475776.0      25088.0       0.80%     500864.0
301     features.denseblock4.denselayer6.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
302     features.denseblock4.denselayer6.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
303     features.denseblock4.denselayer6.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
304     features.denseblock4.denselayer7.norm1   704   7   7   704   7   7     1408.0       0.13        137,984.0         68,992.0    143616.0     137984.0       0.00%     281600.0
305     features.denseblock4.denselayer7.relu1   704   7   7   704   7   7        0.0       0.13         34,496.0         34,496.0    137984.0     137984.0       0.00%     275968.0
306     features.denseblock4.denselayer7.conv1   704   7   7   128   7   7    90112.0       0.02      8,824,704.0      4,415,488.0    498432.0      25088.0       0.00%     523520.0
307     features.denseblock4.denselayer7.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
308     features.denseblock4.denselayer7.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
309     features.denseblock4.denselayer7.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.80%     178816.0
310     features.denseblock4.denselayer8.norm1   736   7   7   736   7   7     1472.0       0.14        144,256.0         72,128.0    150144.0     144256.0       0.00%     294400.0
311     features.denseblock4.denselayer8.relu1   736   7   7   736   7   7        0.0       0.14         36,064.0         36,064.0    144256.0     144256.0       0.00%     288512.0
312     features.denseblock4.denselayer8.conv1   736   7   7   128   7   7    94208.0       0.02      9,226,112.0      4,616,192.0    521088.0      25088.0       0.80%     546176.0
313     features.denseblock4.denselayer8.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
314     features.denseblock4.denselayer8.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
315     features.denseblock4.denselayer8.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
316     features.denseblock4.denselayer9.norm1   768   7   7   768   7   7     1536.0       0.14        150,528.0         75,264.0    156672.0     150528.0       0.00%     307200.0
317     features.denseblock4.denselayer9.relu1   768   7   7   768   7   7        0.0       0.14         37,632.0         37,632.0    150528.0     150528.0       0.80%     301056.0
318     features.denseblock4.denselayer9.conv1   768   7   7   128   7   7    98304.0       0.02      9,627,520.0      4,816,896.0    543744.0      25088.0       0.00%     568832.0
319     features.denseblock4.denselayer9.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
320     features.denseblock4.denselayer9.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
321     features.denseblock4.denselayer9.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.80%     178816.0
322    features.denseblock4.denselayer10.norm1   800   7   7   800   7   7     1600.0       0.15        156,800.0         78,400.0    163200.0     156800.0       0.00%     320000.0
323    features.denseblock4.denselayer10.relu1   800   7   7   800   7   7        0.0       0.15         39,200.0         39,200.0    156800.0     156800.0       0.00%     313600.0
324    features.denseblock4.denselayer10.conv1   800   7   7   128   7   7   102400.0       0.02     10,028,928.0      5,017,600.0    566400.0      25088.0       0.00%     591488.0
325    features.denseblock4.denselayer10.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
326    features.denseblock4.denselayer10.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
327    features.denseblock4.denselayer10.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
328    features.denseblock4.denselayer11.norm1   832   7   7   832   7   7     1664.0       0.16        163,072.0         81,536.0    169728.0     163072.0       0.00%     332800.0
329    features.denseblock4.denselayer11.relu1   832   7   7   832   7   7        0.0       0.16         40,768.0         40,768.0    163072.0     163072.0       0.80%     326144.0
330    features.denseblock4.denselayer11.conv1   832   7   7   128   7   7   106496.0       0.02     10,430,336.0      5,218,304.0    589056.0      25088.0       0.00%     614144.0
331    features.denseblock4.denselayer11.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
332    features.denseblock4.denselayer11.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
333    features.denseblock4.denselayer11.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.80%     178816.0
334    features.denseblock4.denselayer12.norm1   864   7   7   864   7   7     1728.0       0.16        169,344.0         84,672.0    176256.0     169344.0       0.00%     345600.0
335    features.denseblock4.denselayer12.relu1   864   7   7   864   7   7        0.0       0.16         42,336.0         42,336.0    169344.0     169344.0       0.00%     338688.0
336    features.denseblock4.denselayer12.conv1   864   7   7   128   7   7   110592.0       0.02     10,831,744.0      5,419,008.0    611712.0      25088.0       0.80%     636800.0
337    features.denseblock4.denselayer12.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
338    features.denseblock4.denselayer12.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
339    features.denseblock4.denselayer12.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
340    features.denseblock4.denselayer13.norm1   896   7   7   896   7   7     1792.0       0.17        175,616.0         87,808.0    182784.0     175616.0       0.00%     358400.0
341    features.denseblock4.denselayer13.relu1   896   7   7   896   7   7        0.0       0.17         43,904.0         43,904.0    175616.0     175616.0       0.00%     351232.0
342    features.denseblock4.denselayer13.conv1   896   7   7   128   7   7   114688.0       0.02     11,233,152.0      5,619,712.0    634368.0      25088.0       0.00%     659456.0
343    features.denseblock4.denselayer13.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
344    features.denseblock4.denselayer13.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.80%      50176.0
345    features.denseblock4.denselayer13.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
346    features.denseblock4.denselayer14.norm1   928   7   7   928   7   7     1856.0       0.17        181,888.0         90,944.0    189312.0     181888.0       0.00%     371200.0
347    features.denseblock4.denselayer14.relu1   928   7   7   928   7   7        0.0       0.17         45,472.0         45,472.0    181888.0     181888.0       0.00%     363776.0
348    features.denseblock4.denselayer14.conv1   928   7   7   128   7   7   118784.0       0.02     11,634,560.0      5,820,416.0    657024.0      25088.0       0.80%     682112.0
349    features.denseblock4.denselayer14.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
350    features.denseblock4.denselayer14.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
351    features.denseblock4.denselayer14.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
352    features.denseblock4.denselayer15.norm1   960   7   7   960   7   7     1920.0       0.18        188,160.0         94,080.0    195840.0     188160.0       0.00%     384000.0
353    features.denseblock4.denselayer15.relu1   960   7   7   960   7   7        0.0       0.18         47,040.0         47,040.0    188160.0     188160.0       0.00%     376320.0
354    features.denseblock4.denselayer15.conv1   960   7   7   128   7   7   122880.0       0.02     12,035,968.0      6,021,120.0    679680.0      25088.0       0.00%     704768.0
355    features.denseblock4.denselayer15.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
356    features.denseblock4.denselayer15.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.80%      50176.0
357    features.denseblock4.denselayer15.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
358    features.denseblock4.denselayer16.norm1   992   7   7   992   7   7     1984.0       0.19        194,432.0         97,216.0    202368.0     194432.0       0.00%     396800.0
359    features.denseblock4.denselayer16.relu1   992   7   7   992   7   7        0.0       0.19         48,608.0         48,608.0    194432.0     194432.0       0.00%     388864.0
360    features.denseblock4.denselayer16.conv1   992   7   7   128   7   7   126976.0       0.02     12,437,376.0      6,221,824.0    702336.0      25088.0       0.80%     727424.0
361    features.denseblock4.denselayer16.norm2   128   7   7   128   7   7      256.0       0.02         25,088.0         12,544.0     26112.0      25088.0       0.00%      51200.0
362    features.denseblock4.denselayer16.relu2   128   7   7   128   7   7        0.0       0.02          6,272.0          6,272.0     25088.0      25088.0       0.00%      50176.0
363    features.denseblock4.denselayer16.conv2   128   7   7    32   7   7    36864.0       0.01      3,611,104.0      1,806,336.0    172544.0       6272.0       0.00%     178816.0
364                             features.norm5  1024   7   7  1024   7   7     2048.0       0.19        200,704.0        100,352.0    208896.0     200704.0       0.00%     409600.0
365                                 classifier          1024          1000  1025000.0       0.00      2,047,000.0      1,024,000.0   4104096.0       4000.0       0.00%    4108096.0
total                                                                       7978856.0     170.60  6,658,402,616.0  3,342,702,624.0   4104096.0       4000.0     100.00%  432034176.0
====================================================================================================================================================================================
Total params: 7,978,856
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total memory: 170.60MB
Total MAdd: 6.66GMAdd
Total Flops: 3.34GFlops
Total MemR+W: 412.02MB

参考:谈一谈ResNet和DenseNet

你可能感兴趣的:(pytorch,神经网络,图像分类,深度学习,神经网络,计算机视觉)