whoops jr

This commit is contained in:
tim h 2022-12-13 20:08:46 -06:00
parent a350842dfd
commit 59b2d451fe

View file

@ -319,7 +319,9 @@ const _generate = async (
interruptButton.disabled = false;
imageCollection.inputElement.appendChild(interruptButton);
if (requestCopy.seed != -1) {
requestCopy.seed = parseInt(requestCopy.seed) + images.length - 1;
requestCopy.seed =
parseInt(requestCopy.seed) +
requestCopy.batch_size * requestCopy.n_iter;
}
images.push(...(await _dream(endpoint, requestCopy)));
imageindextxt.textContent = `${at}/${images.length - 1}`;