Skip to content

Commit 6da0a08

Browse files
committed
style
1 parent cf3a77e commit 6da0a08

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/diffusers/pipelines/ltx/pipeline_ltx_condition.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@
4848
>>> import torch
4949
>>> from diffusers.pipelines.ltx.pipeline_ltx_condition import LTXConditionPipeline, LTXVideoCondition
5050
>>> from diffusers.utils import export_to_video, load_video, load_image
51-
>>>
51+
5252
>>> pipe = LTXConditionPipeline.from_pretrained("Lightricks/LTX-Video-0.9.1", torch_dtype=torch.bfloat16)
5353
>>> pipe.to("cuda")
54-
>>>
54+
5555
>>> # Load input image and video
5656
>>> video = load_video(
5757
... "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cosmos/cosmos-video2world-input-vid.mp4"
5858
... )
5959
>>> image = load_image(
6060
... "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cosmos/cosmos-video2world-input.jpg"
6161
... )
62-
>>>
62+
6363
>>> # Create conditioning objects
6464
>>> condition1 = LTXVideoCondition(
6565
... image=image,
@@ -69,10 +69,10 @@
6969
... video=video,
7070
... frame_index=80,
7171
... )
72-
>>>
72+
7373
>>> prompt = "The video depicts a long, straight highway stretching into the distance, flanked by metal guardrails. The road is divided into multiple lanes, with a few vehicles visible in the far distance. The surrounding landscape features dry, grassy fields on one side and rolling hills on the other. The sky is mostly clear with a few scattered clouds, suggesting a bright, sunny day. And then the camera switch to a winding mountain road covered in snow, with a single vehicle traveling along it. The road is flanked by steep, rocky cliffs and sparse vegetation. The landscape is characterized by rugged terrain and a river visible in the distance. The scene captures the solitude and beauty of a winter drive through a mountainous region."
7474
>>> negative_prompt = "worst quality, inconsistent motion, blurry, jittery, distorted"
75-
>>>
75+
7676
>>> # Generate video
7777
>>> generator = torch.Generator("cuda").manual_seed(0)
7878
>>> video = pipe(
@@ -85,7 +85,7 @@
8585
... num_inference_steps=40,
8686
... generator=generator,
8787
... ).frames[0]
88-
>>>
88+
8989
>>> export_to_video(video, "output.mp4", fps=24)
9090
```
9191
"""

0 commit comments

Comments
 (0)