mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
refactor: add flag for refiner_swap_method
This commit is contained in:
@@ -22,6 +22,8 @@ SAMPLER_NAMES = KSAMPLER_NAMES + ["ddim", "uni_pc", "uni_pc_bh2"]
|
|||||||
sampler_list = SAMPLER_NAMES
|
sampler_list = SAMPLER_NAMES
|
||||||
scheduler_list = SCHEDULER_NAMES
|
scheduler_list = SCHEDULER_NAMES
|
||||||
|
|
||||||
|
refiner_swap_method = 'joint'
|
||||||
|
|
||||||
cn_ip = "ImagePrompt"
|
cn_ip = "ImagePrompt"
|
||||||
cn_ip_face = "FaceSwap"
|
cn_ip_face = "FaceSwap"
|
||||||
cn_canny = "PyraCanny"
|
cn_canny = "PyraCanny"
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ with shared.gradio_root:
|
|||||||
step=0.001, value=0.3,
|
step=0.001, value=0.3,
|
||||||
info='When to end the guidance from positive/negative ADM. ')
|
info='When to end the guidance from positive/negative ADM. ')
|
||||||
|
|
||||||
refiner_swap_method = gr.Dropdown(label='Refiner swap method', value='joint',
|
refiner_swap_method = gr.Dropdown(label='Refiner swap method', value=flags.refiner_swap_method,
|
||||||
choices=['joint', 'separate', 'vae'])
|
choices=['joint', 'separate', 'vae'])
|
||||||
|
|
||||||
adaptive_cfg = gr.Slider(label='CFG Mimicking from TSNR', minimum=1.0, maximum=30.0, step=0.01,
|
adaptive_cfg = gr.Slider(label='CFG Mimicking from TSNR', minimum=1.0, maximum=30.0, step=0.01,
|
||||||
|
|||||||
Reference in New Issue
Block a user