-
Notifications
You must be signed in to change notification settings - Fork 53
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 in saliency.py for rbd #3
Comments
please help me |
,I have the same problem, maybe u can run the code with the mainly funciotn by building a new programme. |
Did any of you guys ever find out what was wrong? I've got the same problem @dineshbvadhia has. |
the same problem @dineshbvadhia |
Hola ! I think it's just a little type problem due to the division, you can correct it by casting the result before using it as an index, just replace the line 61 in saliency.py by :
and it should be ok |
Have you sloved it yet? |
The error occurs because this code is written in Python2.7. If you run in python2.7 environment there is no error and it works fine. |
i got the same error.. can anyone tell me how to fix it?? |
It did work! Thank you very much |
IndexError: index 247 is out of bounds for axis 1 with size 247 |
After I modified it, a new error appeared: geodesic[v1,v2] = path_length(all_shortest_paths_color[v1][v2],G) |
Running demo.py, get 'rbd' error in saliency.py:
File "saliency.py", line 62, in
edges = [[vertices[x%num_vertices],
vertices[x/num_vertices]] for x in edges]
IndexError: only integers, slices (
:
), ellipsis (...
), numpy.newaxis (None
) and integer or boolean arrays are valid indicesBoth ft and mdb run without problems.
The text was updated successfully, but these errors were encountered: