Fixed path issue while extras batch processing
This commit is contained in:
parent
fb5a8cf0d9
commit
a13c3bed3c
1 changed files with 3 additions and 3 deletions
|
@ -125,10 +125,10 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_
|
||||||
if opts.use_original_name_batch and image_name != None:
|
if opts.use_original_name_batch and image_name != None:
|
||||||
basename = os.path.splitext(os.path.basename(image_name))[0]
|
basename = os.path.splitext(os.path.basename(image_name))[0]
|
||||||
else:
|
else:
|
||||||
basename = None
|
basename = ''
|
||||||
|
|
||||||
images.save_image(image, path=outpath, basename='', seed=None, prompt=None, extension=opts.samples_format, info=info, short_filename=True,
|
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=basename)
|
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 a new issue