@@ -1141,7 +1141,7 @@ def create_ui(wrap_gradio_gpu_call):
1141
1141
outputs = [html , generation_info , html2 ],
1142
1142
)
1143
1143
1144
- with gr .Blocks () as modelmerger_interface :
1144
+ with gr .Blocks (analytics_enabled = False ) as modelmerger_interface :
1145
1145
with gr .Row ().style (equal_height = False ):
1146
1146
with gr .Column (variant = 'panel' ):
1147
1147
gr .HTML (value = "<p>A merger of the two checkpoints will be generated in your <b>checkpoint</b> directory.</p>" )
@@ -1161,7 +1161,7 @@ def create_ui(wrap_gradio_gpu_call):
1161
1161
1162
1162
sd_hijack .model_hijack .embedding_db .load_textual_inversion_embeddings ()
1163
1163
1164
- with gr .Blocks () as train_interface :
1164
+ with gr .Blocks (analytics_enabled = False ) as train_interface :
1165
1165
with gr .Row ().style (equal_height = False ):
1166
1166
gr .HTML (value = "<p style='margin-bottom: 0.7em'>See <b><a href=\" https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Textual-Inversion\" >wiki</a></b> for detailed explanation.</p>" )
1167
1167
@@ -1420,15 +1420,14 @@ def fun():
1420
1420
1421
1421
if info .refresh is not None :
1422
1422
if is_quicksettings :
1423
- res = comp (label = info .label , value = fun , elem_id = elem_id , ** (args or {}))
1423
+ res = comp (label = info .label , value = fun () , elem_id = elem_id , ** (args or {}))
1424
1424
create_refresh_button (res , info .refresh , info .component_args , "refresh_" + key )
1425
1425
else :
1426
1426
with gr .Row (variant = "compact" ):
1427
- res = comp (label = info .label , value = fun , elem_id = elem_id , ** (args or {}))
1427
+ res = comp (label = info .label , value = fun () , elem_id = elem_id , ** (args or {}))
1428
1428
create_refresh_button (res , info .refresh , info .component_args , "refresh_" + key )
1429
1429
else :
1430
- res = comp (label = info .label , value = fun , elem_id = elem_id , ** (args or {}))
1431
-
1430
+ res = comp (label = info .label , value = fun (), elem_id = elem_id , ** (args or {}))
1432
1431
1433
1432
return res
1434
1433
@@ -1639,6 +1638,17 @@ def request_restart():
1639
1638
outputs = [component , text_settings ],
1640
1639
)
1641
1640
1641
+ component_keys = [k for k in opts .data_labels .keys () if k in component_dict ]
1642
+
1643
+ def get_settings_values ():
1644
+ return [getattr (opts , key ) for key in component_keys ]
1645
+
1646
+ demo .load (
1647
+ fn = get_settings_values ,
1648
+ inputs = [],
1649
+ outputs = [component_dict [k ] for k in component_keys ],
1650
+ )
1651
+
1642
1652
def modelmerger (* args ):
1643
1653
try :
1644
1654
results = modules .extras .run_modelmerger (* args )
0 commit comments