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/processing.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/processing.py')
-rw-r--r-- | modules/processing.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/processing.py b/modules/processing.py index cd7216f8..b209c84a 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -30,6 +30,7 @@ import modules.sd_models as sd_models import modules.sd_vae as sd_vae
from ldm.data.util import AddMiDaS
from ldm.models.diffusion.ddpm import LatentDepth2ImageDiffusion
+import modules.soft_inpainting as si
from einops import repeat, rearrange
from blendmodes.blend import blendLayers, BlendType
@@ -1425,9 +1426,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing): mask_blur_x: int = 4
mask_blur_y: int = 4
mask_blur: int = None
- mask_blend_power: float = 1
- mask_blend_scale: float = 0.5
- inpaint_detail_preservation: float = 4
+ soft_inpainting: si.SoftInpaintingParameters = si.default
inpainting_fill: int = 0
inpaint_full_res: bool = True
inpaint_full_res_padding: int = 0
|