latent-consistency / lcm-ssd-1b

huggingface.co
Total runs: 275
24-hour runs: 0
7-day runs: 17
30-day runs: 17
Model's Last Updated: November 10 2023
text-to-image

Introduction of lcm-ssd-1b

Model Details of lcm-ssd-1b

Latent Consistency Model (LCM): SSD-1B

Latent Consistency Model (LCM) was proposed in Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step Inference by Simian Luo, Yiqin Tan et al. and Simian Luo , Suraj Patil , and Daniel Gu succesfully applied the same approach to create LCM for SDXL.

This checkpoint is a LCM distilled version of segmind/SSD-1B that allows to reduce the number of inference steps to only between 2 - 8 steps .

Usage

LCM SDXL is supported in 🤗 Hugging Face Diffusers library from version v0.23.0 onwards. To run the model, first install the latest version of the Diffusers library as well as peft , accelerate and transformers . audio dataset from the Hugging Face Hub:

pip install --upgrade pip
pip install --upgrade diffusers transformers accelerate peft
Text-to-Image

The model can be loaded with it's base pipeline segmind/SSD-1B . Next, the scheduler needs to be changed to LCMScheduler and we can reduce the number of inference steps to just 2 to 8 steps.

from diffusers import UNet2DConditionModel, DiffusionPipeline, LCMScheduler
import torch

unet = UNet2DConditionModel.from_pretrained("latent-consistency/lcm-ssd-1b", torch_dtype=torch.float16, variant="fp16")
pipe = DiffusionPipeline.from_pretrained("segmind/SSD-1B", unet=unet, torch_dtype=torch.float16, variant="fp16")

pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
pipe.to("cuda")

prompt = "a close-up picture of an old man standing in the rain"

image = pipe(prompt, num_inference_steps=4, guidance_scale=1.0).images[0]

Image-to-Image

Works as well! TODO docs

Inpainting

Works as well! TODO docs

ControlNet

Works as well! TODO docs

T2I Adapter

Works as well! TODO docs

Speed Benchmark

TODO

Training

TODO

Runs of latent-consistency lcm-ssd-1b on huggingface.co

275
Total runs
0
24-hour runs
10
3-day runs
17
7-day runs
17
30-day runs

More Information About lcm-ssd-1b huggingface.co Model

More lcm-ssd-1b license Visit here:

https://choosealicense.com/licenses/openrail++

lcm-ssd-1b huggingface.co

lcm-ssd-1b huggingface.co is an AI model on huggingface.co that provides lcm-ssd-1b's model effect (), which can be used instantly with this latent-consistency lcm-ssd-1b model. huggingface.co supports a free trial of the lcm-ssd-1b model, and also provides paid use of the lcm-ssd-1b. Support call lcm-ssd-1b model through api, including Node.js, Python, http.

latent-consistency lcm-ssd-1b online free

lcm-ssd-1b huggingface.co is an online trial and call api platform, which integrates lcm-ssd-1b's modeling effects, including api services, and provides a free online trial of lcm-ssd-1b, you can try lcm-ssd-1b online for free by clicking the link below.

latent-consistency lcm-ssd-1b online free url in huggingface.co:

https://huggingface.co/latent-consistency/lcm-ssd-1b

lcm-ssd-1b install

lcm-ssd-1b is an open source model from GitHub that offers a free installation service, and any user can find lcm-ssd-1b on GitHub to install. At the same time, huggingface.co provides the effect of lcm-ssd-1b install, users can directly use lcm-ssd-1b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

lcm-ssd-1b install url in huggingface.co:

https://huggingface.co/latent-consistency/lcm-ssd-1b

Url of lcm-ssd-1b

Provider of lcm-ssd-1b huggingface.co

latent-consistency
ORGANIZATIONS

Other API from latent-consistency