-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Device to use (e.g. cpu, cuda:0, cuda:1, etc.) #1844
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
Conversation
The documentation is not available anymore as the PR was closed or merged.
fixes "Error: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU." https://huggingface.co/spaces/diffusers/convert-sd-ckpt/discussions/2
I am also getting this for make style
@camenduru ➜ /workspaces/diffusers (map_location ✗) $ make style
black --preview examples scripts src tests utils
reformatted examples/textual_inversion/textual_inversion.py
reformatted examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py
reformatted examples/textual_inversion/textual_inversion_flax.py
reformatted scripts/convert_kakao_brain_unclip_to_diffusers.py
reformatted src/diffusers/modeling_flax_pytorch_utils.py
reformatted src/diffusers/models/cross_attention.py
reformatted src/diffusers/models/attention.py
reformatted src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py
reformatted src/diffusers/schedulers/scheduling_euler_discrete.py
reformatted utils/custom_init_isort.py
reformatted tests/test_scheduler.py
All done! ✨ 🍰 ✨
11 files reformatted, 273 files left unchanged.
isort examples scripts src tests utils
make: isort: Command not found
make: *** [Makefile:59: style] Error 127
@camenduru ➜ /workspaces/diffusers (map_location ✗) $
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR, looks good!
@camenduru think this is because the quality deps are not installed. You can install diffusers using
pip install -e ".[dev]" which will take of installing all dev related deps.
thanks @patil-suraj ❤
No description provided.