Update README.md
This commit is contained in:
parent
1ba4b578a0
commit
6e138c54a2
12
README.md
12
README.md
|
@ -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)
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue