Skip to content

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

@hsm207

Description

@hsm207

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions