Closed Kitsunetic closed 4 years ago
The padding=1
is in the typical ResNet architectures. Indivisible behavior is caused by the ceil_mode=True
and is expected as in DeepLab. To avoid this, please switch to ceil_mode=False
.
OK thank you I understand.
I'll close this issue
https://github.com/kazuto1011/deeplab-pytorch/blob/4219467fa5de07985f834f1bd8c04c186dc8f6d8/libs/models/resnet.py#L110
During tests with Deeplab, I found input image size is not divisible by output image size. The output image size is
input_size // 8 + 1
.For example,
I found why input size is not divisible by output is because of the
padding
inresnet._Stem.pool
layer.I think there is reason why
_Stem.pool
have padding, but cannot understand why.