Unverified Commit d33d9f67 authored by Junsong Chen's avatar Junsong Chen Committed by GitHub
Browse files

fix typo in docs (#12675)



* fix typo in docs

* Update docs/source/en/api/pipelines/sana_video.md
Co-authored-by: default avatardg845 <58458699+dg845@users.noreply.github.com>

---------
Co-authored-by: default avatardg845 <58458699+dg845@users.noreply.github.com>
parent dde8754b
......@@ -43,11 +43,13 @@ Note: The recommended dtype mentioned is for the transformer weights. The text e
<hfoptions id="generation pipelines">`
<hfoption id="Text-to-Video">
The example below demonstrates how to use the text-to-video pipeline to generate a video using a text descriptio and a starting frame.
The example below demonstrates how to use the text-to-video pipeline to generate a video using a text description.
```python
model_id =
pipe = SanaVideoPipeline.from_pretrained("Efficient-Large-Model/SANA-Video_2B_480p_diffusers", torch_dtype=torch.bfloat16)
pipe = SanaVideoPipeline.from_pretrained(
"Efficient-Large-Model/SANA-Video_2B_480p_diffusers",
torch_dtype=torch.bfloat16,
)
pipe.text_encoder.to(torch.bfloat16)
pipe.vae.to(torch.float32)
pipe.to("cuda")
......@@ -75,12 +77,11 @@ export_to_video(video, "sana_video.mp4", fps=16)
</hfoption>
<hfoption id="Image-to-Video">
The example below demonstrates how to use the image-to-video pipeline to generate a video using a text descriptio and a starting frame.
The example below demonstrates how to use the image-to-video pipeline to generate a video using a text description and a starting frame.
```python
model_id = "Efficient-Large-Model/SANA-Video_2B_480p_diffusers"
pipe = SanaImageToVideoPipeline.from_pretrained(
model_id,
"Efficient-Large-Model/SANA-Video_2B_480p_diffusers",
torch_dtype=torch.bfloat16,
)
pipe.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipe.scheduler.config, flow_shift=8.0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment