diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-11-01 12:08:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 12:08:27 +0000 |
commit | c28de154b0ffb143019387f9fc169953347a60f4 (patch) | |
tree | d90808386849826ce4a932e31d43737a27f48571 | |
parent | d79b93084c65f73115bedd8c5d5a82e3e2a4a320 (diff) | |
parent | 525c1edf431d9c9efc1349be8657f0301299e3bc (diff) | |
download | stable-diffusion-webui-gfx803-c28de154b0ffb143019387f9fc169953347a60f4.tar.gz stable-diffusion-webui-gfx803-c28de154b0ffb143019387f9fc169953347a60f4.tar.bz2 stable-diffusion-webui-gfx803-c28de154b0ffb143019387f9fc169953347a60f4.zip |
Merge pull request #4087 from ikasumi/feat/batch-img2img-improve
make save dir if save dir is not exists
-rw-r--r-- | modules/img2img.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index efda26e1..35c5df9b 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -55,6 +55,7 @@ def process_batch(p, input_dir, output_dir, args): filename = f"{left}-{n}{right}"
if not save_normally:
+ os.makedirs(output_dir, exist_ok=True)
processed_image.save(os.path.join(output_dir, filename))
|