Issue with mps
#67
by
Bahaaalmahamid
- opened
from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
pipe.to("mps")
if using torch < 2.0
pipe.enable_xformers_memory_efficient_attention()
prompt = "An astronaut riding a green horse"
images = pipe(prompt=prompt).images[0]
Error
step_index = (self.timesteps == timestep).nonzero().item()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Expected dst.dim() >= src.dim() to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
Any suggestion please?
Same here :(