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

UserWarning: Failed to load image Python extension: 'Could not find module cannot import name 'cached_download' from 'huggingface_hub' #1685

Open
Generalalen opened this issue Jan 14, 2025 · 0 comments

Comments

@Generalalen
Copy link

PS E:\projects\img2img-turbo-main> accelerate launch src/train_pix2pix_turbo.py
C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Users\najaf\anaconda3\envs\img2img-turbo\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?
warn(
C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Users\najaf\anaconda3\envs\img2img-turbo\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?
warn(
Traceback (most recent call last):
File "E:\projects\img2img-turbo-main\src\train_pix2pix_turbo.py", line 16, in
import diffusers
File "C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\site-packages\diffusers_init_.py", line 5, in
from .utils import (
File "C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\site-packages\diffusers\utils_init_.py", line 37, in
from .dynamic_modules_utils import get_class_from_dynamic_module
File "C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\site-packages\diffusers\utils\dynamic_modules_utils.py", line 28, in
from huggingface_hub import cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\site-packages\huggingface_hub_init_.py)
Traceback (most recent call last):
File "C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\najaf\Anaconda3\envs\img2img-turbo\Scripts\accelerate.exe_main
.py", line 7, in
sys.exit(main())
File "C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\site-packages\accelerate\commands\accelerate_cli.py", line 48, in main
args.func(args)
File "C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\site-packages\accelerate\commands\launch.py", line 1168, in launch_command
simple_launcher(args)
File "C:\Users\najaf\anaconda3\envs\img2img-turbo\lib\site-packages\accelerate\commands\launch.py", line 763, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['C:\Users\najaf\anaconda3\envs\img2img-turbo\python.exe', 'src/train_pix2pix_turbo.py', '\']' returned non-zero exit status 1.

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

1 participant