handy dandy tooltips for parameters
This commit is contained in:
parent
5fd90818eb
commit
72f1e813b1
2 changed files with 47 additions and 8 deletions
|
@ -334,7 +334,7 @@
|
||||||
<div id="script-name" class="script-name">
|
<div id="script-name" class="script-name">
|
||||||
<label for="script-name-input">Script Name:</label>
|
<label for="script-name-input">Script Name:</label>
|
||||||
<br />
|
<br />
|
||||||
<input id="script-name-input" />
|
<input id="script-name-input" disabled="disabled" />
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<div id="script-args" class="script-args">
|
<div id="script-args" class="script-args">
|
||||||
|
@ -402,7 +402,7 @@
|
||||||
|
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<script src="js/prompt.js?v=7a1c68c" type="text/javascript"></script>
|
<script src="js/prompt.js?v=7a1c68c" type="text/javascript"></script>
|
||||||
<script src="js/index.js?v=5d8765c" type="text/javascript"></script>
|
<script src="js/index.js?v=c07453c" type="text/javascript"></script>
|
||||||
|
|
||||||
<script
|
<script
|
||||||
src="js/ui/floating/history.js?v=fc92d14"
|
src="js/ui/floating/history.js?v=fc92d14"
|
||||||
|
|
51
js/index.js
51
js/index.js
|
@ -1336,30 +1336,69 @@ function checkFocus() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeScript(evt) {
|
function changeScript(evt) {
|
||||||
|
let enable = () => {
|
||||||
|
scriptName.disabled = false;
|
||||||
|
};
|
||||||
|
let disable = () => {
|
||||||
|
scriptName.disabled = true;
|
||||||
|
};
|
||||||
let selected = evt.target.value;
|
let selected = evt.target.value;
|
||||||
let scriptName = document.getElementById("script-name-input");
|
let scriptName = document.getElementById("script-name-input");
|
||||||
let scriptArgs = document.getElementById("script-args-input");
|
let scriptArgs = document.getElementById("script-args-input");
|
||||||
|
scriptName.value = selected;
|
||||||
|
disable();
|
||||||
switch (selected) {
|
switch (selected) {
|
||||||
case "Loopback": {
|
case "Loopback": {
|
||||||
scriptName.value = selected;
|
|
||||||
scriptArgs.value = "[8, 0.99]";
|
scriptArgs.value = "[8, 0.99]";
|
||||||
|
scriptArgs.title =
|
||||||
|
"Params:\nloops (int)\ndenoising_strength_change_factor (decimal, 0.90-1.10)";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "Prompt matrix": {
|
case "Prompt matrix": {
|
||||||
scriptName.value = selected;
|
|
||||||
scriptArgs.value = "[false, false]";
|
scriptArgs.value = "[false, false]";
|
||||||
|
scriptArgs.title =
|
||||||
|
"Params:\nput_at_start (bool): expect pipe (|) delimited options at start of prompt\ndifferent_seeds (bool): use different seeds for each picture";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "X/Y plot": {
|
case "X/Y plot": {
|
||||||
scriptName.value = selected;
|
|
||||||
scriptArgs.value =
|
scriptArgs.value =
|
||||||
'[4, "5-50 [5]", 5, "2.4-17.4 [5]", true, true, false]';
|
'[4, "5-50 [5]", 5, "2.4-17.4 [5]", false, true, false]';
|
||||||
|
scriptArgs.title =
|
||||||
|
"Params:\nx_type (int): index of axis type (see below)\nx_values (mixed, str)\ny_type (int)\ny_values (mixed, str)\ndraw_legend (bool): return grid of all images\ninclude_lone_images (bool): return individual images\nno_fixed_seeds (bool): use different seeds for each picture\n\n" +
|
||||||
|
"Available axis types:\n" +
|
||||||
|
"0: Nothing\n" +
|
||||||
|
"1: Seed\n" +
|
||||||
|
"2: Var. seed\n" +
|
||||||
|
"3: Var. strength\n" +
|
||||||
|
"4: Steps\n" +
|
||||||
|
"5: CFG Scale\n" +
|
||||||
|
"6: Prompt S/R\n" +
|
||||||
|
"7: Prompt order\n" +
|
||||||
|
"8: Sampler\n" +
|
||||||
|
"9: Checkpoint Name\n" +
|
||||||
|
"10: Hypernetwork\n" +
|
||||||
|
"11: Hypernet str.\n" +
|
||||||
|
"12: Sigma Churn\n" +
|
||||||
|
"13: Sigma min\n" +
|
||||||
|
"14: Sigma max\n" +
|
||||||
|
"15: Sigma noise\n" +
|
||||||
|
"16: Eta\n" +
|
||||||
|
"17: Clip skip\n" +
|
||||||
|
"18: Denoising\n" +
|
||||||
|
"19: Hires upscaler\n" +
|
||||||
|
"20: Cond. Image Mask Weight\n" +
|
||||||
|
"21: VAE\n" +
|
||||||
|
"22: Styles";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "custom": {
|
||||||
|
scriptName.value = "";
|
||||||
|
scriptArgs.value = "";
|
||||||
|
enable();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "custom":
|
|
||||||
case "":
|
case "":
|
||||||
default: {
|
default: {
|
||||||
scriptName.value = "";
|
|
||||||
scriptArgs.value = "";
|
scriptArgs.value = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue