mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-25 16:38:55 +01:00
Don't allow to make zero images, make at least one. (#647)
This commit is contained in:
parent
af5c68051a
commit
8faf6b9f52
@ -455,10 +455,10 @@ function makeImage() {
|
||||
alert('The "Inference Steps" field must not be empty.')
|
||||
return
|
||||
}
|
||||
if (numOutputsTotalField.value == '') {
|
||||
if (numOutputsTotalField.value == '' || numOutputsTotalField.value == 0) {
|
||||
numOutputsTotalField.value = 1
|
||||
}
|
||||
if (numOutputsParallelField.value == '') {
|
||||
if (numOutputsParallelField.value == '' || numOutputsParallelField.value == 0) {
|
||||
numOutputsParallelField.value = 1
|
||||
}
|
||||
if (guidanceScaleField.value == '') {
|
||||
|
Loading…
Reference in New Issue
Block a user