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
f2e1def0
"docs/vscode:/vscode.git/clone" did not exist on "2d73eafec2fc405bd29a790c4cc6d0ef11b230ff"
Commit
f2e1def0
authored
Sep 01, 2025
by
Zhuguanyu Wu
Committed by
GitHub
Sep 01, 2025
Browse files
Update scheduler.py for wan22_moe_distill (#274)
parent
6c2f36de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lightx2v/models/schedulers/wan/step_distill/scheduler.py
lightx2v/models/schedulers/wan/step_distill/scheduler.py
+2
-4
No files found.
lightx2v/models/schedulers/wan/step_distill/scheduler.py
View file @
f2e1def0
...
@@ -71,9 +71,7 @@ class Wan22StepDistillScheduler(WanStepDistillScheduler):
...
@@ -71,9 +71,7 @@ class Wan22StepDistillScheduler(WanStepDistillScheduler):
flow_pred
=
self
.
noise_pred
.
to
(
torch
.
float32
)
flow_pred
=
self
.
noise_pred
.
to
(
torch
.
float32
)
sigma
=
self
.
sigmas
[
self
.
step_index
].
item
()
sigma
=
self
.
sigmas
[
self
.
step_index
].
item
()
noisy_image_or_video
=
self
.
latents
.
to
(
torch
.
float32
)
-
sigma
*
flow_pred
noisy_image_or_video
=
self
.
latents
.
to
(
torch
.
float32
)
-
sigma
*
flow_pred
if
self
.
step_index
<
self
.
boundary_step_index
:
noisy_image_or_video
=
noisy_image_or_video
/
self
.
sigma_boundary
if
self
.
step_index
<
self
.
infer_steps
-
1
:
if
self
.
step_index
<
self
.
infer_steps
-
1
:
sigma
=
self
.
sigmas
[
self
.
step_index
+
1
].
item
()
sigma
_n
=
self
.
sigmas
[
self
.
step_index
+
1
].
item
()
noisy_image_or_video
=
self
.
add_noise
(
noisy_image_or_video
,
torch
.
randn_like
(
noisy_image_or_video
),
self
.
sigmas
[
self
.
step_index
+
1
].
item
())
noisy_image_or_video
=
noisy_image_or_video
+
flow_pred
*
sigma_n
self
.
latents
=
noisy_image_or_video
.
to
(
self
.
latents
.
dtype
)
self
.
latents
=
noisy_image_or_video
.
to
(
self
.
latents
.
dtype
)
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