1adrianb / 1adrianb/face-alignment

error importing face_alignment

Đang mở Phù hợp với người mới
#284 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
7.5k
Fork
1.4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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
from .api import FaceAlignment, LandmarksType, NetworkSize
lib/python3.8/site-packages/face_alignment/api.py:4: in
from skimage import io
lib/python3.8/site-packages/skimage/__init__.py:135: in
from .data import data_dir
lib/python3.8/site-packages/skimage/data/__init__.py:64: in
from pooch.utils import file_hash
E ImportError: cannot import name 'file_hash' from 'pooch.utils' (/lib/python3.8/site-packages/pooch/utils.py)
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

The error occurs when importing face_alignment due to a missing 'file_hash' import from pooch.utils. Check the dependencies in setup.py or requirements.txt, particularly the versions of scikit-image and pooch. Look at the import chain in face_alignment/api.py and skimage/__init__.py to see which version of pooch is compatible. Test by installing a specific version of pooch that provides file_hash.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python, pytorch, scikit-learn
Lĩnh vực
backend, tooling
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
65/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.