aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorrandom_thoughtss <random_thoughtss@proton.me>2022-10-25 12:20:54 -0700
committerrandom_thoughtss <random_thoughtss@proton.me>2022-10-25 12:20:54 -0700
commit605d27687f433c0fefb9025aace7dc94f0ebd454 (patch)
tree01104ba19b632f76d97880659ec918e85f6dc227 /modules
parentf9549d1cbb3f1d7d1f0fb70375a06e31f9c5dd9d (diff)
Added conditioning image masking to xy_grid.
Use `True` and `False` to select values.
Diffstat (limited to 'modules')
-rw-r--r--modules/processing.py2
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))