mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
Check for uppercase file extension too
This commit is contained in:
@@ -1158,7 +1158,7 @@ class BaseDataset(torch.utils.data.Dataset):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def get_image_size(self, image_path):
|
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 get_jxl_size(image_path)
|
||||||
return imagesize.get(image_path)
|
return imagesize.get(image_path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user