diff options
author | space-nuko <24979496+space-nuko@users.noreply.github.com> | 2023-03-11 00:42:46 +0000 |
---|---|---|
committer | space-nuko <24979496+space-nuko@users.noreply.github.com> | 2023-03-11 00:42:46 +0000 |
commit | ac38ad7e60bb0ff3194536a72dd1259edad0b30a (patch) | |
tree | 7bd8f6611874a833298c77dc8528f569338f373e /modules/img2img.py | |
parent | 716a69237cefb385f71105dbbf50e92d664e0f42 (diff) | |
parent | 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 (diff) | |
download | stable-diffusion-webui-gfx803-ac38ad7e60bb0ff3194536a72dd1259edad0b30a.tar.gz stable-diffusion-webui-gfx803-ac38ad7e60bb0ff3194536a72dd1259edad0b30a.tar.bz2 stable-diffusion-webui-gfx803-ac38ad7e60bb0ff3194536a72dd1259edad0b30a.zip |
Merge remote-tracking branch 'origin/master' into unipc
Diffstat (limited to 'modules/img2img.py')
-rw-r--r-- | modules/img2img.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index bcc158dc..c973b770 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -73,6 +73,8 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args): if not save_normally:
os.makedirs(output_dir, exist_ok=True)
+ if processed_image.mode == 'RGBA':
+ processed_image = processed_image.convert("RGB")
processed_image.save(os.path.join(output_dir, filename))
|