Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name 'cached_download' from 'huggingface_hub' #84

Open
MohammadAsif-SDE opened this issue Dec 31, 2024 · 2 comments
Open

Comments

@MohammadAsif-SDE
Copy link

Despite Installing all the packages as instructed i still occurs the same issue
"cannot import name 'cached_download' from 'huggingface_hub'"

#I have Tried Multiple times installing in a different environment as well but this issue doesn't getting cleared.
#I Even Cross verified the package installation of the HuggingFace_Hub and tried installing the official library as well but it still gets the error.
#I don't know since i was into setting up the project from past 2 days and it still doesn't get cleared and i keeps getting this error.
#I tried Multiple ways but every-time i uses different approach i keeps getting the version confliction with pytorch and the diffusive library but i fixed those but, I cant able to fix the below issue. Do please suggest the Fix...........................

C:\projects\animate-anything>python train.py --config output/latent/animate_anything_512_v1.02.tar/config.yaml --eval validation_data.prompt_image=example/qingming2.jpg validation_data.prompt='Peoples are walking on the street.' validation_data.mask=example/qingming2_label.jpg
Traceback (most recent call last):
File "C:\projects\animate-anything\train.py", line 20, in
import diffusers
File "C:\Python39\lib\site-packages\diffusers_init_.py", line 5, in
from .utils import (
File "C:\Python39\lib\site-packages\diffusers\utils_init_.py", line 38, in
from .dynamic_modules_utils import get_class_from_dynamic_module
File "C:\Python39\lib\site-packages\diffusers\utils\dynamic_modules_utils.py", line 28, in
from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (C:\Python39\lib\site-packages\huggingface_hub_init_.py)

Plz Help me out to make a setup.....
Screenshot-animate-anything

@MohammadAsif-SDE
Copy link
Author

@daizuozhuo @eltociear @Leojc @sculmh anybody please help na.

@Leojc
Copy link
Collaborator

Leojc commented Jan 8, 2025

try downgrade it: pip install huggingface_hub==0.25.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants