Update README.md

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

View File

@ -5,16 +5,16 @@ Latent blending enables video transitions with incredible smoothness between pro
```python
pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16").to("cuda")
dh = DiffusersHolder(pipe)
lb = LatentBlending(dh)
lb.set_prompt1("photo of underwater landscape, fish, und the sea, incredible detail, high resolution")
lb.set_prompt2("rendering of an alien planet, strange plants, strange creatures, surreal")
lb.set_negative_prompt("blurry, ugly, pale")
be = BlendingEngine(dh)
be.set_prompt1("photo of underwater landscape, fish, und the sea, incredible detail, high resolution")
be.set_prompt2("rendering of an alien planet, strange plants, strange creatures, surreal")
be.set_negative_prompt("blurry, ugly, pale")
# Run latent blending
lb.run_transition()
be.run_transition()
# Save movie
lb.write_movie_transition('movie_example1.mp4', duration_transition=12)
be.write_movie_transition('movie_example1.mp4', duration_transition=12)
```