We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a87183c commit 79c9ef2Copy full SHA for 79c9ef2
vllm/benchmarks/datasets.py
@@ -30,7 +30,6 @@
30
from tempfile import NamedTemporaryFile
31
from typing import Any, cast
32
33
-import cv2
34
import numpy as np
35
from PIL import Image
36
from transformers import PreTrainedTokenizerBase
@@ -850,6 +849,8 @@ def generate_synthetic_video(
850
849
Creates a video with random pixel values, encodes it to MP4 format,
851
and returns the content as bytes.
852
"""
+ import cv2
853
+
854
random_pixels = self._rng.integers(
855
0,
856
256,
0 commit comments