mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
fix ui dummy comp
This commit is contained in:
+1
-1
Submodule modules/lora updated: 1a36f9dc65...4f93bf10f0
+1
-1
@@ -228,7 +228,7 @@ def create_ui(startup_timer = None):
|
||||
def run_settings(*args):
|
||||
changed = []
|
||||
for key, value, comp in zip(opts.data_labels.keys(), args, components):
|
||||
if comp == dummy_component:
|
||||
if comp == dummy_component or value=='dummy':
|
||||
continue
|
||||
if not opts.same_type(value, opts.data_labels[key].default):
|
||||
log.error(f'Setting bad value: {key}={value} expecting={type(opts.data_labels[key].default).__name__}')
|
||||
|
||||
@@ -144,7 +144,8 @@ def create_ui():
|
||||
|
||||
cfg_scale, clip_skip, image_cfg_scale, diffusers_guidance_rescale, sag_scale, full_quality, restore_faces, tiling, hdr_clamp, hdr_boundary, hdr_threshold, hdr_center, hdr_channel_shift, hdr_full_shift, hdr_maximize, hdr_max_center, hdr_max_boundry = ui_sections.create_advanced_inputs('img2img')
|
||||
|
||||
with FormGroup(elem_id="inpaint_controls", visible=False) as inpaint_controls:
|
||||
# with FormGroup(elem_id="inpaint_controls", visible=False) as inpaint_controls:
|
||||
with gr.Accordion(open=True, label="Mask", elem_classes=["small-accordion"], elem_id="img2img_mask_group") 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")
|
||||
mask_alpha = gr.Slider(label="Mask transparency", visible=False, elem_id="img2img_mask_alpha")
|
||||
|
||||
Reference in New Issue
Block a user