from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained(“SimianLuo/LCM_Dreamshaper_v7″, custom_pipeline=”latent_consistency_txt2img”, custom_revision=”main”, revision=”fb9c5d”)
pipe.to(torch_device=”cpu”)images = pipe(prompt=prompt, num_inference_steps=num_inference_steps, guidance_scale=8.0, lcm_origin_steps=50, output_type=”pil”).images
00:56<02:50, 56.87s/it
This post was created with our nice and easy submission form. Create your post!
GIPHY App Key not set. Please check settings