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
8712a9ca
Commit
8712a9ca
authored
Jul 31, 2025
by
wangshankun
Browse files
audio scheduler using noise generator
parent
bb642a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lightx2v/models/schedulers/wan/audio/scheduler.py
lightx2v/models/schedulers/wan/audio/scheduler.py
+1
-1
No files found.
lightx2v/models/schedulers/wan/audio/scheduler.py
View file @
8712a9ca
...
@@ -98,5 +98,5 @@ class ConsistencyModelScheduler(EulerSchedulerTimestepFix):
...
@@ -98,5 +98,5 @@ class ConsistencyModelScheduler(EulerSchedulerTimestepFix):
sigma
=
unsqueeze_to_ndim
(
self
.
sigmas
[
self
.
step_index
],
sample
.
ndim
).
to
(
sample
.
device
,
sample
.
dtype
)
sigma
=
unsqueeze_to_ndim
(
self
.
sigmas
[
self
.
step_index
],
sample
.
ndim
).
to
(
sample
.
device
,
sample
.
dtype
)
sigma_next
=
unsqueeze_to_ndim
(
self
.
sigmas
[
self
.
step_index
+
1
],
sample
.
ndim
).
to
(
sample
.
device
,
sample
.
dtype
)
sigma_next
=
unsqueeze_to_ndim
(
self
.
sigmas
[
self
.
step_index
+
1
],
sample
.
ndim
).
to
(
sample
.
device
,
sample
.
dtype
)
x0
=
sample
-
model_output
*
sigma
x0
=
sample
-
model_output
*
sigma
x_t_next
=
x0
*
(
1
-
sigma_next
)
+
sigma_next
*
torch
.
randn
_like
(
x0
)
x_t_next
=
x0
*
(
1
-
sigma_next
)
+
sigma_next
*
torch
.
randn
(
x0
.
shape
,
dtype
=
x0
.
dtype
,
device
=
x0
.
device
,
generator
=
self
.
generator
)
self
.
latents
=
x_t_next
self
.
latents
=
x_t_next
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