Skip to content

Indices Error #2

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

Open
anushkb opened this issue Jul 4, 2019 · 5 comments
Open

Indices Error #2

anushkb opened this issue Jul 4, 2019 · 5 comments

Comments

@anushkb
Copy link

anushkb commented Jul 4, 2019

Traceback (most recent call last):
File "main.py", line 110, in
graphList[i] = triangulateGraph(graphList[i],imageSize)
File "/content/drive/SFM/utils/graph.py", line 84, in triangulateGraph
x[cnt,:] = newGraph.obsVal[newGraph.ObsIdx[i][ind],:]
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

@njanirudh
Copy link

Were you able to solve this?

@NavneetSajwan
Copy link

I also have the same error.

@ZHANG-SHI-CHANG
Copy link

write as x[cnt,:] = newGraph.obsVal[int(newGraph.ObsIdx[i][ind]), :]

@iiHarry
Copy link

iiHarry commented Sep 5, 2021

Were you able to solve this?

@iiHarry
Copy link

iiHarry commented Sep 5, 2021

Traceback (most recent call last):
File "main.py", line 110, in
graphList[i] = triangulateGraph(graphList[i],imageSize)
File "/content/drive/SFM/utils/graph.py", line 84, in triangulateGraph
x[cnt,:] = newGraph.obsVal[newGraph.ObsIdx[i][ind],:]
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

Traceback (most recent call last):
File "main.py", line 110, in
graphList[i] = triangulateGraph(graphList[i],imageSize)
File "/content/drive/SFM/utils/graph.py", line 84, in triangulateGraph
x[cnt,:] = newGraph.obsVal[newGraph.ObsIdx[i][ind],:]
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

I also have the same error. Have you solved it?

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

5 participants