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

Problem of funtion _shortcut #59

Open
zhangbo2008 opened this issue Jan 14, 2019 · 1 comment
Open

Problem of funtion _shortcut #59

zhangbo2008 opened this issue Jan 14, 2019 · 1 comment

Comments

@zhangbo2008
Copy link

def _shortcut(input, residual):

In Function _shortcut, two lines
stride_width = int(round(input_shape[ROW_AXIS] / residual_shape[ROW_AXIS]))
stride_height = int(round(input_shape[COL_AXIS] / residual_shape[COL_AXIS]))
and
shortcut = Conv2D(filters=residual_shape[CHANNEL_AXIS],
kernel_size=(1, 1),
strides=(stride_width, stride_height),
padding="valid",
kernel_initializer="he_normal",
kernel_regularizer=l2(0.0001))(input)
The Problem is : Throught the above operation, the shape of shortcut is not equal to residual's.
For example input_shape:3434 residual_shape 1010 and throught the operation above we have shortcut's shape 1212 which is not equal to 1010

@HerlinHawk
Copy link

i meet the same problem.

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

2 participants