wip: add upscale or variation to enhance

This commit is contained in:
Manuel Schmid
2024-06-19 23:53:15 +02:00
parent 87b3cec7d4
commit 4e575b9eb1
2 changed files with 165 additions and 98 deletions
+6 -1
View File
@@ -348,6 +348,11 @@ with shared.gradio_root:
with gr.Row(visible=False) as enhance_input_panel:
with gr.Tabs():
with gr.TabItem(label='Upscale or Variation'):
with gr.Row():
with gr.Column():
enhance_uov_method = gr.Radio(label='', show_label=False, choices=flags.uov_list, value=flags.disabled)
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/390" target="_blank">\U0001F4D4 Document</a>')
enhance_ctrls = []
for index in range(modules.config.default_enhance_tabs):
with gr.TabItem(label=f'#{index + 1}') as enhance_tab_item:
@@ -925,7 +930,7 @@ with shared.gradio_root:
ctrls += [save_metadata_to_images, metadata_scheme]
ctrls += ip_ctrls
ctrls += [debugging_dino, dino_erode_or_dilate, debugging_enhance_masks_checkbox, enhance_checkbox]
ctrls += [debugging_dino, dino_erode_or_dilate, debugging_enhance_masks_checkbox, enhance_checkbox, enhance_uov_method]
ctrls += enhance_ctrls
def parse_meta(raw_prompt_txt, is_generating):