Skip to content

Commit bbf733a

Browse files
[SDXL Inpaint] Correct strength default (huggingface#4858)
1 parent aedd787 commit bbf733a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ def __call__(
892892
mask_image: PipelineImageInput = None,
893893
height: Optional[int] = None,
894894
width: Optional[int] = None,
895-
strength: float = 1.0,
895+
strength: float = 0.9999,
896896
num_inference_steps: int = 50,
897897
denoising_start: Optional[float] = None,
898898
denoising_end: Optional[float] = None,
@@ -944,7 +944,7 @@ def __call__(
944944
The height in pixels of the generated image.
945945
width (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
946946
The width in pixels of the generated image.
947-
strength (`float`, *optional*, defaults to 1.):
947+
strength (`float`, *optional*, defaults to 0.9999):
948948
Conceptually, indicates how much to transform the masked portion of the reference `image`. Must be
949949
between 0 and 1. `image` will be used as a starting point, adding more noise to it the larger the
950950
`strength`. The number of denoising steps depends on the amount of noise initially added. When

0 commit comments

Comments
 (0)