diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-12-29 01:56:48 +0900 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-12-29 01:56:48 +0900 |
commit | dc57ec0296e768ee91290e16ab262404837c566d (patch) | |
tree | 8ba8efff21e6cdccad7e0b14ac3475e7266122c1 /modules/processing.py | |
parent | de03882d6ca56bc81058f5120f028678a6a54aaa (diff) |
save info of init image
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 9351e3fb..141f2f11 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -1482,7 +1482,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing): # Save init image
if opts.save_init_img:
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)
|