IndexError in saliency.py for rbd
See original GitHub issueRunning demo.py, get ‘rbd’ error in saliency.py:
File “saliency.py”, line 62, in <listcomp>
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 indices
Both ft and mdb run without problems.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:9
Top Results From Across the Web
saliency - PyPI
The repository provides an implementation of Performance Information Curve (PIC) - a human independent metric for evaluating the quality of saliency methods ( ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 :
edges = [[vertices[x%num_vertices],vertices[int(x/num_vertices)]] for x in edges]
and it should be ok
please help me ImportError: No module named pyimgsaliency