fix: normalize image tensors in I2VDataset

This commit is contained in:
OleehyO 2025-01-12 06:01:48 +00:00
parent 30ba1085ff
commit b362663679

View File

@ -143,6 +143,7 @@ class BaseI2VDataset(Dataset):
logger.debug(f"Loaded encoded video from {encoded_video_path}", main_process_only=False)
# shape of image: [C, H, W]
_, image = self.preprocess(None, self.images[index])
image = self.image_transform(image)
else:
frames, image = self.preprocess(video, image)
frames = frames.to(self.device)