diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-28 14:18:47 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-28 14:18:47 +0000 |
commit | b7d2af8c7fa48d6eef7517a6fbc63a3507c638d4 (patch) | |
tree | cc72768e4be5a9e6f45e3273f25b141860bf347d /extensions-builtin/Lora/scripts/lora_script.py | |
parent | 5d14f282c2812888275902be4b552681f942dbfd (diff) | |
download | stable-diffusion-webui-gfx803-b7d2af8c7fa48d6eef7517a6fbc63a3507c638d4.tar.gz stable-diffusion-webui-gfx803-b7d2af8c7fa48d6eef7517a6fbc63a3507c638d4.tar.bz2 stable-diffusion-webui-gfx803-b7d2af8c7fa48d6eef7517a6fbc63a3507c638d4.zip |
add dropdowns in settings for hypernets and loras
Diffstat (limited to 'extensions-builtin/Lora/scripts/lora_script.py')
-rw-r--r-- | extensions-builtin/Lora/scripts/lora_script.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions-builtin/Lora/scripts/lora_script.py b/extensions-builtin/Lora/scripts/lora_script.py index 544b228d..2e860160 100644 --- a/extensions-builtin/Lora/scripts/lora_script.py +++ b/extensions-builtin/Lora/scripts/lora_script.py @@ -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)"),
+
}))
|