From ed05f3aaa9b6538ae8c41974a23d13975d3e2ec1 Mon Sep 17 00:00:00 2001 From: Victor Hall Date: Tue, 17 Jan 2023 16:42:08 -0500 Subject: [PATCH] print bad image correctly this time --- ldm/data/data_loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldm/data/data_loader.py b/ldm/data/data_loader.py index 72257da..372e04b 100644 --- a/ldm/data/data_loader.py +++ b/ldm/data/data_loader.py @@ -72,9 +72,9 @@ class DataLoaderMultiAspect(): try: image = Image.open(pathname).convert('RGB') 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(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() width, height = image.size