diff options
author | CodeHatchling <steve@codehatch.com> | 2023-12-04 08:27:22 +0000 |
---|---|---|
committer | CodeHatchling <steve@codehatch.com> | 2023-12-04 08:27:22 +0000 |
commit | aaacf4823241450d88315af9d465d6815119fe0d (patch) | |
tree | 66b929be2e3b99ad34115c5251f7f6c40695fe68 /modules/sd_samplers_common.py | |
parent | 552f8bc832cd21ee0338e08b6a701687d0d79fad (diff) | |
download | stable-diffusion-webui-gfx803-aaacf4823241450d88315af9d465d6815119fe0d.tar.gz stable-diffusion-webui-gfx803-aaacf4823241450d88315af9d465d6815119fe0d.tar.bz2 stable-diffusion-webui-gfx803-aaacf4823241450d88315af9d465d6815119fe0d.zip |
Organized the settings and UI of soft inpainting to allow for toggling the feature, and centralizes default values to reduce the amount of copy-pasta.
Diffstat (limited to 'modules/sd_samplers_common.py')
-rw-r--r-- | modules/sd_samplers_common.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/sd_samplers_common.py b/modules/sd_samplers_common.py index ecd8ab0a..9682bee3 100644 --- a/modules/sd_samplers_common.py +++ b/modules/sd_samplers_common.py @@ -277,9 +277,7 @@ class Sampler: self.model_wrap_cfg.p = p
self.model_wrap_cfg.mask = p.mask if hasattr(p, 'mask') else None
self.model_wrap_cfg.nmask = p.nmask if hasattr(p, 'nmask') else None
- self.model_wrap_cfg.mask_blend_power = p.mask_blend_power if hasattr(p, 'mask_blend_power') else None
- self.model_wrap_cfg.mask_blend_scale = p.mask_blend_scale if hasattr(p, 'mask_blend_scale') else None
- self.model_wrap_cfg.inpaint_detail_preservation = p.inpaint_detail_preservation if hasattr(p, 'inpaint_detail_preservation') else None
+ self.model_wrap_cfg.soft_inpainting = p.soft_inpainting if hasattr(p, 'soft_inpainting') else None
self.model_wrap_cfg.step = 0
self.model_wrap_cfg.image_cfg_scale = getattr(p, 'image_cfg_scale', None)
self.eta = p.eta if p.eta is not None else getattr(opts, self.eta_option_field, 0.0)
|