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
e53d3cb4
Commit
e53d3cb4
authored
Jul 28, 2025
by
gushiqiao
Browse files
Fix bug
parent
ef43445c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lightx2v/models/networks/wan/model.py
lightx2v/models/networks/wan/model.py
+5
-5
No files found.
lightx2v/models/networks/wan/model.py
View file @
e53d3cb4
...
...
@@ -40,16 +40,16 @@ class WanModel:
if
self
.
dit_quantized
:
dit_quant_scheme
=
self
.
config
.
mm_config
.
get
(
"mm_type"
).
split
(
"-"
)[
1
]
self
.
dit_quantized_ckpt
=
find_hf_model_path
(
config
,
"dit_quantized_ckpt"
,
subdir
=
dit_quant_scheme
)
quant_config_path
=
os
.
path
.
join
(
self
.
dit_quantized_ckpt
,
"config.json"
)
if
os
.
path
.
exists
(
quant_config_path
):
with
open
(
quant_config_path
,
"r"
)
as
f
:
quant_model_config
=
json
.
load
(
f
)
self
.
config
.
update
(
quant_model_config
)
else
:
self
.
dit_quantized_ckpt
=
None
assert
not
self
.
config
.
get
(
"lazy_load"
,
False
)
self
.
config
.
dit_quantized_ckpt
=
self
.
dit_quantized_ckpt
quant_config_path
=
os
.
path
.
join
(
self
.
config
.
dit_quantized_ckpt
,
"config.json"
)
if
os
.
path
.
exists
(
quant_config_path
):
with
open
(
quant_config_path
,
"r"
)
as
f
:
quant_model_config
=
json
.
load
(
f
)
self
.
config
.
update
(
quant_model_config
)
self
.
weight_auto_quant
=
self
.
config
.
mm_config
.
get
(
"weight_auto_quant"
,
False
)
if
self
.
dit_quantized
:
...
...
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