RuntimeError: expected scalar type Half but found Float
#15
by
HDNua
- opened
Hi,
I'm new to Hugging Face and Stable Diffusions. I've run the example code on VSCode but it says there are RuntimeError. Can you please check this and tell me how I can fix this?
(Sorry for poor English)
the code:
#!pip install diffusers transformers scipy torch
from diffusers import StableDiffusionPipeline
import torch
model_id = "Onodofthenorth/SD_PixelArt_SpriteSheet_Generator"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "PixelartLSS"
image = pipe(prompt).images[0]
image.save("./pixel.png")