aboutsummaryrefslogtreecommitdiffstats
path: root/modules/img2img.py
diff options
context:
space:
mode:
authorBruno Seoane <brunoseoaneamarillo@gmail.com>2022-11-01 15:06:10 +0000
committerBruno Seoane <brunoseoaneamarillo@gmail.com>2022-11-01 15:06:10 +0000
commit31db25ecc8d9c3996e7bac00cc616ee12557b7d3 (patch)
treea2126c45535b989a7954ff30e142d73d1848cb0a /modules/img2img.py
parent952ff32a5ffe7495721272a3443714b93c267ca9 (diff)
parent458cca03915ba437ac65a2087965f3885e6022bc (diff)
downloadstable-diffusion-webui-gfx803-31db25ecc8d9c3996e7bac00cc616ee12557b7d3.tar.gz
stable-diffusion-webui-gfx803-31db25ecc8d9c3996e7bac00cc616ee12557b7d3.tar.bz2
stable-diffusion-webui-gfx803-31db25ecc8d9c3996e7bac00cc616ee12557b7d3.zip
Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui
Diffstat (limited to 'modules/img2img.py')
-rw-r--r--modules/img2img.py1
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))