mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-05-01 03:31:35 +00:00
Fix bug that can happen with fast processing dataset
This commit is contained in:
@@ -91,6 +91,8 @@ class FileItemDTO(
|
|||||||
except image_utils.UnknownImageFormat:
|
except image_utils.UnknownImageFormat:
|
||||||
print_once(f'Warning: Some images in the dataset cannot be fast read. ' + \
|
print_once(f'Warning: Some images in the dataset cannot be fast read. ' + \
|
||||||
f'This process is faster for png, jpeg')
|
f'This process is faster for png, jpeg')
|
||||||
|
img = exif_transpose(Image.open(self.path))
|
||||||
|
w, h = img.size
|
||||||
else:
|
else:
|
||||||
img = exif_transpose(Image.open(self.path))
|
img = exif_transpose(Image.open(self.path))
|
||||||
w, h = img.size
|
w, h = img.size
|
||||||
|
|||||||
Reference in New Issue
Block a user