Check for uppercase file extension too

This commit is contained in:
Disty0
2025-03-17 17:44:29 +03:00
parent 564ec5fb7f
commit 620a06f517

View File

@@ -1158,7 +1158,7 @@ class BaseDataset(torch.utils.data.Dataset):
)
def get_image_size(self, image_path):
if image_path.endswith(".jxl"):
if image_path.endswith(".jxl") or image_path.endswith(".JXL"):
return get_jxl_size(image_path)
return imagesize.get(image_path)