We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Getting error while importing RealESRGAN with newer huggingface version.
Error-
ImportError: cannot import name 'cached_download' from 'huggingface_hub'
The fix seems related to this- easydiffusion/easydiffusion#1851 (comment)
More details: https://github.com/huggingface/huggingface_hub/releases/tag/v0.26.0
The text was updated successfully, but these errors were encountered:
Had this same issue.
This fixed it for me:
from huggingface_hub import hf_hub_download import huggingface_hub huggingface_hub.cached_download = lambda *args, **kwargs: hf_hub_download(*args, cache_dir="~/.cache/huggingface/hub", **kwargs)
Very much a band-aid solution though
** Also, of course, make sure to change your cache dir accordingly
Sorry, something went wrong.
No branches or pull requests
Getting error while importing RealESRGAN with newer huggingface version.
Error-
The fix seems related to this-
easydiffusion/easydiffusion#1851 (comment)
More details: https://github.com/huggingface/huggingface_hub/releases/tag/v0.26.0
The text was updated successfully, but these errors were encountered: