You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
keras-resnet/resnet.py
Line 70 in 5e9bcca
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
The text was updated successfully, but these errors were encountered: