mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
save info of init image
This commit is contained in:
parent
de03882d6c
commit
dc57ec0296
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user