You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
ricardodns
added a commit
to ricardodns/Real-ESRGAN
that referenced
this issue
Oct 29, 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
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
:The text was updated successfully, but these errors were encountered: