1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
7.03k stars 1.34k forks source link

error importing face_alignment #284

Open segalinc opened 3 years ago

segalinc commented 3 years ago

Hello @1adrianb,
I was trying to import the package and not sure why this is happening. I think is from the scikit-image side but then there might be a version requirement to set to make it still work

import face_alignment
lib/python3.8/site-packages/face_alignment/__init__.py:7: in <module>
    from .api import FaceAlignment, LandmarksType, NetworkSize
lib/python3.8/site-packages/face_alignment/api.py:4: in <module>
    from skimage import io
lib/python3.8/site-packages/skimage/__init__.py:135: in <module>
    from .data import data_dir
lib/python3.8/site-packages/skimage/data/__init__.py:64: in <module>
    from pooch.utils import file_hash
E   ImportError: cannot import name 'file_hash' from 'pooch.utils' (/lib/python3.8/site-packages/pooch/utils.py)
segalinc commented 3 years ago

the current fix for now is to install as requirement pooch!=1.5.0 but that's not the nicest solution