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
8530a2fb
Unverified
Commit
8530a2fb
authored
Dec 08, 2025
by
PengGao
Committed by
GitHub
Dec 08, 2025
Browse files
Refactor target_fps handling in TorchrunInferenceWorker (#580)
parent
bc2828b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lightx2v/server/services/inference/worker.py
lightx2v/server/services/inference/worker.py
+7
-4
No files found.
lightx2v/server/services/inference/worker.py
View file @
8530a2fb
...
...
@@ -61,10 +61,13 @@ class TorchrunInferenceWorker:
task_data
[
"return_result_tensor"
]
=
False
task_data
[
"negative_prompt"
]
=
task_data
.
get
(
"negative_prompt"
,
""
)
if
task_data
.
get
(
"target_fps"
)
is
not
None
and
"video_frame_interpolation"
in
self
.
runner
.
config
:
task_data
[
"video_frame_interpolation"
]
=
dict
(
self
.
runner
.
config
[
"video_frame_interpolation"
])
task_data
[
"video_frame_interpolation"
][
"target_fps"
]
=
task_data
[
"target_fps"
]
del
task_data
[
"target_fps"
]
target_fps
=
task_data
.
pop
(
"target_fps"
,
None
)
if
target_fps
is
not
None
:
vfi_cfg
=
self
.
runner
.
config
.
get
(
"video_frame_interpolation"
)
if
vfi_cfg
:
task_data
[
"video_frame_interpolation"
]
=
{
**
vfi_cfg
,
"target_fps"
:
target_fps
}
else
:
logger
.
warning
(
f
"Target FPS
{
target_fps
}
is set, but video frame interpolation is not configured"
)
task_data
=
EasyDict
(
task_data
)
input_info
=
set_input_info
(
task_data
)
...
...
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