Skip to content

Commit 417c6a1

Browse files
committed
gen guide
1 parent b31ed8e commit 417c6a1

File tree

3 files changed

+331
-444
lines changed

3 files changed

+331
-444
lines changed

docs/source/en/api/pipelines/ltx_video.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,20 @@ export_to_video(video, "output.mp4", fps=24)
138138
pipeline.set_adapters("cakeify")
139139

140140
# use "CAKEIFY" to trigger the LoRA
141-
prompt = "CAKEIFY a person using a knife to cut a cake shaped like a cereal box"
142-
image = load_image("https://i5.walmartimages.com/asr/c0463def-4995-47a7-9486-294fff8cf9fc.f9779f3fc4c621cf1fe86465af1d2ecd.jpeg")
141+
prompt = "CAKEIFY a person using a knife to cut a cake shaped like a Pikachu plushie"
142+
image = load_image("https://huggingface.co/Lightricks/LTX-Video-Cakeify-LoRA/resolve/main/assets/images/pikachu.png")
143143

144144
video = pipeline(
145145
prompt=prompt,
146146
image=image,
147-
width=768,
148-
height=512,
147+
width=576,
148+
height=576,
149149
num_frames=161,
150150
decode_timestep=0.03,
151151
decode_noise_scale=0.025,
152152
num_inference_steps=50,
153153
).frames[0]
154-
export_to_video(video, "output.mp4", fps=24)
154+
export_to_video(video, "output.mp4", fps=26)
155155
```
156156

157157
- LTX-Video supports loading from single files, such as [GGUF checkpoints](../../quantization/gguf), with [`loaders.FromOriginalModelMixin.from_single_file`] or [`loaders.FromSingleFileMixin.from_single_file`].

docs/source/en/api/pipelines/wan.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,19 @@ export_to_video(output, "output.mp4", fps=16)
169169
from diffusers.utils import export_to_video
170170

171171
vae = AutoencoderKLWan.from_pretrained(
172-
"Wan-AI/Wan2.1-T2V-14B-Diffusers", subfolder="vae", torch_dtype=torch.float32
172+
"Wan-AI/Wan2.1-T2V-1.3B-Diffusers", subfolder="vae", torch_dtype=torch.float32
173173
)
174174
pipeline = WanPipeline.from_pretrained(
175-
"Wan-AI/Wan2.1-T2V-14B-Diffusers", vae=vae, torch_dtype=torch.bfloat16
175+
"Wan-AI/Wan2.1-T2V-1.3B-Diffusers", vae=vae, torch_dtype=torch.bfloat16
176176
)
177177
pipeline.scheduler = UniPCMultistepScheduler.from_config(
178178
pipeline.scheduler.config, flow_shift=5.0
179179
)
180180
pipeline.to("cuda")
181181

182-
pipeline.load_lora_weights("benjamin-paine/steamboat-willie-14b", adapter_name="steamboat-willie")
182+
pipeline.load_lora_weights("benjamin-paine/steamboat-willie-1.3b", adapter_name="steamboat-willie")
183183
pipeline.set_adapters("steamboat-willie")
184-
184+
185185
pipeline.enable_model_cpu_offload()
186186

187187
# use "steamboat willie style" to trigger the LoRA
@@ -201,7 +201,7 @@ export_to_video(output, "output.mp4", fps=16)
201201
export_to_video(output, "output.mp4", fps=16)
202202
```
203203

204-
- [`WanTransformer3DModel`] and [`AutoencoderKLWan`] supports loading from single files with [`!loaders.FromSingleFileMixin.from_single_file`].
204+
- [`WanTransformer3DModel`] and [`AutoencoderKLWan`] supports loading from single files with [`~loaders.FromSingleFileMixin.from_single_file`].
205205

206206
```py
207207
# pip install ftfy

0 commit comments

Comments
 (0)