mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-02 19:39:46 +08:00
[Misc] Avoid unnecessary HF do_rescale warning when passing dummy data (#15107)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
parent
dafb4e504a
commit
1fe0fd12d3
@ -73,7 +73,7 @@ class BaseDummyInputsBuilder(ABC, Generic[_I]):
|
||||
height: int,
|
||||
num_images: int,
|
||||
) -> list[Image.Image]:
|
||||
image = Image.new("RGB", (width, height), color=0)
|
||||
image = Image.new("RGB", (width, height), color=255)
|
||||
return [image] * num_images
|
||||
|
||||
def _get_dummy_videos(
|
||||
@ -84,7 +84,7 @@ class BaseDummyInputsBuilder(ABC, Generic[_I]):
|
||||
num_frames: int,
|
||||
num_videos: int,
|
||||
) -> list[npt.NDArray]:
|
||||
video = np.zeros((num_frames, width, height, 3))
|
||||
video = np.full((num_frames, width, height, 3), 255)
|
||||
return [video] * num_videos
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user