ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

DDIM is broken on MPS

Open GaidamakUA opened this issue 1 year ago • 1 comments

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)

GaidamakUA avatar Mar 25 '23 20:03 GaidamakUA

So it's fixed now?

comfyanonymous avatar Mar 26 '23 04:03 comfyanonymous

@comfyanonymous Yeah, it works. Thank you.

GaidamakUA avatar Mar 26 '23 18:03 GaidamakUA