I am trying to import the image saliency package in a simple Jupyter notebook and am getting this error:
ImportError Traceback (most recent call last)
<ipython-input-2-352cee026b71> in <module>()
----> 1 import pyimgsaliency
2
3 for img in images:
4 imgplot = plt.imshow(img,cmap='gray')
5 plt.show()
~\Anaconda3\envs\tracx\lib\site-packages\pyimgsaliency\__init__.py in <module>()
----> 1 from saliency import *
2 from binarise import *
3 from saliency_mbd import *
4 from evaluate import *
ImportError: No module named 'saliency'
This is after I installed the package properly (I think...) using the following command:
pip install git+https://github.com/yhenon/pyimgsaliency.git
Now, the init.py file (whose full path is c:\Users\USER\Anaconda3\envs\tracx\Lib\site-packages\pyimgsaliency__init__.py) has the following content:
from saliency import *
from binarise import *
from saliency_mbd import *
from evaluate import *
It all seems legit, so what, oh what, am I doing wrong?
P.S. I am running the Jupyter notebook from within the 'tracx' environment in the Anaconda Prompt so it is probably not that sort of problem).