From 1ebea4470a78ce90082090a91a0a4266e06182ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Sormage=C3=A7?= Date: Wed, 24 Jan 2024 02:39:28 -0500 Subject: [PATCH] Update api_utils.py fix condition. --- fooocusapi/api_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fooocusapi/api_utils.py b/fooocusapi/api_utils.py index 838254f..f3cf89c 100644 --- a/fooocusapi/api_utils.py +++ b/fooocusapi/api_utils.py @@ -85,7 +85,7 @@ def req_to_params(req: Text2ImgRequest) -> ImageGenerationParams: if len(req.image_prompts) > 0 and uov_input_image is not None: print("[INFO] Mixing image prompt and vary upscale is set to True") req.advanced_params.mixing_image_prompt_and_vary_upscale = True - elif len(req.image_prompts) > 0 and not isinstance(req, Text2ImgRequestWithPrompt) and req.input_image is not None and req.advanced_params is not None: + elif len(req.image_prompts) > 0 and not isinstance(req, Text2ImgRequestWithPrompt) and req.input_image is not None: print("[INFO] Mixing image prompt and inpaint is set to True") req.advanced_params.mixing_image_prompt_and_inpaint = True