From 509cbebee4ec4008f737d9c71df6d0fe957026cf Mon Sep 17 00:00:00 2001 From: paradiseHIT Date: Wed, 20 Dec 2023 16:17:28 +0800 Subject: [PATCH] fix background_restore_denoising_strength typo --- easyphoto/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyphoto/api.py b/easyphoto/api.py index 82765da..a58d3ea 100644 --- a/easyphoto/api.py +++ b/easyphoto/api.py @@ -107,7 +107,7 @@ def _easyphoto_infer_forward_api( super_resolution = datas.get("super_resolution", True) display_score = datas.get("display_score", False) background_restore = datas.get("background_restore", False) - background_restore_denoising_strength = datas.get("background_restore", 0.35) + background_restore_denoising_strength = datas.get("background_restore_denoising_strength", 0.35) sd_xl_input_prompt = datas.get("sd_xl_input_prompt", "upper-body, look at viewer, one twenty years old girl, wear white shit, standing, in the garden, daytime, f32") sd_xl_resolution = datas.get("sd_xl_resolution", "(1024, 1024)") tabs = datas.get("tabs", 1)