pytorch-tutorial icon indicating copy to clipboard operation
pytorch-tutorial copied to clipboard

About Resnet downsample part in github code

Open haoyu12S opened this issue 6 years ago • 0 comments

under the official pytorch code is def _make_layer(self, block, planes, blocks, stride=1): downsample = None if stride != 1 or self.inplanes != planes * block.expansion: downsample = nn.Sequential( conv1x1(self.inplanes, planes * block.expansion, stride), nn.BatchNorm2d(planes * block.expansion), )

But if you check the paper https://arxiv.org/abs/1512.03385 the downsample convolution kernel size is 3x3

what is the difference influence the output? Pytorch change the idea or there is the incorrect codes. Thanks

haoyu12S avatar Jan 02 '19 22:01 haoyu12S