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
31d1e13d
Commit
31d1e13d
authored
Jul 13, 2025
by
GoatWu
Browse files
bug fixed
parent
508db683
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lightx2v/models/networks/wan/infer/pre_infer.py
lightx2v/models/networks/wan/infer/pre_infer.py
+1
-1
No files found.
lightx2v/models/networks/wan/infer/pre_infer.py
View file @
31d1e13d
...
...
@@ -64,7 +64,7 @@ class WanPreInfer:
embed
=
sinusoidal_embedding_1d
(
self
.
freq_dim
,
t
.
flatten
())
if
self
.
enable_dynamic_cfg
:
s
=
torch
.
tensor
([
self
.
cfg_scale
],
dtype
=
torch
.
float32
).
to
(
x
.
device
)
cfg_embed
=
guidance_scale_embedding
(
s
,
embedding_dim
=
256
,
cfg_range
=
(
0
.0
,
8.0
),
target_range
=
1000.0
,
dtype
=
torch
.
float32
).
type_as
(
x
)
cfg_embed
=
guidance_scale_embedding
(
s
,
embedding_dim
=
256
,
cfg_range
=
(
1
.0
,
8.0
),
target_range
=
1000.0
,
dtype
=
torch
.
float32
).
type_as
(
x
)
cfg_embed
=
weights
.
cfg_cond_proj
.
apply
(
cfg_embed
)
embed
=
embed
+
cfg_embed
if
GET_DTYPE
()
!=
"BF16"
:
...
...
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