
densenet (MMPretrain)
Image classification22 ops508.2K params
5 models, image classification. Fewest parameters first.
DenseNet, the Dense Convolutional Network, connects each layer to every other layer in a feed-forward fashion. Where a traditional network with L layers has L connections, a dense block has L(L+1)/2: each layer takes the feature maps of all preceding layers as input and hands its own to every later layer. Features are combined by concatenation rather than summation, which is the difference from a ResNet. The paper credits this with easing the vanishing-gradient problem, strengthening feature propagation, encouraging feature reuse and cutting the number of parameters.
Because concatenation only works at one feature-map size, the network is divided into dense blocks joined by transition layers that do convolution and pooling. Each layer adds only k feature maps, the growth rate, and the paper shows that a relatively small growth rate is enough. The ImageNet models are the DenseNet-BC form: a 1x1 bottleneck convolution before each 3x3, and transition layers that halve the channel count with compression factor 0.5. All of them use growth rate k = 32.
The captured members are DenseNet-121, 169, 201 and 264 from timm and torchvision, plus timm's DenseNet Blur variant, a DenseNet-121 with blur pooling and a three-layer 3x3 stem. On the ImageNet validation set the paper reports single-crop top-1 error of 25.02 for DenseNet-121, 23.80 for 169, 22.58 for 201 and 22.15 for 264.
AI-written summary; not reviewed by a person. Corrections welcome.