mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-16 17:04:42 +03:00
Fixed path issue while extras batch processing
This commit is contained in:
parent
74088c2a06
commit
60872c5b40
@ -119,9 +119,13 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_
|
|||||||
while len(cached_images) > 2:
|
while len(cached_images) > 2:
|
||||||
del cached_images[next(iter(cached_images.keys()))]
|
del cached_images[next(iter(cached_images.keys()))]
|
||||||
|
|
||||||
images.save_image(image, path=outpath, basename="", seed=None, prompt=None, extension=opts.samples_format, info=info, short_filename=True,
|
if opts.use_original_name_batch and image_name != None:
|
||||||
no_prompt=True, grid=False, pnginfo_section_name="extras", existing_info=existing_pnginfo,
|
basename = os.path.splitext(os.path.basename(image_name))[0]
|
||||||
forced_filename=image_name if opts.use_original_name_batch else None)
|
else:
|
||||||
|
basename = ''
|
||||||
|
|
||||||
|
images.save_image(image, path=outpath, basename=basename, seed=None, prompt=None, extension=opts.samples_format, info=info, short_filename=True,
|
||||||
|
no_prompt=True, grid=False, pnginfo_section_name="extras", existing_info=existing_pnginfo, forced_filename=None)
|
||||||
|
|
||||||
if opts.enable_pnginfo:
|
if opts.enable_pnginfo:
|
||||||
image.info = existing_pnginfo
|
image.info = existing_pnginfo
|
||||||
|
Loading…
Reference in New Issue
Block a user