PaddlePaddle / PaddleMIX

Paddle Multimodal Integration and eXploration, supporting mainstream multi-modal tasks, including end-to-end large-scale multi-modal pretrain models and diffusion model toolbox. Equipped with high performance and flexibility.
Apache License 2.0
301 stars 117 forks source link

ImportError #580

Closed 1196228233 closed 2 months ago

1196228233 commented 3 months ago

File ~/external-libraries/ppdiffusers/utils/download_utils.py:34 32 from filelock import FileLock 33 from huggingface_hub import hf_hub_download, try_to_load_from_cache ---> 34 from huggingface_hub.file_download import _chmod_and_replace, http_get 35 from huggingface_hub.utils import ( 36 EntryNotFoundError, 37 RepositoryNotFoundError, 38 RevisionNotFoundError, 39 ) 40 from packaging import version

ImportError: cannot import name '_chmod_and_replace' from 'huggingface_hub.file_download'(/home/aistudio/external-libraries/huggingface_hub/file_download.py)

nemonameless commented 2 months ago

已修复在develop分支中,pip安装可能还是0.24.0旧版未修复的,可在编译安装:

git clone https://github.com/PaddlePaddle/PaddleMIX
cd PaddleMIX/ppdiffusers
python setup.py install