Skip to content
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

[Feature Request]: Make Soft Inpainting Compatible With Mac Apple Silicon #15684

Open
1 task done
hsm207 opened this issue May 2, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@hsm207
Copy link

hsm207 commented May 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

When following the soft inpainting tutorial at stable diffusion art, the following error is thrown when doing the softinpainting:

TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.

The reason is due to the following lines that cast an mps tensor into a float 64:

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

  1. User starts the web ui
  2. Web ui checks the architecture it is running on
  3. If it is an aarm64, warn user
  4. Any casting is done without user intervention behind the scenes

Additional information

Might have some relation to #13798 and #12907

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant