diff options
author | CodeHatchling <steve@codehatch.com> | 2023-12-05 00:57:10 +0000 |
---|---|---|
committer | CodeHatchling <steve@codehatch.com> | 2023-12-05 00:57:10 +0000 |
commit | b32a334e3da7b06d82441beaa08a673b4f55bca1 (patch) | |
tree | dc668cf300814fff4a682fcf2c5717d2f620f0b9 /modules/processing.py | |
parent | 60c602232fd760fb548fb0b3d18b5297f8823c2a (diff) | |
download | stable-diffusion-webui-gfx803-b32a334e3da7b06d82441beaa08a673b4f55bca1.tar.gz stable-diffusion-webui-gfx803-b32a334e3da7b06d82441beaa08a673b4f55bca1.tar.bz2 stable-diffusion-webui-gfx803-b32a334e3da7b06d82441beaa08a673b4f55bca1.zip |
Applies a convert('RGBA') operation early to mimic previous behaviour.
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 90ae249a..7fc282cf 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -1500,7 +1500,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing): if image_mask is not None:
if self.soft_inpainting is not None:
# We apply the masks AFTER to adjust mask based on changed content.
- self.overlay_images.append(image)
+ self.overlay_images.append(image.convert('RGBA'))
self.masks_for_overlay.append(image_mask)
else:
image_masked = Image.new('RGBa', (image.width, image.height))
|