by Lykon
Open source · 6k downloads · 70 likes
DreamShaper XL Lightning is an AI model specialized in generating images from text, optimized for exceptional speed and quality. Fine-tuned on the Stable Diffusion XL base, it excels at creating detailed and artistic images suited to a wide range of visual styles. This model is particularly well-suited for artists, designers, and content creators looking to produce unique visuals in just a few seconds. Its strength lies in its balance between performance and accessibility, delivering professional results without requiring excessive computational resources. What sets it apart is its ability to generate coherent and aesthetically pleasing images, even with complex prompts or abstract concepts.
lykon/dreamshaper-xl-lightning is a Stable Diffusion model that has been fine-tuned on stabilityai/stable-diffusion-xl-base-1.0.
Please consider supporting me:
For more general information on how to run text-to-image models with 🧨 Diffusers, see the docs.
pip install diffusers transformers accelerate
from diffusers import AutoPipelineForText2Image, DPMSolverMultistepScheduler
import torch
pipe = AutoPipelineForText2Image.from_pretrained('lykon/dreamshaper-xl-lightning', torch_dtype=torch.float16, variant="fp16")
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
pipe = pipe.to("cuda")
prompt = "portrait photo of muscular bearded guy in a worn mech suit, light bokeh, intricate, steel metal, elegant, sharp focus, soft lighting, vibrant colors"
generator = torch.manual_seed(0)
image = pipe(prompt, num_inference_steps=4, guidance_scale=2).images[0]
image.save("./image.png")