aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPluventi <wafael781227@gmail.com>2023-04-03 03:32:48 +0200
committerPluventi <wafael781227@gmail.com>2023-04-03 03:32:48 +0200
commit9a4e650800adc444c07a48572a958a71c2144c15 (patch)
tree5a7093b4dd9c241ab8a4bd7fcb5db267315b86aa
parent22bcc7be428c94e9408f589966c2040187245d81 (diff)
Update postprocessing.py
Solution for anyone getting an error when batching on extras, even with a clean install of "stable diffusion webui"
-rw-r--r--modules/postprocessing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/postprocessing.py b/modules/postprocessing.py
index 09d8e605..63b9caf8 100644
--- a/modules/postprocessing.py
+++ b/modules/postprocessing.py
@@ -18,7 +18,7 @@ def run_postprocessing(extras_mode, image, image_folder, input_dir, output_dir,
if extras_mode == 1:
for img in image_folder:
- image = Image.open(img)
+ image = Image.open(img.name)
image_data.append(image)
image_names.append(os.path.splitext(img.orig_name)[0])
elif extras_mode == 2: