From 816cf8f702c9803938ca9dc3b3a2ac11cad00725 Mon Sep 17 00:00:00 2001 From: rbertus2000 <91765399+rbertus2000@users.noreply.github.com> Date: Fri, 21 Oct 2022 22:40:26 +0200 Subject: [PATCH] fix multiple images with upscale/fix face button --- ui/media/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 6300ea4a..b4ff83a2 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -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