From 4501d800442b4729946fa53018f1dd49a00dcf5e Mon Sep 17 00:00:00 2001 From: Johannes Stelzer Date: Tue, 9 Jan 2024 21:16:10 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d4b5bcb..1679b54 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ Latent blending enables video transitions with incredible smoothness between prompts, computed within seconds. Powered by [stable diffusion XL](https://stability.ai/stable-diffusion), this method involves specific mixing of intermediate latent representations to create a seamless transition – with users having the option to fully customize the transition directly in high-resolution. The new version also supports SDXL Turbo, allowing to generate transitions faster than they are typically played back! ```python +from diffusers import AutoPipelineForText2Image +from latentblending.blending_engine import BlendingEngine +from latentblending.diffusers_holder import DiffusersHolder + pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16").to("cuda") dh = DiffusersHolder(pipe) be = BlendingEngine(dh)