Skip to content

DDIM is broken on MPS #264

@GaidamakUA

Description

@GaidamakUA

Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
You did a great job an this is one line fix.
Please, replace ComfyUI/comfy/ldm/models/diffusion/ddim.py, line 21
attr = attr.to(self.device)
with
attr = attr.to(torch.float32).to(self.device)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions