Skip to content

Commit

Permalink
Update api_utils.py
Browse files Browse the repository at this point in the history
fix condition.
  • Loading branch information
bsormagec authored Jan 24, 2024
1 parent 9dd0242 commit 1ebea44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fooocusapi/api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1ebea44

Please sign in to comment.