Merge pull request #14452 from AUTOMATIC1111/save-info-of-init-image

save info of init image
This commit is contained in:
AUTOMATIC1111 2023-12-30 14:41:39 +03:00 committed by GitHub
commit a79890efd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1482,7 +1482,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
# Save init image # Save init image
if opts.save_init_img: if opts.save_init_img:
self.init_img_hash = hashlib.md5(img.tobytes()).hexdigest() self.init_img_hash = hashlib.md5(img.tobytes()).hexdigest()
images.save_image(img, path=opts.outdir_init_images, basename=None, forced_filename=self.init_img_hash, save_to_dirs=False) images.save_image(img, path=opts.outdir_init_images, basename=None, forced_filename=self.init_img_hash, save_to_dirs=False, existing_info=img.info)
image = images.flatten(img, opts.img2img_background_color) image = images.flatten(img, opts.img2img_background_color)