mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-20 05:10:15 +08:00
don't override default if output_dir is blank
This commit is contained in:
parent
9857537053
commit
53ccdefc01
@ -105,6 +105,7 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args, to_scale=Fal
|
|||||||
|
|
||||||
proc = modules.scripts.scripts_img2img.run(p, *args)
|
proc = modules.scripts.scripts_img2img.run(p, *args)
|
||||||
if proc is None:
|
if proc is None:
|
||||||
|
if output_dir:
|
||||||
p.outpath_samples = output_dir
|
p.outpath_samples = output_dir
|
||||||
p.override_settings['save_to_dirs'] = False
|
p.override_settings['save_to_dirs'] = False
|
||||||
if p.n_iter > 1 or p.batch_size > 1:
|
if p.n_iter > 1 or p.batch_size > 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user