From a350842dfdedc302b584b88db5993c26e59a6212 Mon Sep 17 00:00:00 2001 From: tim h Date: Tue, 13 Dec 2022 20:03:58 -0600 Subject: [PATCH] whoops at least it fixes fixed-seed makeMore() too --- js/ui/tool/dream.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 11ed042..1402b07 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -318,6 +318,9 @@ const _generate = async ( stopProgress = _monitorProgress(bb); interruptButton.disabled = false; imageCollection.inputElement.appendChild(interruptButton); + if (requestCopy.seed != -1) { + requestCopy.seed = parseInt(requestCopy.seed) + images.length - 1; + } images.push(...(await _dream(endpoint, requestCopy))); imageindextxt.textContent = `${at}/${images.length - 1}`; } catch (e) { @@ -1643,6 +1646,6 @@ window.onbeforeunload = async () => { }; function sendSeed(seedIndex) { - document.getElementById("seed").value = + stableDiffusionData.seed = document.getElementById("seed").value = stableDiffusionData.lastSeeds[seedIndex - 1]; }