Skip to content

Commit 6e51ed5

Browse files
[SDXL Inpaint] Correct strength default (#4858)
1 parent 48577ff commit 6e51ed5

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
@@ -861,7 +861,7 @@ def __call__(
861861
mask_image: Union[torch.FloatTensor, PIL.Image.Image] = None,
862862
height: Optional[int] = None,
863863
width: Optional[int] = None,
864-
strength: float = 1.0,
864+
strength: float = 0.9999,
865865
num_inference_steps: int = 50,
866866
denoising_start: Optional[float] = None,
867867
denoising_end: Optional[float] = None,
@@ -910,7 +910,7 @@ def __call__(
910910
The height in pixels of the generated image.
911911
width (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
912912
The width in pixels of the generated image.
913-
strength (`float`, *optional*, defaults to 1.):
913+
strength (`float`, *optional*, defaults to 0.9999):
914914
Conceptually, indicates how much to transform the masked portion of the reference `image`. Must be
915915
between 0 and 1. `image` will be used as a starting point, adding more noise to it the larger the
916916
`strength`. The number of denoising steps depends on the amount of noise initially added. When

0 commit comments

Comments
 (0)