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
d72299d4
Unverified
Commit
d72299d4
authored
Nov 06, 2025
by
Jacob Zhong
Committed by
GitHub
Nov 06, 2025
Browse files
Make the cv2 dependency optional (#27780)
Signed-off-by:
Jacob
<
cmpute@qq.com
>
parent
80679f10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/benchmarks/datasets.py
vllm/benchmarks/datasets.py
+2
-1
No files found.
vllm/benchmarks/datasets.py
View file @
d72299d4
...
...
@@ -30,7 +30,6 @@ from io import BytesIO
from
tempfile
import
NamedTemporaryFile
from
typing
import
Any
,
cast
import
cv2
import
numpy
as
np
from
PIL
import
Image
from
transformers
import
PreTrainedTokenizerBase
...
...
@@ -850,6 +849,8 @@ class RandomMultiModalDataset(RandomDataset):
Creates a video with random pixel values, encodes it to MP4 format,
and returns the content as bytes.
"""
import
cv2
random_pixels
=
self
.
_rng
.
integers
(
0
,
256
,
...
...
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