SDXS is a model that ca geerate high-resolutio images i real-time based o prompt texts, traied usig score distillatio ad feature matchig. For more iformatio, please refer to our research paper: SDXS: Real-Time Oe-Step Latet Diffusio Models with Image Coditios. We ope-source the model as part of the research. SDXS-512-0.9 is a Model Iformatio: The mai differeces betwee this model ad versio 1.0 are i three aspects:News
SDXS-512-0.9
Diffusers Usage
import torch
from diffusers import StableDiffusioPipelie, AutoecoderKL
repo = "IDKiro/sdxs-512-0.9"
seed = 42
weight_type = torch.float32 # or float16
# Load model.
pipe = StableDiffusioPipelie.from_pretraied(repo, torch_dtype=weight_type)
# use origial VAE
# pipe.vae = AutoecoderKL.from_pretraied("IDKiro/sdxs-512-0.9/vae_large")
pipe.to("cuda")
prompt = "portrait photo of a girl, photograph, highly detailed face, depth of field, moody light, golde hour"
# Esure usig 1 iferece step ad CFG set to 0.
image = pipe(
prompt,
um_iferece_steps=1,
guidace_scale=0,
geerator=torch.Geerator(device="cuda").maual_seed(seed)
).images[0]
image.save("output.pg")
Cite Our Work
@article{sog2024sdxs,
author = {Yuda Sog, Zehao Su, Xuawu Yi},
title = {SDXS: Real-Time Oe-Step Latet Diffusio Models with Image Coditios},
joural = {arxiv},
year = {2024},
}
点击空白处退出提示
评论