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
8c1d91e1
Unverified
Commit
8c1d91e1
authored
Nov 12, 2025
by
Watebear
Committed by
GitHub
Nov 12, 2025
Browse files
[bugfix]: fix conflict (#465)
Co-authored-by:
Yang Yong (雍洋)
<
yongyang1030@163.com
>
parent
ad564439
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lightx2v/utils/set_config.py
lightx2v/utils/set_config.py
+4
-3
No files found.
lightx2v/utils/set_config.py
View file @
8c1d91e1
...
@@ -71,6 +71,7 @@ def set_config(args):
...
@@ -71,6 +71,7 @@ def set_config(args):
logger
.
warning
(
f
"`num_frames - 1` has to be divisible by
{
config
[
'vae_stride'
][
0
]
}
. Rounding to the nearest number."
)
logger
.
warning
(
f
"`num_frames - 1` has to be divisible by
{
config
[
'vae_stride'
][
0
]
}
. Rounding to the nearest number."
)
config
[
"target_video_length"
]
=
config
[
"target_video_length"
]
//
config
[
"vae_stride"
][
0
]
*
config
[
"vae_stride"
][
0
]
+
1
config
[
"target_video_length"
]
=
config
[
"target_video_length"
]
//
config
[
"vae_stride"
][
0
]
*
config
[
"vae_stride"
][
0
]
+
1
if
config
[
"task"
]
not
in
[
"t2i"
,
"i2i"
]:
config
[
"attnmap_frame_num"
]
=
((
config
[
"target_video_length"
]
-
1
)
//
config
[
"vae_stride"
][
0
]
+
1
)
//
config
[
"patch_size"
][
0
]
config
[
"attnmap_frame_num"
]
=
((
config
[
"target_video_length"
]
-
1
)
//
config
[
"vae_stride"
][
0
]
+
1
)
//
config
[
"patch_size"
][
0
]
if
config
[
"model_cls"
]
==
"seko_talk"
:
if
config
[
"model_cls"
]
==
"seko_talk"
:
config
[
"attnmap_frame_num"
]
+=
1
config
[
"attnmap_frame_num"
]
+=
1
...
...
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