You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing to(torch.float64) to to(torch.float32) fixes the problem.
We should consider automating the casting to float64 or float32 depending on the users machine and warn user of the potential problems when casting can only be done to float32.
Proposed workflow
User starts the web ui
Web ui checks the architecture it is running on
If it is an aarm64, warn user
Any casting is done without user intervention behind the scenes
Is there an existing issue for this?
What would your feature do ?
When following the soft inpainting tutorial at stable diffusion art, the following error is thrown when doing the softinpainting:
The reason is due to the following lines that cast an mps tensor into a float 64:
stable-diffusion-webui/extensions-builtin/soft-inpainting/scripts/soft_inpainting.py
Line 82 in 1564ffa
stable-diffusion-webui/extensions-builtin/soft-inpainting/scripts/soft_inpainting.py
Line 85 in 1564ffa
stable-diffusion-webui/extensions-builtin/soft-inpainting/scripts/soft_inpainting.py
Line 87 in 1564ffa
Changing
to(torch.float64)
toto(torch.float32)
fixes the problem.We should consider automating the casting to float64 or float32 depending on the users machine and warn user of the potential problems when casting can only be done to float32.
Proposed workflow
Additional information
Might have some relation to #13798 and #12907
The text was updated successfully, but these errors were encountered: