print bad image correctly this time
This commit is contained in:
parent
4eac671544
commit
ed05f3aaa9
|
@ -72,9 +72,9 @@ class DataLoaderMultiAspect():
|
||||||
try:
|
try:
|
||||||
image = Image.open(pathname).convert('RGB')
|
image = Image.open(pathname).convert('RGB')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"File corrupt. Cannot continue. Error opening image: {self.pathname}")
|
print(f"File corrupt. Cannot continue. Error opening image: {pathname}")
|
||||||
print(e)
|
print(e)
|
||||||
print(f"You should remove this image or try to correct it by resaving it.")
|
print(f"You should remove this image or try to correct it by resaving it in an image editor.")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
width, height = image.size
|
width, height = image.size
|
||||||
|
|
Loading…
Reference in New Issue