Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroPadding2D((1,1), name = '...') vs. Conv2D(...., padding = 'same', ... ) #38

Open
Sucran opened this issue Mar 7, 2018 · 0 comments

Comments

@Sucran
Copy link

Sucran commented Mar 7, 2018

Hi,
I'm rewritting the code resnet152.py in Keras2 API, and I had this question:
why you built a layer ZeroPadding2D whose name do not appear in caffe .prototxt
x = ZeroPadding2D((1, 1), name=conv_name_base + '2b_zeropadding')(x)
x = Convolution2D(nb_filter2, kernel_size, kernel_size, name=conv_name_base + '2b', bias=False)(x)
in the function conv_block()?
( since I don't know the mechanism to conver a caffemodel to keras model
and I'm wondering this operation is necessary for the mechanism, right? ?)

Because this can be done easily to use just one Conv2D function
x = Conv2D(nb_filter2, (kernel_size, kernel_size), padding='same', name=conv_name_base + '2b', use_bias=False)(x)

and when I finish my code, if you like, may be I can do something API update for you repo.
looking forward to your reply : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant