Spaces:
Running
Running
File size: 366 Bytes
eb74770 861d39e eb74770 861d39e eb74770 |
1 2 3 4 5 6 7 8 9 10 |
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained(
"runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16, use_safetensors=True
).to("cuda")
prompt = "peasant and dragon combat, wood cutting style, viking era, bevel with rune"
image = pipeline(prompt, num_inference_steps=25).images[0]
image |