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
798265f2
Unverified
Commit
798265f2
authored
Jun 23, 2025
by
Yuanchen Guo
Committed by
GitHub
Jun 23, 2025
Browse files
[Wan] Fix mask padding in Wan VACE pipeline. (#11778)
parent
cd813499
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/wan/pipeline_wan_vace.py
src/diffusers/pipelines/wan/pipeline_wan_vace.py
+1
-1
No files found.
src/diffusers/pipelines/wan/pipeline_wan_vace.py
View file @
798265f2
...
...
@@ -593,7 +593,7 @@ class WanVACEPipeline(DiffusionPipeline, WanLoraLoaderMixin):
num_ref_images
=
len
(
reference_images_batch
)
if
num_ref_images
>
0
:
mask_padding
=
torch
.
zeros_like
(
mask_
[:,
:
num_ref_images
,
:,
:])
mask_
=
torch
.
cat
([
mask_
,
mask_
padding
],
dim
=
1
)
mask_
=
torch
.
cat
([
mask_padding
,
mask_
],
dim
=
1
)
mask_list
.
append
(
mask_
)
return
torch
.
stack
(
mask_list
)
...
...
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