Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhan1993 committed Apr 7, 2024
1 parent 32bee69 commit 8b12ad0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fooocusapi/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,11 @@ def __init__(self, prompt: str,

if self.advanced_params is None:
self.advanced_params = AdvancedParams()

# Auto set mixing_image_prompt_and_inpaint to True
if len(self.image_prompts) > 0 and self.inpaint_input_image is not None:
print("Mixing Image Prompts and Inpaint Enabled")
self.advanced_params.mixing_image_prompt_and_inpaint = True
if len(self.image_prompts) > 0 and self.uov_input_image is not None:
print("Mixing Image Prompts and Vary Upscale Enabled")
self.advanced_params.mixing_image_prompt_and_vary_upscale = True

0 comments on commit 8b12ad0

Please sign in to comment.