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
4626613f
Commit
4626613f
authored
Jul 09, 2025
by
gushiqiao
Browse files
Fix config bugs
parent
8ae9e71d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lightx2v/utils/set_config.py
lightx2v/utils/set_config.py
+7
-0
No files found.
lightx2v/utils/set_config.py
100644 → 100755
View file @
4626613f
...
...
@@ -39,6 +39,13 @@ def set_config(args):
model_config
=
json
.
load
(
f
)
config
.
update
(
model_config
)
if
config
.
get
(
"dit_quantized_ckpt"
,
None
)
is
not
None
:
config_path
=
os
.
path
.
join
(
config
.
dit_quantized_ckpt
,
"config.json"
)
if
os
.
path
.
exists
(
config_path
):
with
open
(
config_path
,
"r"
)
as
f
:
model_config
=
json
.
load
(
f
)
config
.
update
(
model_config
)
if
config
.
task
==
"i2v"
:
if
config
.
target_video_length
%
config
.
vae_stride
[
0
]
!=
1
:
logger
.
warning
(
f
"`num_frames - 1` has to be divisible by
{
config
.
vae_stride
[
0
]
}
. Rounding to the nearest number."
)
...
...
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