Spaces:
Sleeping
Sleeping
File size: 319 Bytes
7480a96 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from diffusers import StableDiffusionPipeline
import torch
model_id = "runwayml/stable-diffusion-v1-5"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "wallpaper falling leaves"
image = pipe(prompt).images[0]
image.save("falling_leaves.png")
|