mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Fooocus Prompt Expansion (#329)
* add vae approx download * files * files * files * i * i * i * i * i * i * i * i * i * i
This commit is contained in:
@@ -56,10 +56,11 @@ with shared.gradio_root:
|
||||
with gr.Column(scale=0.5, visible=False) as right_col:
|
||||
with gr.Tab(label='Setting'):
|
||||
performance_selction = gr.Radio(label='Performance', choices=['Speed', 'Quality'], value='Speed')
|
||||
aspect_ratios_selction = gr.Radio(label='Aspect Ratios (width × height)', choices=list(aspect_ratios.keys()),
|
||||
value='1152×896')
|
||||
aspect_ratios_selction = gr.Radio(label='Aspect Ratios', choices=list(aspect_ratios.keys()),
|
||||
value='1152×896', info='width × height')
|
||||
image_number = gr.Slider(label='Image Number', minimum=1, maximum=32, step=1, value=2)
|
||||
negative_prompt = gr.Textbox(label='Negative Prompt', show_label=True, placeholder="Type prompt here.")
|
||||
negative_prompt = gr.Textbox(label='Negative Prompt', show_label=True, placeholder="Type prompt here.",
|
||||
info='Describing objects that you do not want to see.')
|
||||
seed_random = gr.Checkbox(label='Random', value=True)
|
||||
image_seed = gr.Number(label='Seed', value=0, precision=0, visible=False)
|
||||
|
||||
@@ -75,8 +76,11 @@ with shared.gradio_root:
|
||||
seed_random.change(random_checked, inputs=[seed_random], outputs=[image_seed])
|
||||
|
||||
with gr.Tab(label='Style'):
|
||||
style_selction = gr.Radio(show_label=False, container=True,
|
||||
choices=style_keys, value='cinematic-default')
|
||||
raw_mode_check = gr.Checkbox(label='Raw Mode', value=False,
|
||||
info='Similar to Midjourney\'s \"raw\" mode.')
|
||||
style_selction = gr.Radio(show_label=True, container=True,
|
||||
choices=style_keys, value='cinematic-default', label='Image Style',
|
||||
info='Similar to Midjourney\'s \"--style\".')
|
||||
with gr.Tab(label='Advanced'):
|
||||
with gr.Row():
|
||||
base_model = gr.Dropdown(label='SDXL Base Model', choices=modules.path.model_filenames, value=modules.path.default_base_model_name, show_label=True)
|
||||
@@ -107,7 +111,7 @@ with shared.gradio_root:
|
||||
advanced_checkbox.change(lambda x: gr.update(visible=x), advanced_checkbox, right_col)
|
||||
ctrls = [
|
||||
prompt, negative_prompt, style_selction,
|
||||
performance_selction, aspect_ratios_selction, image_number, image_seed, sharpness
|
||||
performance_selction, aspect_ratios_selction, image_number, image_seed, sharpness, raw_mode_check
|
||||
]
|
||||
ctrls += [base_model, refiner_model] + lora_ctrls
|
||||
run_button.click(fn=refresh_seed, inputs=[seed_random, image_seed], outputs=image_seed)\
|
||||
|
||||
Reference in New Issue
Block a user