Skip to content

[Bug] Model download script triggers huggingface_hub version conflict, breaking inference #399

@zengzengqwq

Description

@zengzengqwq

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

  1. Set up the MuseTalk environment and install dependencies.
  2. Run the script to download weights (which contains pip install -U "huggingface_hub[cli]").
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions