Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

IndexError: too many indices for array #54

Open
lijain opened this issue Nov 15, 2019 · 4 comments
Open

IndexError: too many indices for array #54

lijain opened this issue Nov 15, 2019 · 4 comments
Labels
good first issue Good for newcomers

Comments

@lijain
Copy link

lijain commented Nov 15, 2019

在demo_rh_pyramid.py中的157行如下面代码:
det_boxes_r_ = forward_convert(det_boxes_r_, False)
det_boxes_r_[:, 0::2] *= (w_len / ss)
det_boxes_r_[:, 1::2] *= (h_len / ss)
det_boxes_r_ = back_forward_convert(det_boxes_r_, False)
有时会报IndexError: too many indices for array,查看有时为空。当用if做排除后还会出现此错误,请指教一下。如果方便的话可以给下微信?谢谢了

@ibrahimsoliman97
Copy link

I think this error happened when your image does not include any detected object.
I solved this error by adding below code to line 156:
if len(det_boxes_r_) < 1: continue
Hope it solve your problem..

@yangxue0827 yangxue0827 added the good first issue Good for newcomers label Dec 17, 2019
@DB11051998
Copy link

@yangxue0827 can i contribute to this issue?

@yangxue0827
Copy link
Member

of course you can @DB11051998

@DB11051998
Copy link

@yangxue0827 ok i am working on it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants