mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-25 03:48:45 +02:00
Set the set to 0 if deselecting from random; Allow 10 million random images by increasing the seed size
This commit is contained in:
parent
d21c0bfc18
commit
f727dd26ed
@ -773,7 +773,7 @@ async function makeImage() {
|
|||||||
makeImageBtn.innerHTML = 'Processing..'
|
makeImageBtn.innerHTML = 'Processing..'
|
||||||
makeImageBtn.disabled = true
|
makeImageBtn.disabled = true
|
||||||
|
|
||||||
let seed = (randomSeedField.checked ? Math.floor(Math.random() * 10000) : parseInt(seedField.value))
|
let seed = (randomSeedField.checked ? Math.floor(Math.random() * 10000000) : parseInt(seedField.value))
|
||||||
let numOutputsTotal = parseInt(numOutputsTotalField.value)
|
let numOutputsTotal = parseInt(numOutputsTotalField.value)
|
||||||
let numOutputsParallel = parseInt(numOutputsParallelField.value)
|
let numOutputsParallel = parseInt(numOutputsParallelField.value)
|
||||||
let batchCount = Math.ceil(numOutputsTotal / numOutputsParallel)
|
let batchCount = Math.ceil(numOutputsTotal / numOutputsParallel)
|
||||||
@ -1005,7 +1005,7 @@ async function getAppConfig() {
|
|||||||
function checkRandomSeed() {
|
function checkRandomSeed() {
|
||||||
if (randomSeedField.checked) {
|
if (randomSeedField.checked) {
|
||||||
seedField.disabled = true
|
seedField.disabled = true
|
||||||
seedField.value = "random"
|
seedField.value = "0"
|
||||||
} else {
|
} else {
|
||||||
seedField.disabled = false
|
seedField.disabled = false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user