DiverseBranchBlock icon indicating copy to clipboard operation
DiverseBranchBlock copied to clipboard

why padding == kernel_size // 2 is asserted?

Open PennyPeng369 opened this issue 2 years ago • 3 comments

https://github.com/DingXiaoH/DiverseBranchBlock/blob/be15be76a5556e04b2b44411a69994abcd1f25eb/diversebranchblock.py#L105 Why padding should be equal to kernel // 2? what if Conv2d(kernel_size=4, stride=2, padding=1)?

PennyPeng369 avatar Jul 06 '22 07:07 PennyPeng369

为了add的时候对齐特征图尺寸

zzk2021 avatar Dec 27 '22 09:12 zzk2021

Have you figured out why padding must be equal to kernel_size // 2?

rainyBJ avatar Feb 16 '23 12:02 rainyBJ

image Padding in transVI_multiscale need padding must be equal to kernel_size // 2.

rainyBJ avatar Feb 16 '23 12:02 rainyBJ