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

IndexError was encountered,does anyone have the same problem #41

Open
nefuhhanrui opened this issue Dec 11, 2020 · 0 comments
Open

IndexError was encountered,does anyone have the same problem #41

nefuhhanrui opened this issue Dec 11, 2020 · 0 comments

Comments

@nefuhhanrui
Copy link

When I run valid.py The following error appears:
Traceback (most recent call last):
File "valid.py", line 160, in
predict()
File "valid.py", line 139, in predict
ths, ths_, cnt = Get_Ths(pts_corr_val, seg, ins, ths, ths_, cnt)
File "/home/hpz8g4/hanrui/SGPN/utils/test_utils.py", line 57, in Get_Ths
hist, bin = np.histogram(pt[pts_in_curins_ind], bins=20)
File "<array_function internals>", line 6, in histogram
File "/home/hpz8g4/anaconda3/envs/hanrui/lib/python3.7/site-packages/numpy/lib/histograms.py", line 856, in histogram
decrement = tmp_a < bin_edges[indices]
IndexError: index -9223372036854775808 is out of bounds for axis 0 with size 21

Thank you for your help

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