fix refiner

This commit is contained in:
lllyasviel
2023-10-26 19:42:50 -07:00
parent 5cbefa821f
commit f07f7693d3
5 changed files with 14 additions and 6 deletions
+4 -1
View File
@@ -253,6 +253,9 @@ with shared.gradio_root:
info='Higher value means image and texture are sharper.')
guidance_scale = gr.Slider(label='Guidance Scale', minimum=1.0, maximum=30.0, step=0.01, value=modules.path.default_cfg_scale,
info='Higher value means style is cleaner, vivider, and more artistic.')
refiner_switch = gr.Slider(label='Refiner Switch At', minimum=0.0, maximum=1.0, step=0.0001,
info='When to switch from base model to the refiner (if refiner is used).',
value=modules.path.default_refiner_switch)
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/117" target="_blank">\U0001F4D4 Document</a>')
dev_mode = gr.Checkbox(label='Developer Debug Mode', value=False, container=False)
@@ -361,7 +364,7 @@ with shared.gradio_root:
performance_selection, aspect_ratios_selection, image_number, image_seed, sharpness, guidance_scale
]
ctrls += [base_model, refiner_model] + lora_ctrls
ctrls += [base_model, refiner_model, refiner_switch] + lora_ctrls
ctrls += [input_image_checkbox, current_tab]
ctrls += [uov_method, uov_input_image]
ctrls += [outpaint_selections, inpaint_input_image]