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

Crash due to breaking change in huggingface #35

Open
ricardodns opened this issue Oct 28, 2024 · 1 comment
Open

Crash due to breaking change in huggingface #35

ricardodns opened this issue Oct 28, 2024 · 1 comment

Comments

@ricardodns
Copy link

from RealESRGAN import RealESRGAN
File "/usr/local/lib/python3.11/dist-packages/RealESRGAN/init.py", line 1, in
from .model import RealESRGAN
File "/usr/local/lib/python3.11/dist-packages/RealESRGAN/model.py", line 7, in
from huggingface_hub import hf_hub_url, cached_download
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/usr/local/lib/python3.11/dist-packages/huggingface_hub/init.py)

The solution is to add version to the requirements.txt:

huggingface-hub==0.25.2
ricardodns added a commit to ricardodns/Real-ESRGAN that referenced this issue Oct 29, 2024
@julianVelandia
Copy link

julianVelandia commented Nov 14, 2024

While merging the PR, it works to change the installation command to this one
pip install huggingface-hub==0.25.2 git+https://github.com/sberbank-ai/Real-ESRGAN.git

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