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
fab43a07
Commit
fab43a07
authored
Aug 12, 2025
by
gushiqiao
Committed by
GitHub
Aug 12, 2025
Browse files
Update vae_2_2.py
parent
7516ad2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lightx2v/models/video_encoders/hf/wan/vae_2_2.py
lightx2v/models/video_encoders/hf/wan/vae_2_2.py
+1
-1
No files found.
lightx2v/models/video_encoders/hf/wan/vae_2_2.py
View file @
fab43a07
...
@@ -828,7 +828,7 @@ def _video_vae(pretrained_path=None, z_dim=16, dim=160, device="cpu", cpu_offloa
...
@@ -828,7 +828,7 @@ def _video_vae(pretrained_path=None, z_dim=16, dim=160, device="cpu", cpu_offloa
# load checkpoint
# load checkpoint
logging
.
info
(
f
"loading
{
pretrained_path
}
"
)
logging
.
info
(
f
"loading
{
pretrained_path
}
"
)
weights_dict
=
load_weights
(
pretrained_path
,
cpu_offload
=
cpu_offload
)
weights_dict
=
load_weights
(
pretrained_path
,
cpu_offload
=
cpu_offload
)
model
.
load_state_dict
(
weights_dict
)
model
.
load_state_dict
(
weights_dict
,
assign
=
True
)
return
model
return
model
...
...
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