Update train_wan_t2v.py

Included .jpeg extension for image type detection, preventing an error trying to the read image as a video format
This commit is contained in:
boopage
2025-03-05 11:13:11 +01:00
committed by GitHub
parent 41e3e4e157
commit 34a5ef8c15

View File

@@ -70,7 +70,7 @@ class TextVideoDataset(torch.utils.data.Dataset):
def is_image(self, file_path):
file_ext_name = file_path.split(".")[-1]
if file_ext_name.lower() in ["jpg", "png", "webp"]:
if file_ext_name.lower() in ["jpg", "jpeg", "png", "webp"]:
return True
return False