mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-05-03 12:41:18 +00:00
fix: some ui
This commit is contained in:
@@ -119,6 +119,7 @@ class AfterDetailerScript(scripts.Script):
|
||||
type="value",
|
||||
)
|
||||
|
||||
with gr.Group():
|
||||
with gr.Row(elem_id="AD_toprow_prompt" + suffix(n, "_")):
|
||||
w[n].ad_prompt = gr.Textbox(
|
||||
label="ad_prompt" + suffix(n),
|
||||
@@ -196,6 +197,7 @@ class AfterDetailerScript(scripts.Script):
|
||||
visible=True,
|
||||
)
|
||||
|
||||
with gr.Group():
|
||||
with gr.Row():
|
||||
w[n].ad_inpaint_full_res = gr.Checkbox(
|
||||
label="Inpaint at full resolution " + suffix(n),
|
||||
@@ -213,6 +215,7 @@ class AfterDetailerScript(scripts.Script):
|
||||
)
|
||||
|
||||
with gr.Row():
|
||||
with gr.Column():
|
||||
w[n].ad_use_inpaint_width_height = gr.Checkbox(
|
||||
label="Use separate width/height" + suffix(n),
|
||||
value=False,
|
||||
@@ -237,7 +240,7 @@ class AfterDetailerScript(scripts.Script):
|
||||
visible=True,
|
||||
)
|
||||
|
||||
with gr.Row():
|
||||
with gr.Column():
|
||||
w[n].ad_use_cfg_scale = gr.Checkbox(
|
||||
label="Use separate CFG scale" + suffix(n),
|
||||
value=False,
|
||||
@@ -253,10 +256,9 @@ class AfterDetailerScript(scripts.Script):
|
||||
visible=True,
|
||||
)
|
||||
|
||||
with gr.Group(), gr.Row(variant="panel"):
|
||||
cn_inpaint_models = ["None"] + get_cn_inpaint_models()
|
||||
|
||||
with gr.Group():
|
||||
with gr.Row():
|
||||
w[n].ad_controlnet_model = gr.Dropdown(
|
||||
label="ControlNet model" + suffix(n),
|
||||
choices=cn_inpaint_models,
|
||||
@@ -266,7 +268,6 @@ class AfterDetailerScript(scripts.Script):
|
||||
interactive=controlnet_exists,
|
||||
)
|
||||
|
||||
with gr.Row():
|
||||
w[n].ad_controlnet_weight = gr.Slider(
|
||||
label="ControlNet weight" + suffix(n),
|
||||
minimum=0.0,
|
||||
|
||||
Reference in New Issue
Block a user