diff options
author | k_sugawara <k_sugawara@radiu5.co.jp> | 2022-11-01 00:40:54 +0000 |
---|---|---|
committer | k_sugawara <k_sugawara@radiu5.co.jp> | 2022-11-01 00:40:54 +0000 |
commit | 525c1edf431d9c9efc1349be8657f0301299e3bc (patch) | |
tree | e6c05610bb4ab4555b5667db99c7d508f9ec40eb /modules | |
parent | 5c9b3625fa03f18649e1843b5e9f2df2d4de94f9 (diff) | |
download | stable-diffusion-webui-gfx803-525c1edf431d9c9efc1349be8657f0301299e3bc.tar.gz stable-diffusion-webui-gfx803-525c1edf431d9c9efc1349be8657f0301299e3bc.tar.bz2 stable-diffusion-webui-gfx803-525c1edf431d9c9efc1349be8657f0301299e3bc.zip |
make save dir if save dir is not exists
Diffstat (limited to 'modules')
-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))
|