File "<stdin>", line 1, in <module>
File "/home/sdamrich/anaconda3/envs/condaenv/inferno/__init__.py", line 6, in <module>
from . import io
File "/home/sdamrich/anaconda3/envs/condaenv/inferno/io/__init__.py", line 1, in <module>
from . import box
File "/home/sdamrich/anaconda3/envs/condaenv/inferno/io/box/__init__.py", line 3, in <module>
from .camvid import CamVid, get_camvid_loaders
File "/home/sdamrich/anaconda3/envs/condaenv/inferno/io/box/camvid.py", line 9, in <module>
from torchvision.datasets.folder import is_image_file, default_loader
ImportError: cannot import name 'is_image_file'
conda install -c pytorch -c conda-forge inferno
)Description
When importing inferno, I got the error:
I use torchvision 0.2.1 and pytorch 1.0.1
What I Did
Commenting out the first two lines in
solved the issue for me.