Views
No views yet
lykon/dreamshaper-8-lcm is a Stable Diffusion model that has been fine-tuned on runwayml/stable-diffusion-v1-5.pip install diffusers transformers accelerate1from diffusers import AutoPipelineForText2Image, LCMScheduler
2import torch
3
4pipe = AutoPipelineForText2Image.from_pretrained('lykon/dreamshaper-8-lcm', torch_dtype=torch.float16, variant="fp16")
5pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
6pipe = pipe.to("cuda")
7
8prompt = "portrait photo of muscular bearded guy in a worn mech suit, light bokeh, intricate, steel metal, elegant, sharp focus, soft lighting, vibrant colors"
9
10generator = torch.manual_seed(0)
11image = pipe(prompt, num_inference_steps=15, guidance_scale=2, generator=generator).images[0]
12image.save("./image.png")