Skip to content

Commit

Permalink
Merge pull request #191 from bsormagec/patch-1
Browse files Browse the repository at this point in the history
Update api_utils.py
  • Loading branch information
konieshadow authored Jan 24, 2024
2 parents 9dd0242 + 1ebea44 commit b5d57f8
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 b5d57f8

Please sign in to comment.