rename masking to inpaint in UI
make inpaint go to the right place for users who don't have it in config string
This commit is contained in:
parent
30cfe4ed9b
commit
3db22e6ee4
|
@ -116,7 +116,7 @@ restricted_opts = {
|
|||
}
|
||||
|
||||
ui_reorder_categories = [
|
||||
"masking",
|
||||
"inpaint",
|
||||
"sampler",
|
||||
"dimensions",
|
||||
"cfg",
|
||||
|
|
|
@ -570,9 +570,9 @@ def create_sampler_and_steps_selection(choices, tabname):
|
|||
|
||||
|
||||
def ordered_ui_categories():
|
||||
user_order = {x.strip(): i for i, x in enumerate(shared.opts.ui_reorder.split(","))}
|
||||
user_order = {x.strip(): i * 2 + 1 for i, x in enumerate(shared.opts.ui_reorder.split(","))}
|
||||
|
||||
for i, category in sorted(enumerate(shared.ui_reorder_categories), key=lambda x: user_order.get(x[1], x[0] + 1000)):
|
||||
for i, category in sorted(enumerate(shared.ui_reorder_categories), key=lambda x: user_order.get(x[1], x[0] * 2 + 0)):
|
||||
yield category
|
||||
|
||||
|
||||
|
@ -889,7 +889,7 @@ def create_ui():
|
|||
with FormGroup(elem_id="img2img_script_container"):
|
||||
custom_inputs = modules.scripts.scripts_img2img.setup_ui()
|
||||
|
||||
elif category == "masking":
|
||||
elif category == "inpaint":
|
||||
with FormGroup(elem_id="inpaint_controls", visible=False) as inpaint_controls:
|
||||
with FormRow():
|
||||
mask_blur = gr.Slider(label='Mask blur', minimum=0, maximum=64, step=1, value=4, elem_id="img2img_mask_blur")
|
||||
|
|
Loading…
Reference in New Issue
Block a user