mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 08:13:22 +01:00
Applied changes suggested by @cmdr2
This commit is contained in:
parent
ed59972b03
commit
31a7e178a1
@ -1416,7 +1416,7 @@ function applyPermuteOperatorNumber(prompts) { // prompts is array of input, tri
|
|||||||
promptMatrix = promptMatrix.filter((p) => p !== "")
|
promptMatrix = promptMatrix.filter((p) => p !== "")
|
||||||
|
|
||||||
if (promptMatrix.length > 0) {
|
if (promptMatrix.length > 0) {
|
||||||
promptCounter *= permutePromptsNumber(promptMatrix)
|
promptCounter *= permuteNumber(promptMatrix)
|
||||||
}
|
}
|
||||||
numberOfPrompts += promptCounter
|
numberOfPrompts += promptCounter
|
||||||
})
|
})
|
||||||
@ -1445,10 +1445,6 @@ function permutePrompts(promptBase, promptMatrix) {
|
|||||||
return prompts
|
return prompts
|
||||||
}
|
}
|
||||||
|
|
||||||
function permutePromptsNumber(promptMatrix) { // this should calculate how many different prompts can be made with the prompt matrix
|
|
||||||
return permuteNumber(promptMatrix)
|
|
||||||
}
|
|
||||||
|
|
||||||
// create a file name with embedded prompt and metadata
|
// create a file name with embedded prompt and metadata
|
||||||
// for easier cateloging and comparison
|
// for easier cateloging and comparison
|
||||||
function createFileName(prompt, seed, steps, guidance, outputFormat) {
|
function createFileName(prompt, seed, steps, guidance, outputFormat) {
|
||||||
@ -1624,12 +1620,12 @@ function renameMakeImageButton() {
|
|||||||
}
|
}
|
||||||
if (SD.activeTasks.size == 0) {
|
if (SD.activeTasks.size == 0) {
|
||||||
if (totalImages >= 10000)
|
if (totalImages >= 10000)
|
||||||
makeImageBtn.innerText = "Make tens of thousands of images"
|
makeImageBtn.innerText = "Make 10000+ images"
|
||||||
else
|
else
|
||||||
makeImageBtn.innerText = "Make " + imageLabel
|
makeImageBtn.innerText = "Make " + imageLabel
|
||||||
} else {
|
} else {
|
||||||
if (totalImages >= 10000)
|
if (totalImages >= 10000)
|
||||||
makeImageBtn.innerText = "Enqueue tens of thousands of images"
|
makeImageBtn.innerText = "Enqueue 10000+ images"
|
||||||
else
|
else
|
||||||
makeImageBtn.innerText = "Enqueue Next " + imageLabel
|
makeImageBtn.innerText = "Enqueue Next " + imageLabel
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user