aboutsummaryrefslogtreecommitdiff
path: root/modules/img2img.py
diff options
context:
space:
mode:
authorMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-11-02 00:25:08 +0700
committerGitHub <noreply@github.com>2022-11-02 00:25:08 +0700
commitf8c6468d42e1202f7aeaeb961ab003aa0a2daf99 (patch)
treea2542ce9bd8bba1e8aa93acd510a12ca8a0b344f /modules/img2img.py
parent7c8c3715f552378cf81ad28f26fad92b37bd153d (diff)
parent198a1ffcfc963a3d74674fad560e87dbebf7949f (diff)
Merge branch 'master' into vae-picker
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))