diff --git a/modules/ui_tempdir.py b/modules/ui_tempdir.py index 506017e5..85015db5 100644 --- a/modules/ui_tempdir.py +++ b/modules/ui_tempdir.py @@ -44,6 +44,8 @@ def save_pil_to_file(self, pil_image, dir=None, format="png"): if shared.opts.temp_dir != "": dir = shared.opts.temp_dir + else: + os.makedirs(dir, exist_ok=True) use_metadata = False metadata = PngImagePlugin.PngInfo()