SDXS: Real-Time One-Step Latent Diffusion Models with Image Conditions
Paper โข 2403.16627 โข Published โข 22
How to use IDKiro/sdxs-512-dreamshaper-sketch with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("IDKiro/sdxs-512-dreamshaper-sketch", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]SDXS is a model that can generate high-resolution images in real-time based on prompt texts, trained using score distillation and feature matching. For more information, please refer to our research paper: SDXS: Real-Time One-Step Latent Diffusion Models with Image Conditions. We open-source the model as part of the research.
SDXS-512-DreamShaper-Sketch is the sketch-to-image ControlNet for SDXS-512-DreamShaper. Watch our repo for any updates. See our Demo Code to use the model.
@article{song2024sdxs,
author = {Yuda Song, Zehao Sun, Xuanwu Yin},
title = {SDXS: Real-Time One-Step Latent Diffusion Models with Image Conditions},
journal = {arxiv},
year = {2024},
}