Merge pull request #412 from boopage/patch-1

Update train_wan_t2v.py - include .jpeg for image detection
This commit is contained in:
Zhongjie Duan
2025-03-06 12:46:43 +08:00
committed by GitHub

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