1adrianb / 1adrianb/face-alignment

error importing face_alignment

Aperta Adatta ai principianti
#284 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
7.5k
Fork
1.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python, pytorch, scikit-learn
Ambito
backend, tooling
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
65/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.