Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
4aed0ca6
Unverified
Commit
4aed0ca6
authored
Apr 10, 2025
by
Jintao
Committed by
GitHub
Apr 10, 2025
Browse files
[bugfix] Avoid the time consumption caused by creating dummy videos. (#16371)
parent
1621b252
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vllm/multimodal/profiling.py
vllm/multimodal/profiling.py
+6
-0
No files found.
vllm/multimodal/profiling.py
View file @
4aed0ca6
...
...
@@ -78,6 +78,8 @@ class BaseDummyInputsBuilder(ABC, Generic[_I]):
length
:
int
,
num_audios
:
int
,
)
->
list
[
npt
.
NDArray
]:
if
num_audios
==
0
:
return
[]
audio
=
np
.
zeros
((
length
,
))
return
[
audio
]
*
num_audios
...
...
@@ -88,6 +90,8 @@ class BaseDummyInputsBuilder(ABC, Generic[_I]):
height
:
int
,
num_images
:
int
,
)
->
list
[
Image
.
Image
]:
if
num_images
==
0
:
return
[]
image
=
Image
.
new
(
"RGB"
,
(
width
,
height
),
color
=
255
)
return
[
image
]
*
num_images
...
...
@@ -99,6 +103,8 @@ class BaseDummyInputsBuilder(ABC, Generic[_I]):
num_frames
:
int
,
num_videos
:
int
,
)
->
list
[
npt
.
NDArray
]:
if
num_videos
==
0
:
return
[]
video
=
np
.
full
((
num_frames
,
width
,
height
,
3
),
255
)
return
[
video
]
*
num_videos
...
...
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