Update README.md

This commit is contained in:
Johannes Stelzer 2024-01-09 21:11:40 +01:00 committed by GitHub
parent 4042a098b0
commit 1ba4b578a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,6 @@
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
pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16").to("cuda")
dh = DiffusersHolder(pipe)
@ -18,6 +17,13 @@ lb.run_transition()
lb.write_movie_transition('movie_example1.mp4', duration_transition=12)
```
# Installation
```commandline
pip install git+https://github.com/lunarring/latentblending
```
## Gradio UI
Coming soon again :)
@ -90,12 +96,6 @@ lb.set_parental_crossfeed(crossfeed_power, crossfeed_range, crossfeed_decay)
```
# Installation
#### Packages
```commandline
pip install -r requirements.txt
```
# How does latent blending work?
## Method
![](animation.gif)