commit
f12703aa1b
2 changed files with 24 additions and 2 deletions
19
index.html
19
index.html
|
@ -136,6 +136,21 @@
|
||||||
</button>
|
</button>
|
||||||
<label>Sampler:</label>
|
<label>Sampler:</label>
|
||||||
<div id="sampler-ac-select"></div>
|
<div id="sampler-ac-select"></div>
|
||||||
|
<label>Scheduler:</label>
|
||||||
|
<br />
|
||||||
|
<select
|
||||||
|
id="schedulerSelect"
|
||||||
|
name="schedulerSelect"
|
||||||
|
onchange="changeScheduler()">
|
||||||
|
<option value="Automatic" selected="selected">Automatic</option>
|
||||||
|
<option value="Uniform">Uniform</option>
|
||||||
|
<option value="Karras">Karras</option>
|
||||||
|
<option value="Exponential">Exponential</option>
|
||||||
|
<option value="Polyexponential">Polyexponential</option>
|
||||||
|
<option value="SGM Uniform">SGM Uniform</option>
|
||||||
|
</select>
|
||||||
|
<!-- TODO scheduler isn't exposed via API that i can tell, un-hardcode when that's changed, add to localstorage settings, turn into magic type search autocomplete selectbox, disable selected attribute, all the stuff -->
|
||||||
|
<br />
|
||||||
<label for="seed">Seed (-1 for random):</label>
|
<label for="seed">Seed (-1 for random):</label>
|
||||||
<br />
|
<br />
|
||||||
<input
|
<input
|
||||||
|
@ -337,7 +352,7 @@
|
||||||
<br />
|
<br />
|
||||||
<span id="version">
|
<span id="version">
|
||||||
<a href="https://github.com/zero01101/openOutpaint" target="_blank">
|
<a href="https://github.com/zero01101/openOutpaint" target="_blank">
|
||||||
v20240302.001
|
v20240413.001
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
<a
|
<a
|
||||||
|
@ -560,7 +575,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=206c7df" type="text/javascript"></script>
|
<script src="js/index.js?v=6e33053" type="text/javascript"></script>
|
||||||
|
|
||||||
<script
|
<script
|
||||||
src="js/ui/floating/history.js?v=4f29db4"
|
src="js/ui/floating/history.js?v=4f29db4"
|
||||||
|
|
|
@ -1403,6 +1403,13 @@ function changeStyles() {
|
||||||
stableDiffusionData.styles = selectedString;
|
stableDiffusionData.styles = selectedString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function changeScheduler() {
|
||||||
|
const schedulerSelectEl = document.getElementById("schedulerSelect");
|
||||||
|
var selectedString = schedulerSelectEl.value;
|
||||||
|
|
||||||
|
stableDiffusionData.scheduler = selectedString;
|
||||||
|
}
|
||||||
|
|
||||||
async function getSamplers() {
|
async function getSamplers() {
|
||||||
var url = document.getElementById("host").value + "/sdapi/v1/samplers";
|
var url = document.getElementById("host").value + "/sdapi/v1/samplers";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue