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

Small bug about NonLocalResNet34/50/.... ? #12

Open
leeguandong opened this issue Mar 4, 2019 · 1 comment
Open

Small bug about NonLocalResNet34/50/.... ? #12

leeguandong opened this issue Mar 4, 2019 · 1 comment

Comments

@leeguandong
Copy link

when use depth>18, will have a bug.
In _redidual_block:
def _residual_block(block_function, filters, blocks, stage,
transition_strides=None, transition_dilation_rates=None,
dilation_rates=None, is_first_layer=False, dropout=None,
residual_unit=_bn_relu_conv):
if transition_dilation_rates is None:
transition_dilation_rates = [(1, 1)] * blocks
if transition_strides is None:
transition_strides = [(1, 1)] * blocks
if dilation_rates is None:
dilation_rates = [(1, 1)] * blocks
Adding the last two lines of code above is necessary.

@titu1994
Copy link
Owner

titu1994 commented Mar 4, 2019

Would you like to add a PR for this ? Or should I merge it directly ?

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