stable-diffusion-webui
stable-diffusion-webui copied to clipboard
fix soft inpainting on mps and xpu, torch_utils.float64
Description
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15684
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15800
torch_utils.float64
return torch.float64 or torch.float32 base on torch.Tensor.device.type
not sure if this is the best solution to solve this ideally there should be a way to solve this globally
note: logically this should workrl but as I don't have mps or xpu device so this is technically not fully tested
Checklist:
- [x] I have read contributing wiki page
- [x] I have performed a self-review of my own code
- [x] My code follows the style guidelines
- [x] My code passes tests