MuseTalk
MuseTalk copied to clipboard
[Bug] Model download script triggers huggingface_hub version conflict, breaking inference
Description
I encountered a dependency conflict after running the model download script (download_weights.sh). The script forces an upgrade of huggingface_hub, which breaks compatibility with the installed transformers version required by MuseTalk.
Specifically, the download script executes pip install -U "huggingface_hub[cli]", installing a version (e.g., 1.1.5) that is incompatible with the transformers library, which requires huggingface-hub<1.0.
Steps to Reproduce
- Set up the MuseTalk environment and install dependencies.
- Run the script to download weights (which contains
pip install -U "huggingface_hub[cli]"). - Run the inference script:
sh inference.sh v1.0 normal.
Root Cause Analysis
The script download_weights.sh (or equivalent) contains the following line:
# Install required packages
pip install -U "huggingface_hub[cli]"
Environment
- MuseTalk version: main branch
- Python: 3.10
- Transformers version: 4.39.2
- Huggingface_hub version (after script): 1.1.5