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

Error if there are a lot of boxes, i guess #110

Open
anofryev opened this issue Jun 17, 2021 · 0 comments
Open

Error if there are a lot of boxes, i guess #110

anofryev opened this issue Jun 17, 2021 · 0 comments

Comments

@anofryev
Copy link

anofryev commented Jun 17, 2021

HI. It looks llike when there are a lot of boxes in one picture, it cause an error " can't multiply sequence by non-int of type 'float'"
because of that code in data_generators.calc_rpn:

if len(pos_locs[0]) > num_regions/2:
   val_locs = random.sample(range(len(pos_locs[0])), len(pos_locs[0]) - num_regions/2)
   y_is_box_valid[0, pos_locs[0][val_locs], pos_locs[1][val_locs], pos_locs[2][val_locs]] = 0
   num_pos = num_regions/2

how can i fix that?

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