From 53b9f3e92fd7444c1425e80ccd78273f4e3c4dec Mon Sep 17 00:00:00 2001 From: Qing Date: Tue, 14 Nov 2023 14:02:15 +0800 Subject: [PATCH] sd add strength --- lama_cleaner/model/sd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lama_cleaner/model/sd.py b/lama_cleaner/model/sd.py index 0fb565d..b29626c 100644 --- a/lama_cleaner/model/sd.py +++ b/lama_cleaner/model/sd.py @@ -146,6 +146,7 @@ class SD(DiffusionInpaintModel): negative_prompt=config.negative_prompt, mask_image=PIL.Image.fromarray(mask[:, :, -1], mode="L"), num_inference_steps=config.sd_steps, + strength=config.sd_strength, guidance_scale=config.sd_guidance_scale, output_type="np", callback=self.callback,