Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
patil-suraj merged 2 commits into huggingface:main from camenduru:map_location
Dec 27, 2022

Conversation

@camenduru
Copy link
Contributor

@camenduru camenduru commented Dec 27, 2022

No description provided.

Copy link

HuggingFaceDocBuilderDev commented Dec 27, 2022
edited
Loading

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor Author

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

Copy link
Contributor Author

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 ✗) $ 

Copy link
Contributor

@patil-suraj patil-suraj left a 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!

@patil-suraj patil-suraj merged commit 1f1b6c6 into huggingface:main Dec 27, 2022
Copy link
Contributor

@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.

Copy link
Contributor Author

thanks @patil-suraj

@camenduru camenduru deleted the map_location branch December 28, 2022 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@patil-suraj patil-suraj patil-suraj approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /