mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
refactor: change wording of stage2 disclaimer, adjust gradio structure accordingly
This commit is contained in:
@@ -301,14 +301,12 @@ with shared.gradio_root:
|
|||||||
outputs=metadata_json, queue=False, show_progress=True)
|
outputs=metadata_json, queue=False, show_progress=True)
|
||||||
|
|
||||||
with gr.Row(visible=False) as stage2_input_panel:
|
with gr.Row(visible=False) as stage2_input_panel:
|
||||||
with gr.Column():
|
|
||||||
gr.HTML('DISCLAIMER: Stage2 will be skipped when used in combination with Inpaint or Outpaint!')
|
|
||||||
with gr.Row():
|
|
||||||
with gr.Tabs():
|
with gr.Tabs():
|
||||||
stage2_ctrls = []
|
stage2_ctrls = []
|
||||||
for index in range(modules.config.default_stage2_tabs):
|
for index in range(modules.config.default_stage2_tabs):
|
||||||
with gr.TabItem(label=f'Iteration #{index + 1}') as stage2_tab_item:
|
with gr.TabItem(label=f'Iteration #{index + 1}') as stage2_tab_item:
|
||||||
stage2_enabled = gr.Checkbox(label='Enable', value=False, elem_classes='min_check', container=False)
|
stage2_enabled = gr.Checkbox(label='Enable', value=False, elem_classes='min_check', container=False)
|
||||||
|
gr.HTML('DISCLAIMER: Stage2 does not work with Inpaint or Outpaint and will be skipped.')
|
||||||
with gr.Accordion('Options', visible=True, open=False) as stage2_accordion:
|
with gr.Accordion('Options', visible=True, open=False) as stage2_accordion:
|
||||||
# stage2_mode = gr.Dropdown(choices=modules.flags.inpaint_options, value=modules.flags.inpaint_option_detail, label='Method', interactive=True)
|
# stage2_mode = gr.Dropdown(choices=modules.flags.inpaint_options, value=modules.flags.inpaint_option_detail, label='Method', interactive=True)
|
||||||
stage2_mask_dino_prompt_text = gr.Textbox(label='Segmentation prompt', info='Use singular whenever possible', interactive=True)
|
stage2_mask_dino_prompt_text = gr.Textbox(label='Segmentation prompt', info='Use singular whenever possible', interactive=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user