fix multiple images with upscale/fix face button

This commit is contained in:
rbertus2000 2022-10-21 22:40:26 +02:00
parent e8167541af
commit 816cf8f702

View File

@ -453,11 +453,13 @@ function onMakeSimilarClick(req, img) {
function enqueueImageVariationTask(req, img, reqDiff) {
const imageSeed = img.getAttribute('data-seed')
const newTaskRequest = modifyCurrentRequest(req, reqDiff, {
reqDiff = Object.assign({}, reqDiff, {
num_outputs: 1, // this can be user-configurable in the future
seed: imageSeed
})
const newTaskRequest = modifyCurrentRequest(req, reqDiff)
newTaskRequest.numOutputsTotal = 1 // this can be user-configurable in the future
newTaskRequest.batchCount = 1