diff options
author | random_thoughtss <random_thoughtss@proton.me> | 2022-10-25 19:20:54 +0000 |
---|---|---|
committer | random_thoughtss <random_thoughtss@proton.me> | 2022-10-25 19:20:54 +0000 |
commit | 605d27687f433c0fefb9025aace7dc94f0ebd454 (patch) | |
tree | 01104ba19b632f76d97880659ec918e85f6dc227 /modules/processing.py | |
parent | f9549d1cbb3f1d7d1f0fb70375a06e31f9c5dd9d (diff) | |
download | stable-diffusion-webui-gfx803-605d27687f433c0fefb9025aace7dc94f0ebd454.tar.gz stable-diffusion-webui-gfx803-605d27687f433c0fefb9025aace7dc94f0ebd454.tar.bz2 stable-diffusion-webui-gfx803-605d27687f433c0fefb9025aace7dc94f0ebd454.zip |
Added conditioning image masking to xy_grid.
Use `True` and `False` to select values.
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 96f56b0d..23ee5e02 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -770,7 +770,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing): conditioning_mask = conditioning_mask.to(image.device)
conditioning_image = image
- if shared.opts.inpainting_mask_image:
+ if getattr(self, "inpainting_mask_image", shared.opts.inpainting_mask_image):
conditioning_image = conditioning_image * (1.0 - conditioning_mask)
conditioning_image = self.sd_model.get_first_stage_encoding(self.sd_model.encode_first_stage(conditioning_image))
|