mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-05-01 03:31:35 +00:00
Fixes for dataloader
This commit is contained in:
@@ -251,8 +251,8 @@ class ImageProcessingDTOMixin:
|
||||
transform: Union[None, transforms.Compose]
|
||||
):
|
||||
# todo make sure this matches
|
||||
img = Image.open(self.path).convert('RGB')
|
||||
try:
|
||||
img = Image.open(self.path).convert('RGB')
|
||||
img = exif_transpose(img)
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
Reference in New Issue
Block a user