Skip to content

Conversation

@camenduru
Copy link
Contributor

No description provided.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 27, 2022

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

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

@camenduru
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
@patil-suraj
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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants