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

After I modified it, a new error appeared: #16

Open
Liangliangb opened this issue Oct 23, 2023 · 3 comments
Open

After I modified it, a new error appeared: #16

Liangliangb opened this issue Oct 23, 2023 · 3 comments

Comments

@Liangliangb
Copy link

I modified:edges = [[vertices[x%num_vertices],vertices[int(x/num_vertices)]] for x in edges]
After I modified it, a new error appeared:
geodesic[v1,v2] = path_length(all_shortest_paths_color[v1][v2],G)
IndexError: index 247 is out of bounds for axis 1 with size 247

@EnQing626
Copy link

Got the same error. Did you solve the problem?

@liangliang2024
Copy link

有同样的错误。你解决了问题吗?

It didn't work out, it was so annoying that I didn't end up using it.

@naivenaive
Copy link

naivenaive commented Jul 2, 2024

Here are some modifications should be made when using python3:

  1. replace all xrange to range
  2. "saliency.py" line 62, replace this line with vertices[x//num_vertices]] for x in edges]
  3. "saliency.py" line 90, replace this line with grid = segments_slic - 1
  4. in "setup.py", replace "sklearn" with "'scikit-learn'"

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

4 participants