Itroducig the ew fast model SDXL Flash, we leared that all fast XL models work fast, but the quality decreases, ad we also made a fast model, but it is ot as fast as LCM, Turbo, Lightig ad Hyper, but the quality is higher. Below you will see the study with steps ad cfg.Steps ad CFG (Guidace)
Optimal settigs
Diffusers usage
pip istall torch diffusers
import torch
from diffusers import StableDiffusioXLPipelie, DPMSolverSiglestepScheduler
# Load model.
pipe = StableDiffusioXLPipelie.from_pretraied("sd-commuity/sdxl-flash", torch_dtype=torch.float16, variat="fp16").to("cuda")
# Esure sampler uses "trailig" timesteps.
pipe.scheduler = DPMSolverSiglestepScheduler.from_cofig(pipe.scheduler.cofig, timestep_spacig="trailig")
# Image geeratio.
pipe("a happy dog, suy day, realism", um_iferece_steps=7, guidace_scale=3).images[0].save("output.pg")
点击空白处退出提示
评论