-
Notifications
You must be signed in to change notification settings - Fork 19.4k
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
ValueError: padding must be zero for average_exc_pad #4599
Comments
I tried to replace line pool = AveragePooling2D((3, 3), strides=(1, 1), border_mode='same')(conv1) into # pool = AveragePooling2D((3, 3), strides=(1, 1), border_mode='same')(conv1) # (32, 12, 12) cannot be trained
# pool = AveragePooling2D((3, 3), strides=(1, 1))(conv1) # (32, 10, 10) can be trained
pool = AveragePooling2D((3, 3), strides=(1, 1))(ZeroPadding2D((1,1))(conv1)) # (32, 12, 12) can be trained and the third option works. However, when I output the result of the first and the third line with: check_pool = Model(data, [AveragePooling2D((3, 3), strides=(1, 1))(ZeroPadding2D((1,1))(conv1)),
AveragePooling2D((3, 3), strides=(1, 1), border_mode='same')(conv1)])
res = check_pool(x)
res[0] == res[1] , I found they are same in all cells except the border. Is there something wrong with Keras or in the implementation in here? |
The solution to this issue is to use the TensorFlow backend. This appears to be a Theano issue... |
Manually using |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
I got
ValueError: padding must be zero for average_exc_pad
when training the inception network (predicting works). Here is a minimal script to cause that error:The text was updated successfully, but these errors were encountered: