add dropdowns in settings for hypernets and loras

This commit is contained in:
AUTOMATIC
2023-01-28 17:18:47 +03:00
parent 5d14f282c2
commit b7d2af8c7f
4 changed files with 20 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import torch
import gradio as gr
import lora
import extra_networks_lora
@@ -31,5 +32,7 @@ script_callbacks.on_before_ui(before_ui)
shared.options_templates.update(shared.options_section(('extra_networks', "Extra Networks"), {
"sd_lora": shared.OptionInfo("None", "Add Lora to prompt", gr.Dropdown, lambda: {"choices": [""] + [x for x in lora.available_loras]}, refresh=lora.list_available_loras),
"lora_apply_to_outputs": shared.OptionInfo(False, "Apply Lora to outputs rather than inputs when possible (experimental)"),
}))