-
-
Notifications
You must be signed in to change notification settings - Fork 480
Why do we need padding=100 for a filter of size 3? #40
Comments
Shelhamer and Long use a padding of 100 for the first conv layer in their Caffe implementation. |
Thank you @Viresh-DL |
if anyone interested: Why pad the input?: The 100 pixel input padding guarantees that the network output can be aligned to the input for any input size in the given datasets, for instance PASCAL VOC. The alignment is handled automatically by net specification and the crop layer. It is possible, though less convenient, to calculate the exact offsets necessary and do away with this amount of padding. |
I have another issue. I am writing the code in keras/ tf.keras. |
what about using |
As the title, in torchfcn/models/fcn32s.py we have the setting for the first conv1 layer:
nn.Conv2d(3, 64, 3, padding=100),
Why do we need a padding of side length 100 instead of 1 according to the filter size 3?
Thanks
The text was updated successfully, but these errors were encountered: