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
xuwx1
LightX2V
Commits
aaf5f643
Commit
aaf5f643
authored
Aug 29, 2025
by
sandy
Committed by
GitHub
Aug 29, 2025
Browse files
fix: video stitching flicker/shrink issue (#263)
parent
74e443ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lightx2v/models/runners/wan/wan_audio_runner.py
lightx2v/models/runners/wan/wan_audio_runner.py
+2
-1
No files found.
lightx2v/models/runners/wan/wan_audio_runner.py
View file @
aaf5f643
...
@@ -362,7 +362,8 @@ class WanAudioRunner(WanRunner): # type:ignore
...
@@ -362,7 +362,8 @@ class WanAudioRunner(WanRunner): # type:ignore
frames_n
=
(
nframe
-
1
)
*
4
+
1
frames_n
=
(
nframe
-
1
)
*
4
+
1
prev_mask
=
torch
.
ones
((
1
,
frames_n
,
height
,
width
),
device
=
device
,
dtype
=
dtype
)
prev_mask
=
torch
.
ones
((
1
,
frames_n
,
height
,
width
),
device
=
device
,
dtype
=
dtype
)
prev_mask
[:,
prev_len
:]
=
0
prev_frame_len
=
max
((
prev_len
-
1
)
*
4
+
1
,
0
)
prev_mask
[:,
prev_frame_len
:]
=
0
prev_mask
=
self
.
_wan_mask_rearrange
(
prev_mask
)
prev_mask
=
self
.
_wan_mask_rearrange
(
prev_mask
)
if
prev_latents
is
not
None
:
if
prev_latents
is
not
None
:
...
...
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