From 0d610c5393d52eda0c57f35837bc1c126f2854ad Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Sat, 15 Jul 2023 21:48:51 +0530 Subject: [PATCH] Remove the +/- 2 limit on lora strengths --- ui/media/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index e31bdd10..70d27fd5 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -2242,7 +2242,7 @@ promptField.focus() promptField.selectionStart = promptField.value.length // multi-models -function addModelEntry(i, modelContainer, modelsList, modelType, defaultValue, minStrength, maxStrength, strengthStep) { +function addModelEntry(i, modelContainer, modelsList, modelType, defaultValue, strengthStep) { let nameId = modelType + "_model_" + i let strengthId = modelType + "_alpha_" + i @@ -2250,7 +2250,7 @@ function addModelEntry(i, modelContainer, modelsList, modelType, defaultValue, m modelEntry.className = "model_entry" modelEntry.innerHTML = ` -
+
` let modelName = new ModelDropdown(modelEntry.querySelector(".model_name"), modelType, "None") @@ -2263,7 +2263,7 @@ function addModelEntry(i, modelContainer, modelsList, modelType, defaultValue, m function createLoRAEntries() { let container = document.querySelector("#lora_model_container .model_entries") for (let i = 0; i < 3; i++) { - addModelEntry(i, container, loraModels, "lora", 0.5, -2, 2, 0.02) + addModelEntry(i, container, loraModels, "lora", 0.5, 0.02) } } createLoRAEntries()