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
067a2b61
Commit
067a2b61
authored
Aug 18, 2025
by
helloyongyang
Browse files
update default runner
parent
b086210c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
lightx2v/models/runners/default_runner.py
lightx2v/models/runners/default_runner.py
+13
-9
No files found.
lightx2v/models/runners/default_runner.py
View file @
067a2b61
...
...
@@ -218,15 +218,7 @@ class DefaultRunner(BaseRunner):
logger
.
info
(
f
"Enhanced prompt:
{
enhanced_prompt
}
"
)
return
enhanced_prompt
def
run_pipeline
(
self
,
save_video
=
True
):
if
self
.
config
[
"use_prompt_enhancer"
]:
self
.
config
[
"prompt_enhanced"
]
=
self
.
post_prompt_enhancer
()
self
.
inputs
=
self
.
run_input_encoder
()
self
.
set_target_shape
()
latents
,
generator
=
self
.
run_dit
()
images
=
self
.
run_vae_decoder
(
latents
,
generator
)
def
process_images_after_vae_decoder
(
self
,
images
,
save_video
=
True
):
images
=
vae_to_comfyui_image
(
images
)
if
"video_frame_interpolation"
in
self
.
config
:
...
...
@@ -251,6 +243,18 @@ class DefaultRunner(BaseRunner):
save_to_video
(
images
,
self
.
config
.
save_video_path
,
fps
=
fps
,
method
=
"ffmpeg"
)
logger
.
info
(
f
"✅ Video saved successfully to:
{
self
.
config
.
save_video_path
}
✅"
)
def
run_pipeline
(
self
,
save_video
=
True
):
if
self
.
config
[
"use_prompt_enhancer"
]:
self
.
config
[
"prompt_enhanced"
]
=
self
.
post_prompt_enhancer
()
self
.
inputs
=
self
.
run_input_encoder
()
self
.
set_target_shape
()
latents
,
generator
=
self
.
run_dit
()
images
=
self
.
run_vae_decoder
(
latents
,
generator
)
self
.
process_images_after_vae_decoder
(
images
,
save_video
=
save_video
)
del
latents
,
generator
torch
.
cuda
.
empty_cache
()
gc
.
collect
()
...
...
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