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

Zstride=1. / spatial_scale, eroDivisionError: float division by zero #189

Closed
13070151771 opened this issue Dec 18, 2018 · 0 comments
Closed

Comments

@13070151771
Copy link

class single_scale_rpn_outputs(nn.Module):
"""Add RPN outputs to a single scale model (i.e., no FPN)."""
def init(self, dim_in, spatial_scale):
super(single_scale_rpn_outputs,self).init()
self.dim_in = dim_in
self.dim_out = dim_in if cfg.RPN.OUT_DIM_AS_IN_DIM else cfg.RPN.OUT_DIM
anchors = generate_anchors(
stride=1. / spatial_scale,
sizes=cfg.RPN.SIZES,
aspect_ratios=cfg.RPN.ASPECT_RATIOS)
num_anchors = anchors.shape[0]

its faster-rcnn in python2.7,

stride=1. / spatial_scale,
ZeroDivisionError: float division by zero

but in python3 It can run well

what can i do。555555555

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