aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCodeHatchling <steve@codehatch.com>2023-11-29 06:31:10 +0000
committerCodeHatchling <steve@codehatch.com>2023-11-29 06:31:10 +0000
commitc7a1ff87207544dd4bcf3aefffa67a4a38678c16 (patch)
tree49fa710da26562ac4ce7221271d77f44aba50123
parent284fd8f415ec70e14ae5de0b7f5ce738007a6b7f (diff)
downloadstable-diffusion-webui-gfx803-c7a1ff87207544dd4bcf3aefffa67a4a38678c16.tar.gz
stable-diffusion-webui-gfx803-c7a1ff87207544dd4bcf3aefffa67a4a38678c16.tar.bz2
stable-diffusion-webui-gfx803-c7a1ff87207544dd4bcf3aefffa67a4a38678c16.zip
Tweaked default values.
-rw-r--r--modules/processing.py4
-rw-r--r--modules/sd_samplers_cfg_denoiser.py4
-rw-r--r--test/test_img2img.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 361e8b05..92fdebad 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -1350,8 +1350,8 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
mask_blur_y: int = 4
mask_blur: int = None
mask_blend_power: float = 1
- mask_blend_scale: float = 1
- inpaint_detail_preservation: float = 16
+ mask_blend_scale: float = 0.5
+ inpaint_detail_preservation: float = 4
inpainting_fill: int = 0
inpaint_full_res: bool = True
inpaint_full_res_padding: int = 0
diff --git a/modules/sd_samplers_cfg_denoiser.py b/modules/sd_samplers_cfg_denoiser.py
index 598cd487..ceb612d7 100644
--- a/modules/sd_samplers_cfg_denoiser.py
+++ b/modules/sd_samplers_cfg_denoiser.py
@@ -44,8 +44,8 @@ class CFGDenoiser(torch.nn.Module):
self.mask = None
self.nmask = None
self.mask_blend_power = 1
- self.mask_blend_scale = 1
- self.inpaint_detail_preservation = 16
+ self.mask_blend_scale = 0.5
+ self.inpaint_detail_preservation = 4
self.init_latent = None
self.steps = None
"""number of steps as specified by user in UI"""
diff --git a/test/test_img2img.py b/test/test_img2img.py
index 88b06eb8..5cda2dba 100644
--- a/test/test_img2img.py
+++ b/test/test_img2img.py
@@ -25,8 +25,8 @@ def simple_img2img_request(img2img_basic_image_base64):
"mask": None,
"mask_blur": 4,
"mask_blend_power": 1,
- "mask_blend_scale": 1,
- "inpaint_detail_preservation": 16,
+ "mask_blend_scale": 0.5,
+ "inpaint_detail_preservation": 4,
"n_iter": 1,
"negative_prompt": "",
"override_settings": {},