huggingface / huggingface/diffusers
Missing-dependency error suggests `pip install pytorch_retinaface`, which is not a PyPI package
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 34.5k
- Fork
- 7.3k
- Merge medio
- 3g 3h
- PR unite (30g)
- 91
Descrizione
Bug
src/diffusers/utils/import_utils.py tells users to install the optional RetinaFace dependency with:
{0} requires the pytorch_retinaface library but it was not found in your environment. You can install it with pip:
pip install pytorch_retinaface
pip install pytorch_retinaface cannot succeed: neither pytorch_retinaface nor its normalized form pytorch-retinaface exists on PyPI (both return HTTP 404 from https://pypi.org/pypi/<name>/json). The suggested command fails, and the name is currently unregistered on PyPI.
Version
Present in v0.40.0 (import_utils.py, line 567).
Reproduce
curl -s -o /dev/null -w '%{http_code}\n' https://pypi.org/pypi/pytorch_retinaface/json # 404
curl -s -o /dev/null -w '%{http_code}\n' https://pypi.org/pypi/pytorch-retinaface/json # 404
Suggested fix
Point the message at the actual distribution of the pytorch_retinaface import (the intended project/source or the correct PyPI name), or drop the pip install hint if there is no canonical PyPI package.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia in src/diffusers/utils/import_utils.py intorno alla riga 567 e controlla il messaggio relativo alla dipendenza mancante per l’import di pytorch_retinaface. Verifica il nome del pacchetto o la fonte in base ai controlli PyPI riportati nell’issue, quindi aggiorna l’indicazione in modo che punti a un percorso di installazione valido oppure ometta il comando pip; conferma il messaggio di errore risultante con i test pertinenti relativi agli import.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python, pytorch
- Ambito
- developer-experience, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 68/100