Merge pull request #4087 from ikasumi/feat/batch-img2img-improve

make save dir if save dir is not exists
This commit is contained in:
AUTOMATIC1111 2022-11-01 15:08:27 +03:00 committed by GitHub
commit c28de154b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))