Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
47045862
Unverified
Commit
47045862
authored
Jul 01, 2025
by
Sayak Paul
Committed by
GitHub
Jul 01, 2025
Browse files
[docs] fix single_file example. (#11847)
fix single_file example.
parent
a79c3af6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/source/en/api/pipelines/wan.md
docs/source/en/api/pipelines/wan.md
+3
-3
No files found.
docs/source/en/api/pipelines/wan.md
View file @
47045862
...
...
@@ -302,12 +302,12 @@ The general rule of thumb to keep in mind when preparing inputs for the VACE pip
```
py
# pip install ftfy
import
torch
from
diffusers
import
WanPipeline
,
AutoModel
from
diffusers
import
WanPipeline
,
WanTransformer3DModel
,
AutoencoderKLWan
vae
=
Auto
Model
.
from_single_file
(
vae
=
Auto
encoderKLWan
.
from_single_file
(
"https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/vae/wan_2.1_vae.safetensors"
)
transformer
=
Auto
Model
.
from_single_file
(
transformer
=
WanTransformer3D
Model
.
from_single_file
(
"https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/diffusion_models/wan2.1_t2v_1.3B_bf16.safetensors"
,
torch_dtype
=
torch
.
bfloat16
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment