mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 09:38:23 +02:00
feat(ui): load unet into secondary slot from networks panel
The refine toggle doubles as the slot selector on the UNet/DiT page: with it active a card click sets sd_unet_secondary instead of sd_unet, mirroring base/refiner selection on the model page.
This commit is contained in:
@@ -461,6 +461,13 @@ def create_quicksettings(interfaces):
|
||||
inputs=[shared.settings_components["sd_unet"], dummy_component],
|
||||
outputs=[shared.settings_components["sd_unet"], text_settings],
|
||||
)
|
||||
button_set_unet_secondary = gr.Button("Change UNet secondary", elem_id="change_unet_secondary", visible=False)
|
||||
button_set_unet_secondary.click(
|
||||
fn=lambda value, _: run_settings_single(value, key="sd_unet_secondary"),
|
||||
_js="consumeDesiredUNetName",
|
||||
inputs=[shared.settings_components["sd_unet_secondary"], dummy_component],
|
||||
outputs=[shared.settings_components["sd_unet_secondary"], text_settings],
|
||||
)
|
||||
|
||||
def reference_submit(model):
|
||||
if '@' not in model: # diffusers
|
||||
|
||||
Reference in New Issue
Block a user