[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:
Cyrus Leung 2025-03-19 18:42:31 +08:00 committed by GitHub
parent dafb4e504a
commit 1fe0fd12d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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